Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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?

Please help, My game releases in 2 days.

4 comments

0

Can you post the full script, nobody will steal it, that way we can actually test fixes for this

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.

0

Man I wish I knew how to do this too

0

Place what you need within a coroutine, yield it, then disable the Script

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.