Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script timeout: exhausted allowed execution time?

Code:

  wait(2)
          while bowser.Health > 0 do

 end
               	createFirebolt()
          	wait(2)

2 comments

0

put wait() on line 3

0

It's because while loops run so fast that it crashes your script just put a wait within the scope of the loop

1 answer

Here

wait(2)
while bowser.Health > 0 
	wait()
	end
	createFirebolt()
wait(2)

I am not sure if you need the wait(2) at the end and I also don't know what "createFirebolt()" does since you don't have any function created

1 comment

0

You should provide an explenation as to why the error occoured instead of just giving them their fixed code.

This discussion is preserved as it was. New answers, comments, and votes are closed.