Still have questions? Join our Discord server and get real time help.
0

# Stop a script then enable it?

I try to destroy the script and it still run's i try to disable the script while true loops stop but code like wait(1) print"done" still work's is their no way to disable a script and you got just gotta constantly use

if game.ServerStorage.stop.Value == true then
break
end


Am i doing it wrong? Should i always use disable, But with the right code?

0
Can you post the full script, nobody will steal it, that way we can actually test fixes for this Lord_WitherAlt 126 — 4mo
0
Never set a strict release date for your game, especially if you're just starting out. It's not good to take yourself too seriously when making games. y3_th 176 — 4mo
0
Man I wish I knew how to do this too ffancyaxax12 181 — 4mo
0
Place what you need within a coroutine, yield it, then disable the Script Feahren 5379 — 4mo

What you need to do is where break was, insert this piece of code:
script.Parent.Disabled = true