Hey! I i was wondering why roblox has a while loop code limit, context:
So I am trying out a new concept game, like a boat simulator but with cars (like The Crew 2). So I was making a boat that sprays water (like irl) when you drive it, so around the middle of it sprays water out and the rear engines sprays water out then goes back into the water. So, i typed this code
while true do
if script.Parent.Parent.DriverSeat.Throttle == 1 then
script.Parent.water.Enabled = false
wait(.001)
end
end
But all i get in the output is my least favorite sentence that makes my skin crawl like ants under my skin tearing up my insides I hate it that much:
Script timeout: exhausted allowed execution time
so, like the "detective" i am I put a script into the workspace that reads:
while true do
wait(.001)
print("hello")
end
And, well:
hello (x346)
So why do i get an error when i put a lot of code into it? I have the same wait (.001) and I get different output sentences. So why? Why does this happen and why does this always happen to me, I gte so matoviated then I get
Script timeout: exhausted allowed execution time
Then I just want to go back on the xbox and do nothing all day because i cant fix the problem.
Please help me.

1 comment
wow, ok i did not know that, yea i dont want studio to crash. thanks that fixed A LOT of problems