Note: I did these In the pass and they work, just don't know why this doesn't
I made a debounce that prevent the player from spamming the tool via a RemoteEvent, but as the title says, the debounce refuse to stop the player from spamming
Script:
local tool = script.Parent local Debounce = false tool.Activated:Connect(function() if Debounce == false and tool.Parent.IsStun.Value == true then Debounce = true tool.RemoteEvent:FireServer() wait(5) Debounce = false end end)
Idk if this will work, but try it.
local tool = script.Parent local Debounce = false tool.Activated:Connect(function() if Debounce then return end if tool.Parent.IsStun.Value then Debounce = true tool.RemoteEvent:FireServer() wait(5) Debounce = false end end)