I have a script that takes about 12 seconds to run. There are no waits. I don’t want any waits. Studio’s warning that a script is taking too long stops the script from running, then stops studio from responding and crashes. I can’t tell it to stop breaking the first time, I can only tell it to not break again the next time.
Can confirm this. One of my terrain generation plugins tries to decrease time by sacrificing some frames. When the dialog comes up, studio quits responding and I have to forcefully exit it.
How do I turn it off?
IIRC there’s a setting in Studio Settings that allows you to configure the time for the prompt. Just set that to a really high number.
1 Like
Can you send me a copy of the script so we can fix this if it’s causing problems?
I’m not sure if this was the issue OP was having, but this accomplishes the same thing:
function f()
for i=1,1000 do
a = CFrame.new(.03,0.5,123.51):lerp(CFrame.new(1.23,0.435346,0.213), math.random())
end
end
wait(3)
while true do f() end