My script prints 'event fired' when you click with the tool, and fires the event. I added a debounce into the script, but it only works once, then it doesnt work anymore.
local debounce = false
local tool = script.Parent
local rp = game:GetService("ReplicatedStorage")
local push = rp:WaitForChild("Push")
tool.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
if not debounce then
push:FireServer()
print'event fired'
debounce = true
elseif debounce == true then
wait(2.5)
debounce = false
end
end)
end)

2 comments
thanks!
no problem! I'm so glad i could help :D