my local script works fine
local Remote = game:GetService("ReplicatedStorage").RemoteEvent
local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local ReloadTime = Tool.ReloadTime -- A Intvalue with a value of 10
local CanShoot = true
Tool.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
if CanShoot == true then
Remote:FireServer()
CanShoot = false
wait(ReloadTime.Value)
CanShoot = true
end
end)
end)
And then my ServerScript which I have a problem with
I'm confused on how to make a limit for it each second also shouldn't I use a dictionary because I want this to apply to each person not everyone?
For example if one shoots the other person has to wait
local Remote = game:GetService("ReplicatedStorage").RemoteEvent
local Num = 0
Remote.OnServerEvent:Connect(function(player)
end)
I dont understand or know what to do here lets say I wanted to do a sanity check and I didn't want them to fire more than once in 10 seconds
