AFAIK, no edits will be interpreted while running Studio until I stop and rerun the script.
Is there any way to get changes made to a script to be interpreted without interrupting the game?
To my knowledge, there isn’t. The only work around considering this is probably some sort of x y problem is by using external values or having a debugging UI to change values.
Kinda confused but try
if (script line here) then
(script here)
end
checks if a value changed or a remote fired or something.
Also suggest you add wait?
You need to add a wait.
while true do
task.wait()
print('a')
print('b')
end
while wait() do
print('a')
print('b')
end
Sorry, I removed the original example to avoid misinterpretations.
What you have should crash the game, as you never yeild this script, so other scripts can run…
Also, insert a Value into the script. Set it equal to 1
.
Set scipt.Value.Value to 0 to interupt the printing of a.