Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local OutputGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Scroll = Instance.new("ScrollingFrame")
- local Close = Instance.new("TextButton")
- local BlankLine = Instance.new("TextLabel")
- local Title = Instance.new("TextLabel")
- local FakeScroll = Instance.new("ScrollingFrame")
- local ScrollDown = Instance.new("ImageButton")
- local ArrowGraphic = Instance.new("Frame")
- local Graphic = Instance.new("Frame")
- local Graphic_2 = Instance.new("Frame")
- local Graphic_3 = Instance.new("Frame")
- local Graphic_4 = Instance.new("Frame")
- local ScrollUp = Instance.new("ImageButton")
- local ArrowGraphic_2 = Instance.new("Frame")
- local Graphic_5 = Instance.new("Frame")
- local Graphic_6 = Instance.new("Frame")
- local Graphic_7 = Instance.new("Frame")
- local Graphic_8 = Instance.new("Frame")
- local ScrollBar = Instance.new("ImageButton")
- local ScrollThumb = Instance.new("ImageButton")
- local GripGraphic = Instance.new("Frame")
- local Frame_2 = Instance.new("Frame")
- local Frame_3 = Instance.new("Frame")
- local Frame_4 = Instance.new("Frame")
- local Open = Instance.new("TextButton")
- --Properties:
- OutputGui.Name = "Output Gui"
- OutputGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Frame.Parent = OutputGui
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.fromRGB(197, 197, 197)
- Frame.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BorderSizePixel = 2
- Frame.Draggable = true
- Frame.Position = UDim2.new(0.5, -250, 0.5, -15)
- Frame.Size = UDim2.new(0, 715, 0, 30)
- Frame.Visible = false
- Scroll.Name = "Scroll"
- Scroll.Parent = Frame
- Scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Scroll.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Scroll.BorderSizePixel = 2
- Scroll.Position = UDim2.new(0, 0, 0, 30)
- Scroll.Size = UDim2.new(0, 715, 0, 200)
- Scroll.BottomImage = "rbxassetid://185945953"
- Scroll.CanvasSize = UDim2.new(0, 0, 0, 0)
- Scroll.MidImage = "rbxassetid://185945953"
- Scroll.ScrollBarThickness = 10
- Scroll.TopImage = "rbxassetid://185945953"
- Close.Name = "Close"
- Close.Parent = Frame
- Close.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
- Close.BackgroundTransparency = 1.000
- Close.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Close.BorderSizePixel = 0
- Close.Position = UDim2.new(1, -25, 0.5, -10)
- Close.Size = UDim2.new(0, 25, 0, 20)
- Close.Font = Enum.Font.SourceSans
- Close.Text = "X"
- Close.TextColor3 = Color3.fromRGB(0, 0, 0)
- Close.TextSize = 18.000
- BlankLine.Name = "BlankLine"
- BlankLine.Parent = game.StarterGui.Output Gui.Frame.Script
- BlankLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BlankLine.BackgroundTransparency = 1.000
- BlankLine.BorderColor3 = Color3.fromRGB(0, 0, 0)
- BlankLine.BorderSizePixel = 0
- BlankLine.ZIndex = 10
- BlankLine.Font = Enum.Font.SourceSansBold
- BlankLine.Text = ""
- BlankLine.TextColor3 = Color3.fromRGB(0, 0, 0)
- BlankLine.TextSize = 18.000
- BlankLine.TextXAlignment = Enum.TextXAlignment.Left
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.BorderSizePixel = 0
- Title.Size = UDim2.new(1, 0, 1, 0)
- Title.Font = Enum.Font.SourceSansBold
- Title.Text = "Output"
- Title.TextColor3 = Color3.fromRGB(0, 0, 0)
- Title.TextSize = 18.000
- FakeScroll.Name = "FakeScroll"
- FakeScroll.Parent = Frame
- FakeScroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- FakeScroll.BorderColor3 = Color3.fromRGB(255, 255, 255)
- FakeScroll.BorderSizePixel = 2
- FakeScroll.Position = UDim2.new(0, 0, 0, 30)
- FakeScroll.Size = UDim2.new(0, 715, 0, 200)
- FakeScroll.BottomImage = "rbxassetid://185945953"
- FakeScroll.CanvasSize = UDim2.new(0, 0, 0, 0)
- FakeScroll.MidImage = "rbxassetid://185945953"
- FakeScroll.ScrollBarThickness = 10
- FakeScroll.TopImage = "rbxassetid://185945953"
- ScrollDown.Name = "ScrollDown"
- ScrollDown.Parent = FakeScroll
- ScrollDown.BackgroundColor3 = Color3.fromRGB(221, 221, 221)
- ScrollDown.BorderColor3 = Color3.fromRGB(149, 149, 149)
- ScrollDown.Position = UDim2.new(1, -16, 1, -16)
- ScrollDown.Size = UDim2.new(0, 16, 0, 16)
- ArrowGraphic.Name = "Arrow Graphic"
- ArrowGraphic.Parent = ScrollDown
- ArrowGraphic.BackgroundTransparency = 1.000
- ArrowGraphic.BorderSizePixel = 0
- ArrowGraphic.Position = UDim2.new(0.5, -4, 0.5, -4)
- ArrowGraphic.Size = UDim2.new(0, 8, 0, 8)
- Graphic.Name = "Graphic"
- Graphic.Parent = ArrowGraphic
- Graphic.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic.BorderSizePixel = 0
- Graphic.Position = UDim2.new(0.375, 0, 0.625, 0)
- Graphic.Size = UDim2.new(0.25, 0, 0.125, 0)
- Graphic_2.Name = "Graphic"
- Graphic_2.Parent = ArrowGraphic
- Graphic_2.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic_2.BorderSizePixel = 0
- Graphic_2.Position = UDim2.new(0.25, 0, 0.5, 0)
- Graphic_2.Size = UDim2.new(0.5, 0, 0.125, 0)
- Graphic_3.Name = "Graphic"
- Graphic_3.Parent = ArrowGraphic
- Graphic_3.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic_3.BorderSizePixel = 0
- Graphic_3.Position = UDim2.new(0.125, 0, 0.375, 0)
- Graphic_3.Size = UDim2.new(0.75, 0, 0.125, 0)
- Graphic_4.Name = "Graphic"
- Graphic_4.Parent = ArrowGraphic
- Graphic_4.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic_4.BorderSizePixel = 0
- Graphic_4.Position = UDim2.new(0, 0, 0.25, 0)
- Graphic_4.Size = UDim2.new(1, 0, 0.125, 0)
- ScrollUp.Name = "ScrollUp"
- ScrollUp.Parent = FakeScroll
- ScrollUp.Active = false
- ScrollUp.BackgroundColor3 = Color3.fromRGB(221, 221, 221)
- ScrollUp.BorderColor3 = Color3.fromRGB(149, 149, 149)
- ScrollUp.Position = UDim2.new(1, -16, 0, 0)
- ScrollUp.Size = UDim2.new(0, 16, 0, 16)
- ScrollUp.AutoButtonColor = false
- ArrowGraphic_2.Name = "Arrow Graphic"
- ArrowGraphic_2.Parent = ScrollUp
- ArrowGraphic_2.BackgroundTransparency = 1.000
- ArrowGraphic_2.BorderSizePixel = 0
- ArrowGraphic_2.Position = UDim2.new(0.5, -4, 0.5, -4)
- ArrowGraphic_2.Size = UDim2.new(0, 8, 0, 8)
- Graphic_5.Name = "Graphic"
- Graphic_5.Parent = ArrowGraphic_2
- Graphic_5.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic_5.BackgroundTransparency = 0.700
- Graphic_5.BorderSizePixel = 0
- Graphic_5.Position = UDim2.new(0.375, 0, 0.25, 0)
- Graphic_5.Size = UDim2.new(0.25, 0, 0.125, 0)
- Graphic_6.Name = "Graphic"
- Graphic_6.Parent = ArrowGraphic_2
- Graphic_6.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic_6.BackgroundTransparency = 0.700
- Graphic_6.BorderSizePixel = 0
- Graphic_6.Position = UDim2.new(0.25, 0, 0.375, 0)
- Graphic_6.Size = UDim2.new(0.5, 0, 0.125, 0)
- Graphic_7.Name = "Graphic"
- Graphic_7.Parent = ArrowGraphic_2
- Graphic_7.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic_7.BackgroundTransparency = 0.700
- Graphic_7.BorderSizePixel = 0
- Graphic_7.Position = UDim2.new(0.125, 0, 0.5, 0)
- Graphic_7.Size = UDim2.new(0.75, 0, 0.125, 0)
- Graphic_8.Name = "Graphic"
- Graphic_8.Parent = ArrowGraphic_2
- Graphic_8.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
- Graphic_8.BackgroundTransparency = 0.700
- Graphic_8.BorderSizePixel = 0
- Graphic_8.Position = UDim2.new(0, 0, 0.625, 0)
- Graphic_8.Size = UDim2.new(1, 0, 0.125, 0)
- ScrollBar.Name = "ScrollBar"
- ScrollBar.Parent = FakeScroll
- ScrollBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollBar.BackgroundTransparency = 1.000
- ScrollBar.BorderColor3 = Color3.fromRGB(149, 149, 149)
- ScrollBar.BorderSizePixel = 0
- ScrollBar.Position = UDim2.new(1, -16, 0, 16)
- ScrollBar.Size = UDim2.new(1, 0, 1, -32)
- ScrollBar.AutoButtonColor = false
- ScrollThumb.Name = "ScrollThumb"
- ScrollThumb.Parent = ScrollBar
- ScrollThumb.BackgroundColor3 = Color3.fromRGB(221, 221, 221)
- ScrollThumb.BorderColor3 = Color3.fromRGB(149, 149, 149)
- ScrollThumb.Size = UDim2.new(0, 16, 0.283333331, 0)
- ScrollThumb.AutoButtonColor = false
- GripGraphic.Name = "Grip Graphic"
- GripGraphic.Parent = ScrollThumb
- GripGraphic.BackgroundTransparency = 1.000
- GripGraphic.BorderSizePixel = 0
- GripGraphic.Position = UDim2.new(0.5, -3, 0.5, -3)
- GripGraphic.Size = UDim2.new(0, 6, 0, 6)
- Frame_2.Parent = GripGraphic
- Frame_2.BorderSizePixel = 0
- Frame_2.Size = UDim2.new(1, 0, 0.166666672, 0)
- Frame_3.Parent = GripGraphic
- Frame_3.BorderSizePixel = 0
- Frame_3.Position = UDim2.new(0, 0, 0.333333343, 0)
- Frame_3.Size = UDim2.new(1, 0, 0.166666672, 0)
- Frame_4.Parent = GripGraphic
- Frame_4.BorderSizePixel = 0
- Frame_4.Position = UDim2.new(0, 0, 0.666666687, 0)
- Frame_4.Size = UDim2.new(1, 0, 0.166666672, 0)
- Open.Name = "Open"
- Open.Parent = OutputGui
- Open.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Open.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Open.BorderSizePixel = 0
- Open.Position = UDim2.new(0, 0, 0.5, -20)
- Open.Size = UDim2.new(0, 150, 0, 40)
- Open.ZIndex = 8
- Open.Font = Enum.Font.SourceSansBold
- Open.Text = "Output"
- Open.TextColor3 = Color3.fromRGB(0, 0, 0)
- Open.TextSize = 24.000
- -- Scripts:
- local function OSJAGFD_fake_script() -- Frame.Script
- local script = Instance.new('Script', Frame)
- local colors = {
- [Enum.MessageType.MessageOutput] = BrickColor.new("Black").Color;
- [Enum.MessageType.MessageInfo] = BrickColor.new("Electric blue").Color;
- [Enum.MessageType.MessageWarning] = BrickColor.new("Bright orange").Color;
- [Enum.MessageType.MessageError] = BrickColor.new("Bright red").Color;
- }
- local canvasX = 0
- game:getService("LogService").MessageOut:connect(function(output, messageType)
- local newLine = script.BlankLine:clone()
- newLine.TextColor3 = colors[messageType]
- newLine.Position = UDim2.new(0, 5, 0, (#script.Parent.Scroll:getChildren() * 20))
- newLine.Text = output
- newLine.Name = tick()
- newLine.Parent = script.Parent.Scroll
- newLine.Size = UDim2.new(0, (#output * 10), 0, -20)
- canvasX = (canvasX > (#output * 10) and canvasX or (#output * 10)) --dont use newLine.TextBounds.X outside of a local script
- script.Parent.Scroll.CanvasSize = UDim2.new(0, (canvasX + 10), 0, ((#script.Parent.Scroll:getChildren() + 1) * 15))
- end)
- script.Parent.Parent.Open.MouseButton1Click:connect(function()
- script.Parent.Parent.Open.Visible = false
- script.Parent.Visible = true
- end)
- script.Parent.Close.MouseButton1Click:connect(function()
- script.Parent.Visible = false
- script.Parent.Parent.Open.Visible = true
- end)
- end
- coroutine.wrap(OSJAGFD_fake_script)()
- local function OQBSO_fake_script() -- Frame.LocalScript
- local script = Instance.new('LocalScript', Frame)
- local aa = script.Parent
- aa.Active = true
- aa.Selectable = true
- aa.Draggable = true
- end
- coroutine.wrap(OQBSO_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement