local c={}local A=require(game.ReplicatedStorage.System)c.OnReady=A.Signal.new()function c.Init()A.Remotes.ConnectEvent("\082\101\097\100\121",function(c)print(c,"\105\115 \114\101\097\100\121\033")local p=A.Player.Get(c)p.Ready=true A.Entity.ReplicateToNewPlayer(c)p:OnDeath(true)end)game.Players.PlayerRemoving:Connect(function(c)local p=A.Player.Get(c)if not p then return end print(p:ToString(),"\076\101\102\116")p:Destroy()end)end return c
-- @moduledescription Manage all the player, if they are ready or not
local module = {}
local System = require(game.ReplicatedStorage.System)

module.OnReady = System.Signal.new()

function module.Init()
	System.Remotes.ConnectEvent("Ready", function(plr)
		print(plr, "is ready!")

		local Player = System.Player.Get(plr)
		Player.Ready = true
		System.Entity.ReplicateToNewPlayer(plr)
		Player:OnDeath(true)
	end)

	game.Players.PlayerRemoving:Connect(function(p)
		local plr = System.Player.Get(p)
		if not plr then
			return
		end

		print(plr:ToString(), "Left")
		plr:Destroy()
	end)
end

return module
