local Q={}Q.__index=Q function Q.new(A)local P=setmetatable({gameStageHandler=A},Q)return P end function Q.initialize(Q)wait(5)for Q,A in pairs(Players:GetPlayers())do TeleportService:Teleport(Conf.lobby_place,A)end end function Q.playerAdded(A,Q)local P="\080\108\097\121\101\114 "..(Q.Name.." \106\111\105\110\101\100 \097\102\116\101\114 \103\097\109\101 \115\116\097\114\116")warn(P)WarningEvent:FireAllClients(P)end function Q.destroy(Q) end return Q
--[[
	Stage implementation
]]

local EndGame = {}
EndGame.__index = EndGame

function EndGame.new(gameStageHandler)
	local self = setmetatable({
		gameStageHandler = gameStageHandler,
	}, EndGame)

	return self
end

function EndGame:initialize()
	wait(5) -- TODO: Have a buffer time at the end of the game based on a configuration

	-- Teleport players back to the main lobby place
	for _, player in pairs(Players:GetPlayers()) do
		TeleportService:Teleport(Conf.lobby_place, player)
	end
end

function EndGame:playerAdded(player)
	local warningMessage = "Player " .. player.Name .. " joined after game start"
	warn(warningMessage)
	WarningEvent:FireAllClients(warningMessage)
end

function EndGame:destroy() end

return EndGame
