game works fine in editor but when I build it it doesn't work

whenever I load up the game in editor its fine but when I build it the ball rolls slowly when you run into an enemy you go through it and when you reach the objective you go through it.

Hello @froakiegamer99 ,

This could be happening because of how you’re setting up the collision parameters in your game.

What you can try, is to change the Collision Detection type in the Rigidbodies that are currently going through other objects, to be “Continuous”.

You can find more information about it here: Unity - Manual: Rigidbody component reference

Good luck with your game!