just add a boolean value to it. when you give the player a gui, or a player enters the game, make a command that will allow you to set it to false.
Also, you can put some tweaks into it for non breaking script, like if you spell a name wrong, it doesnt break.
example:
game.Players.you.Chatted:connect(function (msg)
if (string.sub(msg,1,4) == "add/") then
play = (string.sub(msg,5,100))
search = game.Players:FindFirstChild(play)
kind = search
if (kind.BooleanVal.Value == false) then
kind.BooleanVal.Value = true
elseif (kind.BooleanVal.Value == true) then
kind.BooleanVal.Value = false
end
end
end) |