client=nil cPcall=nil Pcall=nil Routine=nil service=nil GetEnv=nil gTable=nil return function(i)local k=service.PlayerGui local Q=service.Players.LocalPlayer local y=script.Parent.Parent local T=y.Frame.Main local Y=y.Frame.Timer local C=i.OnClick local A=i.OnClose local j=i.OnIgnore local H=i.Title local v=i.Message or i.Text or""local K=i.Time if C and type(C)=="\115\116\114\105\110\103"then C=client.Core.LoadCode(C,GetEnv())end if A and type(A)=="\115\116\114\105\110\103"then A=client.Core.LoadCode(A,GetEnv())end if j and type(j)=="\115\116\114\105\110\103"then j=client.Core.LoadCode(j,GetEnv())end local z=client.UI.Get("\078\111\116\105\102\105\099\097\116\105\111\110\072\111\108\100\101\114",nil,true)if not z then local i=service.New("\083\099\114\101\101\110\071\117\105")local k=client.UI.Register(i)local Q=service.New("\083\099\114\111\108\108\105\110\103\070\114\097\109\101",i)client.UI.Prepare(i)k.Name="\078\111\116\105\102\105\099\097\116\105\111\110\072\111\108\100\101\114"Q.Name="\070\114\097\109\101"Q.BackgroundTransparency=1 Q.Size=UDim2.new(0,200,.5,0)Q.Position=UDim2.new(1,-210,.5,-10)Q.CanvasSize=UDim2.new(0,0,0,0)Q.ChildAdded:Connect(function(i)if#Q:GetChildren()==0 then Q.Visible=false return end Q.Visible=true end)Q.ChildRemoved:Connect(function(i)if#Q:GetChildren()==0 then Q.Visible=false return end Q.Visible=true end)z=k k:Ready()end y.Frame.Title.Text=H y.Name=H T.Text=v local m=nil local function W(i,k)local Q={}for i,k in pairs(i:GetChildren())do table.insert(Q,1,k)end for i,Q in pairs(Q)do Q.Position=UDim2.new(0,0,1,-75*(i+k))end i.CanvasSize=UDim2.new(0,0,0,#i:GetChildren()*75)local y=#i:GetChildren()*75-i.AbsoluteWindowSize.Y if y<0 then y=0 end i.CanvasPosition=Vector2.new(0,y)end local S=z.Object.Frame T.MouseButton1Click:Connect(function()if y and y.Parent then if C then m=C()end y:Destroy()W(S,0)end end)local s=i.gTable y.Frame.Close.MouseButton1Click:Connect(function()if y and y.Parent then if A then m=A()end s:Destroy()W(S,0)end end)W(S,1)y.Parent=S y:TweenPosition(UDim2.new(0,0,1,-75),"\079\117\116","\076\105\110\101\097\114",.2)spawn(function()local i=Instance.new("\083\111\117\110\100",service.LocalContainer())if v=="\067\108\105\099\107 \104\101\114\101 \102\111\114 \099\111\109\109\097\110\100\115\046"then i.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\057\056\055\055\050\056\054\054\055"elseif H=="\087\097\114\110\105\110\103\033"then i.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\052\050\056\052\057\053\050\057\055"else i.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\050\050\055\053\055\048\053\048\055\056"end wait(.1)i:Play()wait(1)i:Destroy()end)if K then Y.Visible=true local i=K spawn(function()while true do Y.Text=i wait(1)i=i-1 if i<=0 then break end if not y then break end if not y.Parent then break end end if y and y.Parent then if j then m=j()end y:Destroy()W(S,0)end end)end while true do wait()if m~=nil then break end if not y then break end if not y.Parent then break end end return nil end
-- Decompiled with the Synapse X Luau decompiler.

client = nil
cPcall = nil
Pcall = nil
Routine = nil
service = nil
GetEnv = nil
gTable = nil
return function(p1)
	local l__PlayerGui__1 = service.PlayerGui
	local l__LocalPlayer__2 = service.Players.LocalPlayer
	local l__Parent__3 = script.Parent.Parent
	local l__Main__4 = l__Parent__3.Frame.Main
	local l__Timer__5 = l__Parent__3.Frame.Timer
	local v6 = p1.OnClick
	local v7 = p1.OnClose
	local v8 = p1.OnIgnore
	local l__Title__9 = p1.Title
	local v10 = p1.Message or (p1.Text or "")
	local l__Time__11 = p1.Time
	if v6 and type(v6) == "string" then
		v6 = client.Core.LoadCode(v6, GetEnv())
	end
	if v7 and type(v7) == "string" then
		v7 = client.Core.LoadCode(v7, GetEnv())
	end
	if v8 and type(v8) == "string" then
		v8 = client.Core.LoadCode(v8, GetEnv())
	end
	local v12 = client.UI.Get("NotificationHolder", nil, true)
	if not v12 then
		local v13 = service.New("ScreenGui")
		local v14 = client.UI.Register(v13)
		local v15 = service.New("ScrollingFrame", v13)
		client.UI.Prepare(v13)
		v14.Name = "NotificationHolder"
		v15.Name = "Frame"
		v15.BackgroundTransparency = 1
		v15.Size = UDim2.new(0, 200, 0.5, 0)
		v15.Position = UDim2.new(1, -210, 0.5, -10)
		v15.CanvasSize = UDim2.new(0, 0, 0, 0)
		v15.ChildAdded:Connect(function(p2)
			if #v15:GetChildren() == 0 then
				v15.Visible = false
				return
			end
			v15.Visible = true
		end)
		v15.ChildRemoved:Connect(function(p3)
			if #v15:GetChildren() == 0 then
				v15.Visible = false
				return
			end
			v15.Visible = true
		end)
		v12 = v14
		v14:Ready()
	end
	l__Parent__3.Frame.Title.Text = l__Title__9
	l__Parent__3.Name = l__Title__9
	l__Main__4.Text = v10
	local u1 = nil
	local function u2(p4, p5)
		local v16 = {}
		for v17, v18 in pairs(p4:GetChildren()) do
			table.insert(v16, 1, v18)
		end
		for v19, v20 in pairs(v16) do
			v20.Position = UDim2.new(0, 0, 1, -75 * (v19 + p5))
		end
		p4.CanvasSize = UDim2.new(0, 0, 0, #p4:GetChildren() * 75)
		local v21 = #p4:GetChildren() * 75 - p4.AbsoluteWindowSize.Y
		if v21 < 0 then
			v21 = 0
		end
		p4.CanvasPosition = Vector2.new(0, v21)
	end
	local l__Frame__3 = v12.Object.Frame
	l__Main__4.MouseButton1Click:Connect(function()
		if l__Parent__3 and l__Parent__3.Parent then
			if v6 then
				u1 = v6()
			end
			l__Parent__3:Destroy()
			u2(l__Frame__3, 0)
		end
	end)
	local l__gTable__4 = p1.gTable
	l__Parent__3.Frame.Close.MouseButton1Click:Connect(function()
		if l__Parent__3 and l__Parent__3.Parent then
			if v7 then
				u1 = v7()
			end
			l__gTable__4:Destroy()
			u2(l__Frame__3, 0)
		end
	end)
	u2(l__Frame__3, 1)
	l__Parent__3.Parent = l__Frame__3
	l__Parent__3:TweenPosition(UDim2.new(0, 0, 1, -75), "Out", "Linear", 0.2)
	spawn(function()
		local v22 = Instance.new("Sound", service.LocalContainer())
		if v10 == "Click here for commands." then
			v22.SoundId = "rbxassetid://987728667"
		elseif l__Title__9 == "Warning!" then
			v22.SoundId = "rbxassetid://428495297"
		else
			v22.SoundId = "rbxassetid://2275705078"
		end
		wait(0.1)
		v22:Play()
		wait(1)
		v22:Destroy()
	end)
	if l__Time__11 then
		l__Timer__5.Visible = true
		local u5 = l__Time__11
		spawn(function()
			while true do
				l__Timer__5.Text = u5
				wait(1)
				u5 = u5 - 1
				if u5 <= 0 then
					break
				end
				if not l__Parent__3 then
					break
				end
				if not l__Parent__3.Parent then
					break
				end
			end
			if l__Parent__3 and l__Parent__3.Parent then
				if v8 then
					u1 = v8()
				end
				l__Parent__3:Destroy()
				u2(l__Frame__3, 0)
			end
		end)
	end
	while true do
		wait()
		if u1 ~= nil then
			break
		end
		if not l__Parent__3 then
			break
		end
		if not l__Parent__3.Parent then
			break
		end
	end
	return nil
end
