Advertisement
Leodu41

qzdqzd

Nov 7th, 2020
1,908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.87 KB | None | 0 0
  1. -- GUI to Lua
  2. -----
  3. -- Version: 2.0.
  4. -- Made by chrisopdemobiel.
  5.  
  6. -- Instances:
  7.  
  8. local Output = Instance.new("Frame")
  9. local Frame = Instance.new("Frame")
  10. local ScrollingFrame = Instance.new("ScrollingFrame")
  11. local UIListLayout = Instance.new("UIListLayout")
  12. local OutputFrame = Instance.new("Frame")
  13. local blankLine = Instance.new("TextLabel")
  14. local scroll = Instance.new("ScrollingFrame")
  15. local TextButton = Instance.new("TextButton")
  16. local TextLabel = Instance.new("TextLabel")
  17.  
  18. --Properties:
  19.  
  20. Output.Name = "Output"
  21. Output.Parent = game.StarterGui.ScreenGui
  22. Output.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  23. Output.BorderSizePixel = 0
  24. Output.Position = UDim2.new(0.0572263971, 0, 0.611909747, 0)
  25. Output.Size = UDim2.new(0, 1235, 0, 16)
  26.  
  27. Frame.Parent = Output
  28. Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  29. Frame.BorderSizePixel = 0
  30. Frame.ClipsDescendants = true
  31. Frame.Position = UDim2.new(0, 0, 1.01118469, 0)
  32. Frame.Size = UDim2.new(0, 1235, 0, 291)
  33.  
  34. ScrollingFrame.Parent = Frame
  35. ScrollingFrame.Active = true
  36. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  37. ScrollingFrame.BackgroundTransparency = 1.000
  38. ScrollingFrame.BorderSizePixel = 0
  39. ScrollingFrame.Size = UDim2.new(0, 974, 0, 487)
  40. ScrollingFrame.BottomImage = ""
  41. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 7, 0)
  42. ScrollingFrame.ScrollBarThickness = 0
  43. ScrollingFrame.TopImage = ""
  44.  
  45. UIListLayout.Parent = ScrollingFrame
  46. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  47.  
  48. OutputFrame.Name = "OutputFrame"
  49. OutputFrame.Parent = ScrollingFrame
  50. OutputFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  51. OutputFrame.BackgroundTransparency = 1.000
  52. OutputFrame.BorderSizePixel = 0
  53. OutputFrame.Size = UDim2.new(0, 1235, 0, 291)
  54.  
  55. blankLine.Name = "blankLine"
  56. blankLine.Parent = game.StarterGui.ScreenGui.Output.Frame.ScrollingFrame.OutputFrame.outputUpdate
  57. blankLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. blankLine.BackgroundTransparency = 1.000
  59. blankLine.BorderColor3 = Color3.fromRGB(0, 0, 0)
  60. blankLine.BorderSizePixel = 0
  61. blankLine.ZIndex = 10
  62. blankLine.Font = Enum.Font.Code
  63. blankLine.Text = ""
  64. blankLine.TextColor3 = Color3.fromRGB(0, 0, 0)
  65. blankLine.TextSize = 18.000
  66. blankLine.TextXAlignment = Enum.TextXAlignment.Left
  67.  
  68. scroll.Name = "scroll"
  69. scroll.Parent = OutputFrame
  70. scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  71. scroll.BackgroundTransparency = 1.000
  72. scroll.BorderColor3 = Color3.fromRGB(0, 0, 0)
  73. scroll.Size = UDim2.new(0, 1235, 0, 421)
  74. scroll.ZIndex = 9
  75. scroll.BottomImage = "rbxassetid://185945953"
  76. scroll.CanvasSize = UDim2.new(0, 0, 0, 0)
  77. scroll.MidImage = "rbxassetid://185945953"
  78. scroll.ScrollBarThickness = 10
  79. scroll.TopImage = "rbxassetid://185945953"
  80.  
  81. TextButton.Parent = Output
  82. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  83. TextButton.BackgroundTransparency = 1.000
  84. TextButton.Position = UDim2.new(0.981270134, 0, -0.039352417, 0)
  85. TextButton.Size = UDim2.new(0, 23, 0, 14)
  86. TextButton.Font = Enum.Font.SourceSans
  87. TextButton.Text = "X"
  88. TextButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  89. TextButton.TextScaled = true
  90. TextButton.TextSize = 14.000
  91. TextButton.TextWrapped = true
  92.  
  93. TextLabel.Parent = Output
  94. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  95. TextLabel.BackgroundTransparency = 1.000
  96. TextLabel.Position = UDim2.new(0.00616015308, 0, 0, 0)
  97. TextLabel.Size = UDim2.new(0, 182, 0, 16)
  98. TextLabel.Font = Enum.Font.Code
  99. TextLabel.Text = "debug║ServerOutput"
  100. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  101. TextLabel.TextSize = 14.000
  102. TextLabel.TextWrapped = true
  103. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  104.  
  105. -- Scripts:
  106.  
  107. local function NWVX_fake_script() -- OutputFrame.outputUpdate
  108.     local script = Instance.new('Script', OutputFrame)
  109.  
  110.     -- All credits goes to: DoctorKuro --
  111.     -- Do not Steal this Please --
  112.    
  113.     local colors = {
  114.         [Enum.MessageType.MessageInfo] = BrickColor.new("Bright blue").Color;
  115.         [Enum.MessageType.MessageError]  = BrickColor.new("Bright red").Color;
  116.     }
  117.     local canvasX = 0
  118.    
  119.     game:getService("LogService").MessageOut:connect(function(output, messageType)
  120.         local newLine = script.blankLine:clone()
  121.         newLine.TextColor3 = colors[messageType]
  122.         newLine.Position = UDim2.new(0, 5, 0, (#script.Parent.scroll:getChildren() * 15))
  123.         newLine.Text = output
  124.         newLine.Name = tick()
  125.         newLine.Parent = script.Parent.scroll
  126.         newLine.Size = UDim2.new(0, (#output * 10), 0, 15)
  127.         canvasX = (canvasX > (#output * 10) and canvasX or (#output * 10)) --dont use newLine.TextBounds.X outside of a local script
  128.         script.Parent.scroll.CanvasSize = UDim2.new(0, (canvasX + 10), 0, ((#script.Parent.scroll:getChildren() + 1) * 15))
  129.     end)
  130.    
  131.     script.Parent.Parent.open.MouseButton1Click:connect(function()
  132.         script.Parent.Parent.open.Visible = false
  133.         script.Parent.Visible = true
  134.     end)
  135.    
  136.     script.Parent.close.MouseButton1Click:connect(function()
  137.         script.Parent.Visible = false
  138.         script.Parent.Parent.open.Visible = true
  139.     end)
  140. end
  141. coroutine.wrap(NWVX_fake_script)()
  142. local function FRDFWI_fake_script() -- TextButton.LocalScript
  143.     local script = Instance.new('LocalScript', TextButton)
  144.  
  145.     local sc = script.Parent.Parent.Parent.Output
  146.    
  147.     script.Parent.MouseButton1Click:Connect(function()
  148.         sc:Destroy()
  149.     end)
  150. end
  151. coroutine.wrap(FRDFWI_fake_script)()
  152. local function SOUNMF_fake_script() -- Output.Dragify
  153.     local script = Instance.new('LocalScript', Output)
  154.  
  155.     local UIS = game:GetService("UserInputService")
  156.     function dragify(Frame)
  157.         dragToggle = nil
  158.         local dragSpeed = 0.50
  159.         dragInput = nil
  160.         dragStart = nil
  161.         local dragPos = nil
  162.         function updateInput(input)
  163.             local Delta = input.Position - dragStart
  164.             local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  165.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
  166.         end
  167.         Frame.InputBegan:Connect(function(input)
  168.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  169.                 dragToggle = true
  170.                 dragStart = input.Position
  171.                 startPos = Frame.Position
  172.                 input.Changed:Connect(function()
  173.                     if input.UserInputState == Enum.UserInputState.End then
  174.                         dragToggle = false
  175.                     end
  176.                 end)
  177.             end
  178.         end)
  179.         Frame.InputChanged:Connect(function(input)
  180.             if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  181.                 dragInput = input
  182.             end
  183.         end)
  184.         game:GetService("UserInputService").InputChanged:Connect(function(input)
  185.             if input == dragInput and dragToggle then
  186.                 updateInput(input)
  187.             end
  188.         end)
  189.     end
  190.    
  191.     dragify(script.Parent)
  192. end
  193. coroutine.wrap(SOUNMF_fake_script)()
  194.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement