Ok, so let's say I want to stop a script when something certain happens. You can't just use end or it will not even bother running the script.
Example:
game.Players.jaytheidiot.Chatted:connect(function(Msg)
if Msg == "lol" then
Workspace.jaytheidiot.Torso:Destroy()
elseif Msg == "Hi" then
--Stop the script from running here
end
end)
How would I get the script to stop in that location?

1 comment
The script in question is running on a script builder. Not on an actual place. I have tested and using that in place will not work.