Players.PlayerAdded:Connect(function(h)PlayerReference[h]=true end)Players.PlayerRemoving:Connect(function(h)PlayerReference[h]=nil for k in pairs(RateLimiters)do k._sources[h]=nil end end)return RateLimiter
----- Connections -----

Players.PlayerAdded:Connect(function(player)
	PlayerReference[player] = true
end)

Players.PlayerRemoving:Connect(function(player)
	PlayerReference[player] = nil
	-- Automatic player reference cleanup:
	for rate_limiter in pairs(RateLimiters) do
		rate_limiter._sources[player] = nil
	end
end)

return RateLimiter
