-- Decompiled with the Synapse X Luau decompiler.


client = nil;
service = nil;
return function(p1)
	local l__Time__1 = p1.Time;
	local v2 = service.New("Sound");
	v2.Volume = 0.25;
	v2.Looped = false;
	v2.SoundId = "http://www.roblox.com/asset/?id=151715959";
	local v3 = service.New("Sound");
	v3.Volume = 0.25;
	v3.Looped = false;
	v3.SoundId = "http://www.roblox.com/asset/?id=267883066";
	local v4 = {
		Name = "Countdown", 
		Title = "Countdown", 
		Size = { 300, 150 }, 
		Position = UDim2.new(0, 10, 1, -160)
	};
	function v4.OnClose()
		v2:Stop();
		v3:Stop();
		v2:Destroy();
		v3:Destroy();
	end;
	local v5 = client.UI.Make("Window", v4);
	local v6 = v5:Add("TextLabel", {
		Text = l__Time__1, 
		BackgroundTransparency = 1, 
		TextScaled = true
	});
	local v7 = {
		Text = ""
	};
	local u1 = false;
	local u2 = nil;
	function v7.OnClick()
		if u1 then
			v2.Volume = 0.25;
			v3.Volume = 0.25;
			u2.Image = "rbxassetid://1638551696";
			u1 = false;
			return;
		end;
		v2.Volume = 0;
		v3.Volume = 0;
		u2.Image = "rbxassetid://1638584675";
		u1 = true;
	end;
	u2 = v5:AddTitleButton(v7):Add("ImageLabel", {
		Size = UDim2.new(0, 20, 0, 20), 
		Position = UDim2.new(0, 5, 0, 0), 
		Image = "rbxassetid://1638551696", 
		BackgroundTransparency = 1
	});
	v2.Parent = v6;
	v3.Parent = v6;
	local l__gTable__8 = v5.gTable;
	l__gTable__8:Ready();
	for v9 = l__Time__1, 0, -1 do
		if not l__gTable__8.Active then
			break;
		end;
		v2:Play();
		v6.Text = v9;
		wait(1);
	end;
	v3:Play();
	for v10 = 0, 3 do
		v3:Play();
		for v11 = 1, 0, -0.1 do
			v6.TextTransparency = v11;
			wait(0.05);
		end;
		for v12 = 0, 1, 0.1 do
			v6.TextTransparency = v12;
			wait(0.05);
		end;
	end;
	v5:Close();
end;
