Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Stop a script then enable it?

Asked by 4 years ago

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?

Please help, My game releases in 2 days.

0
Can you post the full script, nobody will steal it, that way we can actually test fixes for this Lord_WitherAlt 206 — 4y
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 — 4y
0
Man I wish I knew how to do this too ffancyaxax12 181 — 4y
0
Place what you need within a coroutine, yield it, then disable the Script Ziffixture 6913 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

What you need to do is where break was, insert this piece of code:

script.Parent.Disabled = true

If it does work please click Accept Answer.

Ad

Answer this question