return function(V)local c=service.PlayerGui local t=service.Players.LocalPlayer local s=client.UI.Prepare(script.Parent.Parent)local h=s.Window local p=V.Message local U=V.Color local C=client.UI.Get("\079\117\116\112\117\116")if C then for V,c in pairs(C)do local t=c.Object if t and t.Parent then t.Window.Position=UDim2.new(.5,0,.5,t.Window.Position.Y.Offset+160)end end end h.Main.ScrollingFrame.ErrorText.Text=p h.Main.ScrollingFrame.ErrorText.TextColor3=U h.Close.MouseButton1Down:Connect(function()gTable.Destroy()end)spawn(function()local V=Instance.new("\083\111\117\110\100",service.LocalContainer())V.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\054\048\055\049\053\051\053\055"V.Volume=2 V:Play()wait(.8)V:Destroy()end)gTable.Ready()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 window = scr.Window
	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.Window.Position = UDim2.new(0.5, 0, 0.5, p.Window.Position.Y.Offset + 160)
			end
		end
	end

	window.Main.ScrollingFrame.ErrorText.Text = msg
	window.Main.ScrollingFrame.ErrorText.TextColor3 = color

	window.Close.MouseButton1Down:Connect(function()
		gTable.Destroy()
	end)

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

	gTable.Ready()
	wait(5)
	gTable.Destroy()
end
