function Shutdown()
local m = Instance.new ("Message")
m.Parent = game.Workspace
m.Text = "The owner is shutting down the server..."
wait(3)
game.Players:ClearAllChildren()
m:Destroy()
end
script.Parent.MouseButton1Click:connect(Shutdown)
This is a script in when you click the shutdown button, everyone gets banned from the game.
How do I add a debounce to prevent multiple messages coming in, and how do I make it so ALL the messages get deleted? (Because whenever the button is spammed, it makes multiple messages that don't go away.)
