return function(g,E)if E then setfenv(1,E)end local X=service.PlayerGui local b=client.UI.Prepare(script.Parent.Parent)local l=b.LABEL local z=g.Message local O=client.UI.Get("\084\111\112\066\097\114")client.UI.Remove("\078\111\116\105\102",script.Parent.Parent)local Y={Type="\078\111\116\105\102";Title="\078\111\116\105\102",Message=z;Icon="\114\098\120\097\115\115\101\116\105\100\058\047\047\055\053\048\049\049\055\053\055\048\056";Time=os.date("\037\088"),Function=nil}table.insert(client.Variables.CommunicationsHistory,Y)service.Events.CommsCenter:Fire(Y)if z and type(z)=="\115\116\114\105\110\103"then l.Text=z l.Position=UDim2.new(0,0,0,(O and 40 or 0)-35)gTable:Ready()else b:Destroy()end end


return function(data, env)
	if env then
		setfenv(1, env)
	end
	local playergui = service.PlayerGui
	local gui = client.UI.Prepare(script.Parent.Parent)
	local label = gui.LABEL
	local str = data.Message
	local topbar = client.UI.Get("TopBar")

	client.UI.Remove("Notif",script.Parent.Parent)

	local log  = {
		Type = "Notif";
		Title = "Notif";
		Message = str;
		Icon = "rbxassetid://7501175708";
		Time = os.date("%X");
		Function = nil;
	}

	table.insert(client.Variables.CommunicationsHistory, log)
	service.Events.CommsCenter:Fire(log)


	if str and type(str)=="string" then
		label.Text = str
		label.Position = UDim2.new(0, 0, 0, ((topbar and 40) or 0) - 35)
		gTable:Ready()
	else
		gui:Destroy()
	end
end
