return function(z,p)if p then setfenv(1,p)end local u=service.PlayerGui local P=service.Players.LocalPlayer local U=client.UI.Prepare(script.Parent.Parent)local d=U.Main local T=d.Title local D=d.Message local B=z.Message local k=z.Color or Color3.fromRGB(255,78,78)local I=TweenInfo.new(.2)local H=service.TweenService:Create(d,I,{Position=UDim2.new(.11,0,.35,0)})local L=service.TweenService:Create(d,I,{Position=UDim2.new(.11,0,0,-200)})local m=client.UI.Get("\079\117\116\112\117\116")if m then for z,p in pairs(m)do local u=p.Object if u and u.Parent then local z=service.TweenService:Create(u.Main,I,{Position=UDim2.new(.11,0,.35,u.Main.Position.Y.Offset+55)})z:Play()end end end D.TextColor3=k d.BackgroundColor3=k D.Text=B D.Font="\071\111\116\104\097\109"H:Play()gTable.Ready()wait(5)L:Play()wait(2)gTable.Destroy()end


return function(data, env)
	if env then
		setfenv(1, env)
	end
	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 or Color3.fromRGB(255, 78, 78)


	local tweenInfo = TweenInfo.new(0.20)----service.SafeTweenSize(frame,UDim2.new(1,0,0,40),nil,nil,0.3,nil,function() if scrollOpen then frame.Size = UDim2.new(1,0,0,140) end end)
	local consoleOpenTween = service.TweenService:Create(main, tweenInfo, {
		Position = UDim2.new(0.11, 0, 0.35, 0);
	})

	local consoleCloseTween = service.TweenService:Create(main, tweenInfo, {
		Position = UDim2.new(0.11, 0, 0, -200);
	})

	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
				local consoleOpenTween1 = service.TweenService:Create(p.Main, tweenInfo, {
					Position = UDim2.new(0.11, 0, 0.35, p.Main.Position.Y.Offset+55);
				})
				consoleOpenTween1:Play()
			end
		end
	end
	t2.TextColor3 = color
	main.BackgroundColor3 = color
	t2.Text = msg
	t2.Font = "Gotham"
	consoleOpenTween:Play()
	--t2.Position = UDim2.new(0, 0, 0.35, 0)
	gTable.Ready()
	wait(5)
	consoleCloseTween:Play()
	wait(2)
	gTable.Destroy()
end
