client=nil service=nil return function(R,b)if b then setfenv(1,b)end local y local n=false local u=service.New("\083\111\117\110\100")u.Volume=1 u.Looped=true u.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\051\056\048\056\049\053\048\057"local k=client.UI.Make("\087\105\110\100\111\119",{Name="\065\108\101\114\116",Title="\065\108\101\114\116",Size={300;150};Icon=client.MatIcons.Alert,AllowMultiple=false;OnClose=function()u:Stop()wait()u:Destroy()end})if k then local b=k:Add("\084\101\120\116\076\097\098\101\108",{Text=R.Message,BackgroundTransparency=1,TextScaled=true;TextWrapped=true})local H=k:AddTitleButton({Text=""})local A=H:Add("\073\109\097\103\101\076\097\098\101\108",{Size=UDim2.new(0,20,0,20);AnchorPoint=Vector2.new(.5,.5),ScaleType=Enum.ScaleType.Fit;Position=UDim2.new(.5,0,.536,0);Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\055\052\054\051\052\055\056\048\053\054";BackgroundTransparency=1})H.MouseButton1Down:Connect(function()if n then u.Volume=1 A.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\055\052\054\051\052\055\056\048\053\054"n=false else u.Volume=0 A.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\055\052\054\051\052\054\050\048\049\056"n=true end end)u.Parent=b u:Play()y=k.gTable k:Ready()end end
client = nil
service = nil

return function(data, env)
	if env then
		setfenv(1, env)
	end

	local gTable

	local isMuted = false

	local alarm = service.New('Sound')
	alarm.Volume = 1
	alarm.Looped = true
	alarm.SoundId = 'http://www.roblox.com/asset/?id=138081509'

	local window = client.UI.Make("Window",{
		Name  = "Alert";
		Title = "Alert";
		Size  = {300,150};
		Icon = client.MatIcons.Alert;
		AllowMultiple = false;
		OnClose = function()
			alarm:Stop()
			wait()
			alarm:Destroy()
		end
	})

	if window then
		local label = window:Add("TextLabel",{
			Text = data.Message;
			BackgroundTransparency = 1;
			TextScaled = true;
			TextWrapped = true;
		})

		local muteButton = window:AddTitleButton({
			Text = "";
		})

		local sImg = muteButton:Add("ImageLabel", {
			Size = UDim2.new(0, 20, 0, 20);
			AnchorPoint = Vector2.new(0.5,0.5);
			ScaleType = Enum.ScaleType.Fit;
			Position = UDim2.new(0.5, 0 ,0.536, 0);
			Image = "rbxassetid://7463478056";
			BackgroundTransparency = 1;
		})

		muteButton.MouseButton1Down:Connect(function()
			if isMuted then
				alarm.Volume = 1
				sImg.Image = "rbxassetid://7463478056"
				isMuted = false
			else
				alarm.Volume = 0
				sImg.Image = "rbxassetid://7463462018";
				isMuted = true
			end
		end)

		alarm.Parent = label
		alarm:Play()
		gTable = window.gTable
		window:Ready()
	end
end
