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

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 8mo ago
    Not on right ok
    401 points Ranked 47816th
    15 medals 3 rare
    • Returned 1000 times Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • Submitted 15 Tutorials Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    access_time 5mo edit 5mo
    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 8mo ago
    Not on right ok
    401 points Ranked 47816th
    15 medals 3 rare
    • Returned 1000 times Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • Submitted 15 Tutorials Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    access_time 5mo
    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 1y ago
*Error*
64 points Ranked 62150th
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
  • 546
  • 6
  • 5mo

More from Submitter

menu

WiPs by Submitter

menu

More Script Help Questions