Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Remote event is firing and activating multiple times based on the number of players in a game?

Asked by 2 years ago

My Remote event is firing and activating multiple times based on the number of players in a game. For example if there are 3 players the remote event will trigger about 3 times and for 2, two times.

local RemoteEvent = game:GetService("ReplicatedStorage").RemoteEvent

local debounce = false local cooldown = 1.35

script.Parent.Activated:Connect(function() if debounce then return end debounce = true

RemoteEvent:FireServer()


wait(cooldown)
debounce = false

end)

0
Where is that script located? Voltaicmimic 43 — 2y

Answer this question