I understand most of this but the function inside delay is confusing me
local playerDebounces = {}
Players.PlayerAdded:Connect(function(player)
playerDebounces[player.UserId] = false
end)
Players.PlayerRemoving:Connect(function(player)
playerDebounces[player.UserId] = nil
end)
Remote.OnServerEvent:Connect(function(player,...)
local id = player.UserId
if playerDebounces[id] == false then
playerDebounces[id] = true
delay(5, function() playerDebounces[id] = playerDebounces[id] ~= nil and false end) -- I don't understand here, can someone please explain this part to me
end
end)