Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- GUI to Lua
- -----
- -- Version: 2.0.
- -- Made by chrisopdemobiel.
- -- Instances:
- local Output = Instance.new("Frame")
- local Frame = Instance.new("Frame")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- local OutputFrame = Instance.new("Frame")
- local blankLine = Instance.new("TextLabel")
- local scroll = Instance.new("ScrollingFrame")
- local TextButton = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- Output.Name = "Output"
- Output.Parent = game.StarterGui.ScreenGui
- Output.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Output.BorderSizePixel = 0
- Output.Position = UDim2.new(0.0572263971, 0, 0.611909747, 0)
- Output.Size = UDim2.new(0, 1235, 0, 16)
- Frame.Parent = Output
- Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- Frame.BorderSizePixel = 0
- Frame.ClipsDescendants = true
- Frame.Position = UDim2.new(0, 0, 1.01118469, 0)
- Frame.Size = UDim2.new(0, 1235, 0, 291)
- ScrollingFrame.Parent = Frame
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.BackgroundTransparency = 1.000
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Size = UDim2.new(0, 974, 0, 487)
- ScrollingFrame.BottomImage = ""
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 7, 0)
- ScrollingFrame.ScrollBarThickness = 0
- ScrollingFrame.TopImage = ""
- UIListLayout.Parent = ScrollingFrame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- OutputFrame.Name = "OutputFrame"
- OutputFrame.Parent = ScrollingFrame
- OutputFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- OutputFrame.BackgroundTransparency = 1.000
- OutputFrame.BorderSizePixel = 0
- OutputFrame.Size = UDim2.new(0, 1235, 0, 291)
- blankLine.Name = "blankLine"
- blankLine.Parent = game.StarterGui.ScreenGui.Output.Frame.ScrollingFrame.OutputFrame.outputUpdate
- 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.Code
- blankLine.Text = ""
- blankLine.TextColor3 = Color3.fromRGB(0, 0, 0)
- blankLine.TextSize = 18.000
- blankLine.TextXAlignment = Enum.TextXAlignment.Left
- scroll.Name = "scroll"
- scroll.Parent = OutputFrame
- scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- scroll.BackgroundTransparency = 1.000
- scroll.BorderColor3 = Color3.fromRGB(0, 0, 0)
- scroll.Size = UDim2.new(0, 1235, 0, 421)
- scroll.ZIndex = 9
- scroll.BottomImage = "rbxassetid://185945953"
- scroll.CanvasSize = UDim2.new(0, 0, 0, 0)
- scroll.MidImage = "rbxassetid://185945953"
- scroll.ScrollBarThickness = 10
- scroll.TopImage = "rbxassetid://185945953"
- TextButton.Parent = Output
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BackgroundTransparency = 1.000
- TextButton.Position = UDim2.new(0.981270134, 0, -0.039352417, 0)
- TextButton.Size = UDim2.new(0, 23, 0, 14)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "X"
- TextButton.TextColor3 = Color3.fromRGB(255, 0, 0)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextWrapped = true
- TextLabel.Parent = Output
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.00616015308, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 182, 0, 16)
- TextLabel.Font = Enum.Font.Code
- TextLabel.Text = "debugâ•‘ServerOutput"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- -- Scripts:
- local function NWVX_fake_script() -- OutputFrame.outputUpdate
- local script = Instance.new('Script', OutputFrame)
- -- All credits goes to: DoctorKuro --
- -- Do not Steal this Please --
- local colors = {
- [Enum.MessageType.MessageInfo] = BrickColor.new("Bright blue").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() * 15))
- newLine.Text = output
- newLine.Name = tick()
- newLine.Parent = script.Parent.scroll
- newLine.Size = UDim2.new(0, (#output * 10), 0, 15)
- 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(NWVX_fake_script)()
- local function FRDFWI_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- local sc = script.Parent.Parent.Parent.Output
- script.Parent.MouseButton1Click:Connect(function()
- sc:Destroy()
- end)
- end
- coroutine.wrap(FRDFWI_fake_script)()
- local function SOUNMF_fake_script() -- Output.Dragify
- local script = Instance.new('LocalScript', Output)
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- local dragSpeed = 0.50
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(script.Parent)
- end
- coroutine.wrap(SOUNMF_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement