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

No ads for members. Membership is 100% free. Sign up!

Question Solved

This Question was answered and a solution was chosen.

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

Sign up to access this!
  • RealT5mpler avatar
    RealT5mpler Joined 7mo ago
    Not on right ok
    2,248 points Ranked 20394th
    13 medals 2 rare
    • Returned 1000 times Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • 5 posts awarded Exemplary Feedback Medal icon
    access_time 3mo edit 3mo
    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:
  • RealT5mpler avatar
    RealT5mpler Joined 7mo ago
    Not on right ok
    2,248 points Ranked 20394th
    13 medals 2 rare
    • Returned 1000 times Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • 5 posts awarded Exemplary Feedback Medal icon
    access_time 3mo
    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 11mo ago
*Error*
86 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
  • 0
  • 475
  • 6
  • 3mo

More from Submitter

menu

WiPs by Submitter

menu

More Script Help Questions