local o={}local w=require(game.ReplicatedStorage.System)o.OnReady=w.Signal.new()function o.Init()w.Remotes.ConnectEvent("\082\101\097\100\121",function(o)print(o,"\105\115 \114\101\097\100\121\033")local A=w.Player.Get(o)A.Ready=true w.Entity.ReplicateToNewPlayer(o)A:OnDeath(true)end)game.Players.PlayerRemoving:Connect(function(o)local A=w.Player.Get(o)if not A then return end print(A:ToString(),"\076\101\102\116")A:Destroy()end)end return o

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
