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 add MathMachines to your decompile - A Tutorial for Baldi's Basics

1)  Download MathMachine package here: https://drive.google.com/file/d/1rCM_j6vls-kqXKXdqU_LtAFq3vn0u8hk/view?usp=sharing.

2) After importing MathMachine package go to the GameController script and add this: 

public Image numBallImage;
public Sprite[] numBalls; 
public int numOfBall;
public bool isHoldingBall; 

Then, go to the update function and add this: 

if (isHoldingBall) 

    numBallImage.gameObject.SetActive(true); 
    numBallImage.sprite = numBalls[numOfBall]; 

else 
{
    numBallImage.gameObject.SetActive(false); 
}



3) Create new image on the Hud and give it a num ball texture with number 0. Go to GameController, assign your Image and add all of the num ball sprites to the numBalls list.



PS: If notebook will not appear or you want to add custom prize, assign prize field in Math Machine Script.