✓ Accepted answer
This is due to a loop running faster than the computer can handle. To prevent freezing, or further issues, a Game Script Timeout is called, and the thread is canceled. To prevent this issue, use a wait() with a greater yield time.
However, the default return integer for wait() is an average of 0.03 seconds, so then why is 0.07 causing issues still? This is because the wait() is called within a conditional, meaning it will only tell the loop to slow down if a certain condition is true. You cannot have this, therefore, to fix your issue, rewrite the loop format to look like so:
while true do wait()
end
Note: I understand the wait() within your if statement has a purpose for something else, you can still keep it there, don't worry. Your code will work the same!