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 to Change the Scene On Collision ( Easy )

A Tutorial for Baldi's Basics in Education and Learning

Updates

menu
Update 2.0 23d
  • Adjustment The Method Was Updated
Update 1.5 23d Addition

( Very Easy )

Welcome To The Other Tutorial 

Don't Forget To Give The Credits To Me

Create A New Script

Copy This Script And Paste In Your Script


Add A Rigidbody To The Object
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Bus : MonoBehaviour // Change The Bus To The Your Script Name
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    void OnCollisionEnter(Collision gameObjectInformation)
    {
        if (gameObjectInformation.gameObject.name == "Player")
        {
            Debug.Log("Collision Detected");
            SceneManager.LoadScene("Results"); // change The Results To The Level You Want


        }




    }




}

Comments

Sign up to access this!
  • BonestheCPHunter avatar
    BonestheCPHunter username pic Joined 1y ago
    Asleep
    1,017 points Ranked 25220th
    12 medals 1 rare
    • Returned 1000 times Medal icon
    • Became a Studio Leader Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • Submission featured Medal icon
    • Submitted 10 Skins Medal icon
    access_time 23d edit 23d
    I am getting an error that says: error CS0116: A namespace cannot directly contain members such as fields or methods

    Anyway to fix that?

    edit: Thanks
    • Helpful x 1
    Bananite
    URL to post:

Embed

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

Announcement

--> Davi 3D Studio <-- - Mundodavi2

Studio

Sign up to access this!

Credits

Creator
Mundodavi2 Davi 3D Studio Flag
Affiliation
Davi 3D Studio
Mundodavi2 Joined 9mo ago
Offline
Davi 3D Studio Flag Affiliation: Davi 3D Studio
122 points Ranked 64590th
The Creator

Submitter

Mundodavi2 avatar
Mundodavi2 Joined 9mo ago
*Error*
Davi 3D Studio Flag Affiliation: Davi 3D Studio
122 points Ranked 64590th
Mundodavi2 Davi 3D Studio Flag
Affiliation
Davi 3D Studio

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

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 2
  • remove_red_eye 524
  • mode_comment 1
  • access_time 23d
  • access_time 23d
  • refresh 23d

More from Submitter

menu

WiPs by Submitter

menu

More from Studio

WiPs by Studio

More Decompile Tutorials