-- Decompiled with the Synapse X Luau decompiler.


client = nil;
service = nil;
return function(p1)
	local v1 = service.New("Sound");
	v1.Volume = 1;
	v1.Looped = true;
	v1.SoundId = "http://www.roblox.com/asset/?id=138081509";
	local v2 = {
		Name = "Alert", 
		Title = "Alert", 
		Size = { 300, 150 }, 
		Icon = "rbxassetid://53252104", 
		AllowMultiple = false
	};
	function v2.OnClose()
		v1:Stop();
		wait();
		v1:Destroy();
	end;
	local v3 = client.UI.Make("Window", v2);
	if v3 then
		local v4 = v3:Add("TextLabel", {
			Text = p1.Message, 
			BackgroundTransparency = 1, 
			TextScaled = true, 
			TextWrapped = true
		});
		local v5 = v3:AddTitleButton({
			Text = ""
		});
		local u1 = false;
		local u2 = v5:Add("ImageLabel", {
			Size = UDim2.new(0, 20, 0, 20), 
			Position = UDim2.new(0, 5, 0, 0), 
			Image = "rbxassetid://1638551696", 
			BackgroundTransparency = 1
		});
		v5.MouseButton1Down:connect(function()
			if u1 then
				v1.Volume = 1;
				u2.Image = "rbxassetid://1638551696";
				u1 = false;
				return;
			end;
			v1.Volume = 0;
			u2.Image = "rbxassetid://1638584675";
			u1 = true;
		end);
		v1.Parent = v4;
		v1:Play();
		local l__gTable__6 = v3.gTable;
		v3:Ready();
	end;
end;
