How to stop a script

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)

Perhaps before running the code, the script checks if a bool value is true. If this isn’t the problem, you should be able to set the script.Disabled to true.

Set the script.Disabled = true to disable the script script.Disabled = false to enable.

That would not work as it needs to run more than one time but still thanks for the reply