local J={}local s=game.Players local p=game.ReplicatedStorage.Events local Z=p.DisplayIntermission local d=p.DisplayNotification local t=p.DisplayTimerInfo local F=p.DisplayVictory local G=p.DisplayScore local S=game.StarterGui S.ResetPlayerGuiOnSpawn=false local C=game.Workspace:FindFirstChild("\077\097\112\080\117\114\103\101\080\114\111\111\102")if not C then C=Instance.new("\070\111\108\100\101\114",game.Workspace)C.Name="\077\097\112\080\117\114\103\101\080\114\111\111\102"end function J.StartIntermission(s,J)if J then Z:FireClient(J,true)else Z:FireAllClients(true)end end function J.StopIntermission(s,J)if J then Z:FireClient(J,false)else Z:FireAllClients(false)end end function J.DisplayNotification(p,J,s)d:FireAllClients(J,s)end function J.UpdateTimerInfo(p,J,s)t:FireAllClients(J,s)end function J.DisplayVictory(s,J)F:FireAllClients(J)end function J.UpdateScore(p,J,s)G:FireAllClients(J,s)end return J
local DisplayManager = {}

-- ROBLOX Services

local Players = game.Players

-- Local Variables

local Events = game.ReplicatedStorage.Events
local DisplayIntermission = Events.DisplayIntermission
local DisplayNotification = Events.DisplayNotification
local DisplayTimerInfo = Events.DisplayTimerInfo
local DisplayVictory = Events.DisplayVictory
local DisplayScore = Events.DisplayScore
local StarterGui = game.StarterGui

-- Initialize
StarterGui.ResetPlayerGuiOnSpawn = false
local MapPurgeProof = game.Workspace:FindFirstChild('MapPurgeProof')
if not MapPurgeProof then
	MapPurgeProof = Instance.new('Folder', game.Workspace)
	MapPurgeProof.Name = 'MapPurgeProof'
end

-- Public Functions

function DisplayManager:StartIntermission(player)
	if player then
		DisplayIntermission:FireClient(player, true)
	else
		DisplayIntermission:FireAllClients(true)
	end
end

function DisplayManager:StopIntermission(player)
	if player then
		DisplayIntermission:FireClient(player, false)
	else
		DisplayIntermission:FireAllClients(false)
	end
end

function DisplayManager:DisplayNotification(teamColor, message)
	DisplayNotification:FireAllClients(teamColor, message)
end

function DisplayManager:UpdateTimerInfo(isIntermission, waitingForPlayers)
	DisplayTimerInfo:FireAllClients(isIntermission, waitingForPlayers)
end

function DisplayManager:DisplayVictory(winningTeam)
	DisplayVictory:FireAllClients(winningTeam)
end

function DisplayManager:UpdateScore(team, score)
	DisplayScore:FireAllClients(team, score)
end

return DisplayManager
