local function C(C,F)local l=ScoreFrame.Frame[tostring(C)].Notification l.Text=F l:TweenSize(UDim2.new(1,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.25,false)wait(1.5)l:TweenSize(UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.1,false)end local function F(C,F)ScoreFrame.Frame[tostring(C.TeamColor)].Text=F end local function l(C)if C then VictoryFrame.Visible=true if C=="\084\105\101"then VictoryFrame.Tie.Visible=true else VictoryFrame.Win.Visible=true local F=VictoryFrame.Win[C.Name]F.Visible=true end else VictoryFrame.Visible=false VictoryFrame.Win.Visible=false VictoryFrame.Win.Red.Visible=false VictoryFrame.Win.Blue.Visible=false VictoryFrame.Tie.Visible=false end end local function B()Mouse.Icon=MouseIcon end

local function OnDisplayNotification(teamColor, message)
	local notificationFrame = ScoreFrame.Frame[tostring(teamColor)].Notification
	notificationFrame.Text = message
	notificationFrame:TweenSize(UDim2.new(1,0,1,0), Enum.EasingDirection.Out,
		Enum.EasingStyle.Quad, .25, false)
	wait(1.5)
	notificationFrame:TweenSize(UDim2.new(1,0,0,0), Enum.EasingDirection.Out,
		Enum.EasingStyle.Quad, .1, false)
end

local function OnScoreChange(team, score)
	ScoreFrame.Frame[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[winningTeam.Name]
			WinningFrame.Visible = true
		end
	else
		VictoryFrame.Visible = false
		VictoryFrame.Win.Visible = false
		VictoryFrame.Win.Red.Visible = false
		VictoryFrame.Win.Blue.Visible = false
		VictoryFrame.Tie.Visible = false
	end
end

local function OnResetMouseIcon()
	Mouse.Icon = MouseIcon
end
