I want to stop a script from running. I tried using return which works on js but how do you stop the rest of the scripts from running at all?
script.Parent.MouseButton1Click:Connect(function()
if not script.Parent.Parent.rankbutton == "Rank" then
script.Parent.Text = "You may only rank 1 at a time"
wait(0.5)
script.Parent.Text = "Promote"
return
end
local username = script.Parent.Parent.username.Text
if not username then
script.Parent.Text = "Please type a username!"
wait(0.5)
script.Parent.Text = "Promote"
return
end
game.ReplicatedFirst.Promote:FireServer(username)
script.Parent.Text = "Promoting...."
end)