Hi,i am a beginner and im trying to make my first project,and i have a problem

for some reason its as if the whole programs stops,the timer is still not correct it just shows the overall time,and the ball wont even change color when i take out the call to Random