return function(j)local Z=service.PlayerGui local h=service.Players.LocalPlayer local n=client.UI.Prepare(script.Parent.Parent)local W=n.Main local S=W.Title local f=W.Message local x=j.Message local a=j.Color local V=client.UI.Get("\079\117\116\112\117\116")if V then for j,Z in pairs(V)do local h=Z.Object if h and h.Parent then h.Main.Position=UDim2.new(0,0,.35,h.Main.Position.Y.Offset+50)end end end f.Text=x spawn(function()local j=Instance.new("\083\111\117\110\100",service.LocalContainer())j.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\055\049\053\050\053\054\050\050\054\049"j.Volume=.1 j:Play()wait(.8)j:Destroy()end)W.Size=UDim2.new(1,0,0,0)gTable.Ready()W:TweenSize(UDim2.new(1,0,0,50),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.1)wait(5)gTable.Destroy()end
--// All global vars will be wiped/replaced except script

return function(data)
	local playergui = service.PlayerGui
	local localplayer = service.Players.LocalPlayer
	local scr = client.UI.Prepare(script.Parent.Parent)
	local main = scr.Main
	local t1 = main.Title
	local t2 = main.Message
	local msg = data.Message
	local color = data.Color

	local found = client.UI.Get("Output")
	if found then
		for i, v in pairs(found) do
			local p = v.Object
			if p and p.Parent then
				p.Main.Position = UDim2.new(0, 0, 0.35, p.Main.Position.Y.Offset + 50)
			end
		end
	end

	t2.Text = msg

	spawn(function()
		local sound = Instance.new("Sound", service.LocalContainer())
		sound.SoundId = "rbxassetid://7152562261"
		sound.Volume = 0.1
		sound:Play()
		wait(0.8)
		sound:Destroy()
	end)

	main.Size = UDim2.new(1, 0, 0, 0)
	gTable.Ready()
	main:TweenSize(UDim2.new(1, 0, 0, 50), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.1)
	wait(5)
	gTable.Destroy()
end
