So I made a tool where it spawns a brick but since I don't want people to spam it I wanted to put a debounce
I decided not to do it in the local script because if I did that exploiters can easily exploit it
So heres my Local Script
local Tool = script.Parent
local Handle = Tool.Handle
local RemoteEvent = game:GetService("ReplicatedStorage").RemoteEvent
Tool.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()-- If Mouse is pressed
RemoteEvent:FireServer() -- I fire Server
end)
end)
and my Server Script
local RemoteEvent = game:GetService("ReplicatedStorage").RemoteEvent
local CanFire = true
local ReloadTime = 999
RemoteEvent.OnServerEvent:Connect(function(player)
if CanFire == true then
local part = Instance.new("Part")
part.Parent = workspace
CanFire = false
wait(ReloadTime)
CanFire = true
end
end)
The problem is that if one person fires this remote the other person cannot fire the remote and has to wait 999 seconds before firing again
I want it that each person can fire it without affecting other people
like Filtering Enabled

2 comments
I answered a question very similar to this yesterday. Look at my answer and the comment, because the comment mentions some things that should be changed. https://scriptinghelpers.org/questions/85830/how-do-i-make-my-debounce-for-remote-event-for-each-player-not-just-for-everyone
2 days ago I mean.