I only made a button to kill so you get points. but I dont want people to get to get points while being dead. What is wrong?
local debounce = false
if debounce == false then
debounce = true
script.Parent.MouseButton1Click:Connect(function()
wait(5)
debounce = false
end)
end

4 comments
I am in fact a beginner.
Well, all you need is a script signal to fire a cooldown system. Also of course the death.
nevermind, I found out what it was
put solved in the title