local function C(C,J)local t=ScoreFrame[tostring(C)].Notification t.Text=J t:TweenSize(UDim2.new(1,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.25,false)wait(1.5)t:TweenSize(UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.1,false)end local function J(C,J)ScoreFrame[tostring(C.TeamColor)].Text=J end local function t(C)if C then VictoryFrame.Visible=true if C=="\084\105\101"then VictoryFrame.Tie.Visible=true else VictoryFrame.Win.Visible=true local J=VictoryFrame.Win[C.Name]J.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 O()Mouse.Icon=MouseIcon end
-- Local Functions
local function OnDisplayNotification(teamColor, message)
	local notificationFrame = ScoreFrame[tostring(teamColor)].Notification
	notificationFrame.Text = message
	notificationFrame:TweenSize(UDim2.new(1, 0, 1, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.25, false)
	wait(1.5)
	notificationFrame:TweenSize(UDim2.new(1, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.1, false)
end

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[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
