I have tried doing this like:
if string.sub(msg,1,8) == "stopscr/" then
error("Done")
end
But it's just not working! Anyone know why?
I have tried doing this like:
if string.sub(msg,1,8) == "stopscr/" then
error("Done")
end
But it's just not working! Anyone know why?
Just disable the script when you need to by using the 'Enabled' value in the properties of the script (if you click it in the Explorer).
if string.sub(msg,1,8) == "stopscr/" then script.Disabled = true end
Also this will permanently stop the script. Unless you enable it with
[Name of script].Disabled = false
In another script
Disable should stop the script.
I want a script that isn't script.Disabled because that gives me a mess of scripts
You could use this to stop the script in commands
local function die()
Players.die -- Not a real thing lol
end
return
die() -- Would not run as there is a return function above
return on outside of function?
wherever you want the script to stop
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
He wants a command type script.
^ I don