client,service=nil,nil return function(O,g)if g then setfenv(1,g)end local Y local M=false local D=service.New("\083\111\117\110\100",{Volume=1,Looped=true,SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\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["\080\114\105\111\114\105\116\121 \104\105\103\104"],AllowMultiple=false;OnClose=function()D:Stop()task.wait()D:Destroy()end})if k then local g=k:Add("\084\101\120\116\076\097\098\101\108",{Text=O.Message,BackgroundTransparency=1,TextScaled=true,TextWrapped=true})local h=k:AddTitleButton({Text=""})local X=h:Add("\073\109\097\103\101\076\097\098\101\108",{Size=UDim2.new(0,20,0,20);Position=UDim2.new(0,5,0,0);Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\054\051\056\053\053\049\054\057\054";BackgroundTransparency=1})h.MouseButton1Down:Connect(function()if M then D.Volume=1 X.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\054\051\056\053\053\049\054\057\054"M=false else D.Volume=0 X.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\054\051\056\053\056\052\054\055\053"M=true end end)D.Parent=g D:Play()Y=k.gTable k:Ready()end end
client, service = nil, nil

return function(data, env)
	if env then
		setfenv(1, env)
	end
	
	local gTable
	
	local isMuted = false
	
	local alarm = service.New("Sound", {
		Volume = 1;
		Looped = true;
		SoundId = "rbxassetid://138081509";
	})
	
	local window = client.UI.Make("Window", {
		Name  = "Alert";
		Title = "Alert";
		Size  = {300, 150};
		Icon = client.MatIcons["Priority high"];
		AllowMultiple = false;
		OnClose = function()
			alarm:Stop()
			task.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);
			Position = UDim2.new(0, 5, 0, 0);
			Image = "rbxassetid://1638551696";
			BackgroundTransparency = 1;
		})
		
		muteButton.MouseButton1Down:Connect(function()
			if isMuted then
				alarm.Volume = 1
				sImg.Image = "rbxassetid://1638551696"
				isMuted = false
			else
				alarm.Volume = 0
				sImg.Image = "rbxassetid://1638584675";
				isMuted = true
			end
		end)
		
		alarm.Parent = label
		alarm:Play()
		gTable = window.gTable
		window:Ready()
	end
end
