return function(O,X)if X then setfenv(1,X)end local w=service.PlayerGui local G=client.UI.Prepare(script.Parent.Parent)local m=G.LABEL local v=O.Message local k=client.UI.Get("\084\111\112\066\097\114")client.UI.Remove("\078\111\116\105\102",script.Parent.Parent)local C={Type="\078\111\116\105\102",Title="\078\111\116\105\102",Message=v;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,C)service.Events.CommsCenter:Fire(C)if v and type(v)=="\115\116\114\105\110\103"then m.Text=v m.Position=UDim2.new(0,0,0,(k and 40 or 0)-35)gTable:Ready()else G:Destroy()end end
--// All global vars will be wiped/replaced except script

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
