Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script timeout: exhausted allowed execution time?

Asked by 2 years ago

Code:

  wait(2)
          while bowser.Health > 0 do

 end
                createFirebolt()
            wait(2)
0
put wait() on line 3 greatneil80 2647 — 2y
0
It's because while loops run so fast that it crashes your script just put a wait within the scope of the loop MarkedTomato 810 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your 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

0
You should provide an explenation as to why the error occoured instead of just giving them their fixed code. deeskaalstickman649 475 — 2y
Ad

Answer this question