Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How I Can Make The Bully Kill The Player?

A Question for Baldi's Basics in Education and Learning

Members see zero ads. Membership is 100% free

How I Can Make The Bully Kill The Player?

Logic: If The Player Don't Have Items And Touches In The Bully, The Bully Kills The Player

Answers

Sign up to access this!
  • Copy this and replace it with the OnTriggerEnter method for the Bullyscript

    {
            if (other.transform.tag == "Player")
            {
                if (this.gc.item[0] == 0 & this.gc.item[1] == 0 & this.gc.item[2] == 0)
                {
                    this.playerScript.gameover = true;
                }
                else
                {
                    int num = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 2f));
                    while (this.gc.item[num] == 0)
                    {
                        num = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 2f));
                    }
                    this.gc.LoseItem(num);
                    int num2 = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 1f));
                    this.audioDevice.PlayOneShot(this.aud_Thanks[num2]);
                    this.Reset();
                }
            }
        }

    Make sure you also make a variable in the bullyscript like this "public PlayerScript playerScript(other whatever you want)" or else it wont work
    • Agree x 1
    • Win x 1
    • Helpful x 1
    • Interesting x 1
    • Thanks x 1
    Never Give up on what you want avatar
    Mantra
    Never Give up on what you want
    URL to post:
  • BTW just so you know are these questions for 3D Bizzare school?
    Never Give up on what you want avatar
    Mantra
    Never Give up on what you want
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Announcement

I Like Pghlfilms

- Mundodavi2

Asker

Mundodavi2 avatar
Mundodavi2 Joined 9mo ago
*Error*
54 points Ranked 64590th
Mundodavi2 Johnster Space Studio Flag
Affiliation
Johnster Space Studio

Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 0
  • remove_red_eye 345
  • mode_comment 6
  • access_time 2mo

More from Submitter

menu

WiPs by Submitter

menu

More Script Help Questions