client=nil cPcall=nil Pcall=nil Routine=nil service=nil GetEnv=nil gTable=nil return function(d)local y=service.PlayerGui local I=service.Players.LocalPlayer local t=script.Parent.Parent local Z=t:WaitForChild("\070\114\097\109\101")local a=Z:WaitForChild("\077\097\105\110")local X=Z:WaitForChild("\067\108\111\115\101")local O=Z:WaitForChild("\084\105\109\101\114")local T=d.OnClick local G=d.OnClose local N=d.OnIgnore local o=d.Title local c=d.Message or d.Text or""local E=d.Time local K=d.Icon or client.MatIcons.Info if T and type(T)=="\115\116\114\105\110\103"then T=client.Core.LoadCode(T,GetEnv())end if G and type(G)=="\115\116\114\105\110\103"then G=client.Core.LoadCode(G,GetEnv())end if N and type(N)=="\115\116\114\105\110\103"then N=client.Core.LoadCode(N,GetEnv())end local r=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 r then client.UI.Make("\078\111\116\105\102\105\099\097\116\105\111\110\072\111\108\100\101\114")r=client.UI.Get("\078\111\116\105\102\105\099\097\116\105\111\110\072\111\108\100\101\114",nil,true)r.Object.ScrollingFrame.Active=false end;(Z:WaitForChild("\084\105\116\108\101")).Text=o a.Text=c;(Z:WaitForChild("\073\099\111\110")).Image=K local D={Type="\078\111\116\105\102\105\099\097\116\105\111\110";Title=o,Message=c,Icon=K and 0,Time=os.date("\037\088");Function=T}table.insert(client.Variables.CommunicationsHistory,D)service.Events.CommsCenter:Fire(D)a.MouseButton1Click:Connect(function()if t and t.Parent then if T then T()end t:Destroy()end end)local H=d.gTable X.MouseButton1Click:Connect(function()if t and t.Parent then if G then G()end H:Destroy()end end)t.Parent=r.Object.ScrollingFrame task.spawn(function()local d=Instance.new("\083\111\117\110\100",service.LocalContainer())d.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\050\048\051\055\056\053\053\056\052"d.Volume=.2 d:Play()wait(.5)d:Destroy()end)if E then O.Visible=true while true do O.Text=E wait(1)E=E-1 if E<=0 then break end if not t then break end if not t.Parent then break end end if t and t.Parent then if t then t:Destroy()end if N then N()end 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__Frame__4 = l__Parent__3:WaitForChild("Frame")
	local l__Main__5 = l__Frame__4:WaitForChild("Main")
	local l__Close__6 = l__Frame__4:WaitForChild("Close")
	local l__Timer__7 = l__Frame__4:WaitForChild("Timer")
	local v8 = p1.OnClick
	local v9 = p1.OnClose
	local v10 = p1.OnIgnore
	local l__Title__11 = p1.Title
	local v12 = p1.Message or (p1.Text or "")
	local v13 = p1.Time
	local v14 = p1.Icon or client.MatIcons.Info
	if v8 and type(v8) == "string" then
		v8 = client.Core.LoadCode(v8, GetEnv())
	end
	if v9 and type(v9) == "string" then
		v9 = client.Core.LoadCode(v9, GetEnv())
	end
	if v10 and type(v10) == "string" then
		v10 = client.Core.LoadCode(v10, GetEnv())
	end
	local v15 = client.UI.Get("NotificationHolder", nil, true)
	if not v15 then
		client.UI.Make("NotificationHolder")
		v15 = client.UI.Get("NotificationHolder", nil, true)
		v15.Object.ScrollingFrame.Active = false
	end
	l__Frame__4:WaitForChild("Title").Text = l__Title__11
	l__Main__5.Text = v12
	l__Frame__4:WaitForChild("Icon").Image = v14
	local v16 = {
		Type = "Notification",
		Title = l__Title__11,
		Message = v12,
		Icon = v14 and 0,
		Time = os.date("%X"),
		Function = v8,
	}
	table.insert(client.Variables.CommunicationsHistory, v16)
	service.Events.CommsCenter:Fire(v16)
	l__Main__5.MouseButton1Click:Connect(function()
		if l__Parent__3 and l__Parent__3.Parent then
			if v8 then
				v8()
			end
			l__Parent__3:Destroy()
		end
	end)
	local l__gTable__1 = p1.gTable
	l__Close__6.MouseButton1Click:Connect(function()
		if l__Parent__3 and l__Parent__3.Parent then
			if v9 then
				v9()
			end
			l__gTable__1:Destroy()
		end
	end)
	l__Parent__3.Parent = v15.Object.ScrollingFrame
	task.spawn(function()
		local v17 = Instance.new("Sound", service.LocalContainer())
		v17.SoundId = "rbxassetid://203785584"
		v17.Volume = 0.2
		v17:Play()
		wait(0.5)
		v17:Destroy()
	end)
	if v13 then
		l__Timer__7.Visible = true
		while true do
			l__Timer__7.Text = v13
			wait(1)
			v13 = v13 - 1
			if v13 <= 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 l__Parent__3 then
				l__Parent__3:Destroy()
			end
			if v10 then
				v10()
			end
		end
	end
	return nil
end
