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 4 months 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 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

1 answer

Log in to vote
0
Answered by
b_mni 700 Moderation Voter
4 months 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