New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Stop a script then enable it?

Asked by 10 days 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 55 — 10d
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 130 — 10d
0
Man I wish I knew how to do this too ffancyaxax12 142 — 10d
0
Place what you need within a coroutine, yield it, then disable the Script Feahren 2005 — 10d

1 answer

Log in to vote
0
Answered by
b_mni 113
10 days 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