local function E(E,u)ScoreFrame[tostring(E.TeamColor)].Text=u end local function u(E)if E then VictoryFrame.Visible=true if E=="\084\105\101"then VictoryFrame.Tie.Visible=true else VictoryFrame.Win.Visible=true local u=VictoryFrame.Win.TeamDisplay u.Size=UDim2.new(0,string.len(E.TeamColor.Name)*19,0,50)u.Position=UDim2.new(0,-u.Size.X.Offset,0,0)u.TextColor3=E.TeamColor.Color u.Text=E.TeamColor.Name u.Visible=true end else VictoryFrame.Visible=false VictoryFrame.Win.Visible=false VictoryFrame.Win.TeamDisplay.Visible=false VictoryFrame.Tie.Visible=false end end local function z()Mouse.Icon=MouseIcon end
-- Local Functions
local function OnScoreChange(team, score)
	ScoreFrame[tostring(team.TeamColor)].Text = score
end

local function OnDisplayVictory(winningTeam)
	if winningTeam then
		VictoryFrame.Visible = true
		if winningTeam == "Tie" then
			VictoryFrame.Tie.Visible = true
		else
			VictoryFrame.Win.Visible = true
			local WinningFrame = VictoryFrame.Win.TeamDisplay
			WinningFrame.Size = UDim2.new(0, string.len(winningTeam.TeamColor.Name) * 19, 0, 50)
			WinningFrame.Position = UDim2.new(0, -WinningFrame.Size.X.Offset, 0, 0)
			WinningFrame.TextColor3 = winningTeam.TeamColor.Color
			WinningFrame.Text = winningTeam.TeamColor.Name
			WinningFrame.Visible = true
		end
	else
		VictoryFrame.Visible = false
		VictoryFrame.Win.Visible = false
		VictoryFrame.Win.TeamDisplay.Visible = false
		VictoryFrame.Tie.Visible = false
	end
end

local function OnResetMouseIcon()
	Mouse.Icon = MouseIcon
end
