Advertisement
scriptingtales

Output gui script

Jun 28th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.31 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local OutputGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local Scroll = Instance.new("ScrollingFrame")
  9. local Close = Instance.new("TextButton")
  10. local BlankLine = Instance.new("TextLabel")
  11. local Title = Instance.new("TextLabel")
  12. local FakeScroll = Instance.new("ScrollingFrame")
  13. local ScrollDown = Instance.new("ImageButton")
  14. local ArrowGraphic = Instance.new("Frame")
  15. local Graphic = Instance.new("Frame")
  16. local Graphic_2 = Instance.new("Frame")
  17. local Graphic_3 = Instance.new("Frame")
  18. local Graphic_4 = Instance.new("Frame")
  19. local ScrollUp = Instance.new("ImageButton")
  20. local ArrowGraphic_2 = Instance.new("Frame")
  21. local Graphic_5 = Instance.new("Frame")
  22. local Graphic_6 = Instance.new("Frame")
  23. local Graphic_7 = Instance.new("Frame")
  24. local Graphic_8 = Instance.new("Frame")
  25. local ScrollBar = Instance.new("ImageButton")
  26. local ScrollThumb = Instance.new("ImageButton")
  27. local GripGraphic = Instance.new("Frame")
  28. local Frame_2 = Instance.new("Frame")
  29. local Frame_3 = Instance.new("Frame")
  30. local Frame_4 = Instance.new("Frame")
  31. local Open = Instance.new("TextButton")
  32.  
  33. --Properties:
  34.  
  35. OutputGui.Name = "Output Gui"
  36. OutputGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  37.  
  38. Frame.Parent = OutputGui
  39. Frame.Active = true
  40. Frame.BackgroundColor3 = Color3.fromRGB(197, 197, 197)
  41. Frame.BorderColor3 = Color3.fromRGB(255, 255, 255)
  42. Frame.BorderSizePixel = 2
  43. Frame.Draggable = true
  44. Frame.Position = UDim2.new(0.5, -250, 0.5, -15)
  45. Frame.Size = UDim2.new(0, 715, 0, 30)
  46. Frame.Visible = false
  47.  
  48. Scroll.Name = "Scroll"
  49. Scroll.Parent = Frame
  50. Scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. Scroll.BorderColor3 = Color3.fromRGB(255, 255, 255)
  52. Scroll.BorderSizePixel = 2
  53. Scroll.Position = UDim2.new(0, 0, 0, 30)
  54. Scroll.Size = UDim2.new(0, 715, 0, 200)
  55. Scroll.BottomImage = "rbxassetid://185945953"
  56. Scroll.CanvasSize = UDim2.new(0, 0, 0, 0)
  57. Scroll.MidImage = "rbxassetid://185945953"
  58. Scroll.ScrollBarThickness = 10
  59. Scroll.TopImage = "rbxassetid://185945953"
  60.  
  61. Close.Name = "Close"
  62. Close.Parent = Frame
  63. Close.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  64. Close.BackgroundTransparency = 1.000
  65. Close.BorderColor3 = Color3.fromRGB(0, 0, 0)
  66. Close.BorderSizePixel = 0
  67. Close.Position = UDim2.new(1, -25, 0.5, -10)
  68. Close.Size = UDim2.new(0, 25, 0, 20)
  69. Close.Font = Enum.Font.SourceSans
  70. Close.Text = "X"
  71. Close.TextColor3 = Color3.fromRGB(0, 0, 0)
  72. Close.TextSize = 18.000
  73.  
  74. BlankLine.Name = "BlankLine"
  75. BlankLine.Parent = game.StarterGui.Output Gui.Frame.Script
  76. BlankLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. BlankLine.BackgroundTransparency = 1.000
  78. BlankLine.BorderColor3 = Color3.fromRGB(0, 0, 0)
  79. BlankLine.BorderSizePixel = 0
  80. BlankLine.ZIndex = 10
  81. BlankLine.Font = Enum.Font.SourceSansBold
  82. BlankLine.Text = ""
  83. BlankLine.TextColor3 = Color3.fromRGB(0, 0, 0)
  84. BlankLine.TextSize = 18.000
  85. BlankLine.TextXAlignment = Enum.TextXAlignment.Left
  86.  
  87. Title.Name = "Title"
  88. Title.Parent = Frame
  89. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  90. Title.BackgroundTransparency = 1.000
  91. Title.BorderSizePixel = 0
  92. Title.Size = UDim2.new(1, 0, 1, 0)
  93. Title.Font = Enum.Font.SourceSansBold
  94. Title.Text = "Output"
  95. Title.TextColor3 = Color3.fromRGB(0, 0, 0)
  96. Title.TextSize = 18.000
  97.  
  98. FakeScroll.Name = "FakeScroll"
  99. FakeScroll.Parent = Frame
  100. FakeScroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. FakeScroll.BorderColor3 = Color3.fromRGB(255, 255, 255)
  102. FakeScroll.BorderSizePixel = 2
  103. FakeScroll.Position = UDim2.new(0, 0, 0, 30)
  104. FakeScroll.Size = UDim2.new(0, 715, 0, 200)
  105. FakeScroll.BottomImage = "rbxassetid://185945953"
  106. FakeScroll.CanvasSize = UDim2.new(0, 0, 0, 0)
  107. FakeScroll.MidImage = "rbxassetid://185945953"
  108. FakeScroll.ScrollBarThickness = 10
  109. FakeScroll.TopImage = "rbxassetid://185945953"
  110.  
  111. ScrollDown.Name = "ScrollDown"
  112. ScrollDown.Parent = FakeScroll
  113. ScrollDown.BackgroundColor3 = Color3.fromRGB(221, 221, 221)
  114. ScrollDown.BorderColor3 = Color3.fromRGB(149, 149, 149)
  115. ScrollDown.Position = UDim2.new(1, -16, 1, -16)
  116. ScrollDown.Size = UDim2.new(0, 16, 0, 16)
  117.  
  118. ArrowGraphic.Name = "Arrow Graphic"
  119. ArrowGraphic.Parent = ScrollDown
  120. ArrowGraphic.BackgroundTransparency = 1.000
  121. ArrowGraphic.BorderSizePixel = 0
  122. ArrowGraphic.Position = UDim2.new(0.5, -4, 0.5, -4)
  123. ArrowGraphic.Size = UDim2.new(0, 8, 0, 8)
  124.  
  125. Graphic.Name = "Graphic"
  126. Graphic.Parent = ArrowGraphic
  127. Graphic.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  128. Graphic.BorderSizePixel = 0
  129. Graphic.Position = UDim2.new(0.375, 0, 0.625, 0)
  130. Graphic.Size = UDim2.new(0.25, 0, 0.125, 0)
  131.  
  132. Graphic_2.Name = "Graphic"
  133. Graphic_2.Parent = ArrowGraphic
  134. Graphic_2.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  135. Graphic_2.BorderSizePixel = 0
  136. Graphic_2.Position = UDim2.new(0.25, 0, 0.5, 0)
  137. Graphic_2.Size = UDim2.new(0.5, 0, 0.125, 0)
  138.  
  139. Graphic_3.Name = "Graphic"
  140. Graphic_3.Parent = ArrowGraphic
  141. Graphic_3.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  142. Graphic_3.BorderSizePixel = 0
  143. Graphic_3.Position = UDim2.new(0.125, 0, 0.375, 0)
  144. Graphic_3.Size = UDim2.new(0.75, 0, 0.125, 0)
  145.  
  146. Graphic_4.Name = "Graphic"
  147. Graphic_4.Parent = ArrowGraphic
  148. Graphic_4.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  149. Graphic_4.BorderSizePixel = 0
  150. Graphic_4.Position = UDim2.new(0, 0, 0.25, 0)
  151. Graphic_4.Size = UDim2.new(1, 0, 0.125, 0)
  152.  
  153. ScrollUp.Name = "ScrollUp"
  154. ScrollUp.Parent = FakeScroll
  155. ScrollUp.Active = false
  156. ScrollUp.BackgroundColor3 = Color3.fromRGB(221, 221, 221)
  157. ScrollUp.BorderColor3 = Color3.fromRGB(149, 149, 149)
  158. ScrollUp.Position = UDim2.new(1, -16, 0, 0)
  159. ScrollUp.Size = UDim2.new(0, 16, 0, 16)
  160. ScrollUp.AutoButtonColor = false
  161.  
  162. ArrowGraphic_2.Name = "Arrow Graphic"
  163. ArrowGraphic_2.Parent = ScrollUp
  164. ArrowGraphic_2.BackgroundTransparency = 1.000
  165. ArrowGraphic_2.BorderSizePixel = 0
  166. ArrowGraphic_2.Position = UDim2.new(0.5, -4, 0.5, -4)
  167. ArrowGraphic_2.Size = UDim2.new(0, 8, 0, 8)
  168.  
  169. Graphic_5.Name = "Graphic"
  170. Graphic_5.Parent = ArrowGraphic_2
  171. Graphic_5.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  172. Graphic_5.BackgroundTransparency = 0.700
  173. Graphic_5.BorderSizePixel = 0
  174. Graphic_5.Position = UDim2.new(0.375, 0, 0.25, 0)
  175. Graphic_5.Size = UDim2.new(0.25, 0, 0.125, 0)
  176.  
  177. Graphic_6.Name = "Graphic"
  178. Graphic_6.Parent = ArrowGraphic_2
  179. Graphic_6.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  180. Graphic_6.BackgroundTransparency = 0.700
  181. Graphic_6.BorderSizePixel = 0
  182. Graphic_6.Position = UDim2.new(0.25, 0, 0.375, 0)
  183. Graphic_6.Size = UDim2.new(0.5, 0, 0.125, 0)
  184.  
  185. Graphic_7.Name = "Graphic"
  186. Graphic_7.Parent = ArrowGraphic_2
  187. Graphic_7.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  188. Graphic_7.BackgroundTransparency = 0.700
  189. Graphic_7.BorderSizePixel = 0
  190. Graphic_7.Position = UDim2.new(0.125, 0, 0.5, 0)
  191. Graphic_7.Size = UDim2.new(0.75, 0, 0.125, 0)
  192.  
  193. Graphic_8.Name = "Graphic"
  194. Graphic_8.Parent = ArrowGraphic_2
  195. Graphic_8.BackgroundColor3 = Color3.fromRGB(149, 149, 149)
  196. Graphic_8.BackgroundTransparency = 0.700
  197. Graphic_8.BorderSizePixel = 0
  198. Graphic_8.Position = UDim2.new(0, 0, 0.625, 0)
  199. Graphic_8.Size = UDim2.new(1, 0, 0.125, 0)
  200.  
  201. ScrollBar.Name = "ScrollBar"
  202. ScrollBar.Parent = FakeScroll
  203. ScrollBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  204. ScrollBar.BackgroundTransparency = 1.000
  205. ScrollBar.BorderColor3 = Color3.fromRGB(149, 149, 149)
  206. ScrollBar.BorderSizePixel = 0
  207. ScrollBar.Position = UDim2.new(1, -16, 0, 16)
  208. ScrollBar.Size = UDim2.new(1, 0, 1, -32)
  209. ScrollBar.AutoButtonColor = false
  210.  
  211. ScrollThumb.Name = "ScrollThumb"
  212. ScrollThumb.Parent = ScrollBar
  213. ScrollThumb.BackgroundColor3 = Color3.fromRGB(221, 221, 221)
  214. ScrollThumb.BorderColor3 = Color3.fromRGB(149, 149, 149)
  215. ScrollThumb.Size = UDim2.new(0, 16, 0.283333331, 0)
  216. ScrollThumb.AutoButtonColor = false
  217.  
  218. GripGraphic.Name = "Grip Graphic"
  219. GripGraphic.Parent = ScrollThumb
  220. GripGraphic.BackgroundTransparency = 1.000
  221. GripGraphic.BorderSizePixel = 0
  222. GripGraphic.Position = UDim2.new(0.5, -3, 0.5, -3)
  223. GripGraphic.Size = UDim2.new(0, 6, 0, 6)
  224.  
  225. Frame_2.Parent = GripGraphic
  226. Frame_2.BorderSizePixel = 0
  227. Frame_2.Size = UDim2.new(1, 0, 0.166666672, 0)
  228.  
  229. Frame_3.Parent = GripGraphic
  230. Frame_3.BorderSizePixel = 0
  231. Frame_3.Position = UDim2.new(0, 0, 0.333333343, 0)
  232. Frame_3.Size = UDim2.new(1, 0, 0.166666672, 0)
  233.  
  234. Frame_4.Parent = GripGraphic
  235. Frame_4.BorderSizePixel = 0
  236. Frame_4.Position = UDim2.new(0, 0, 0.666666687, 0)
  237. Frame_4.Size = UDim2.new(1, 0, 0.166666672, 0)
  238.  
  239. Open.Name = "Open"
  240. Open.Parent = OutputGui
  241. Open.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  242. Open.BorderColor3 = Color3.fromRGB(0, 0, 0)
  243. Open.BorderSizePixel = 0
  244. Open.Position = UDim2.new(0, 0, 0.5, -20)
  245. Open.Size = UDim2.new(0, 150, 0, 40)
  246. Open.ZIndex = 8
  247. Open.Font = Enum.Font.SourceSansBold
  248. Open.Text = "Output"
  249. Open.TextColor3 = Color3.fromRGB(0, 0, 0)
  250. Open.TextSize = 24.000
  251.  
  252. -- Scripts:
  253.  
  254. local function OSJAGFD_fake_script() -- Frame.Script
  255. local script = Instance.new('Script', Frame)
  256.  
  257. local colors = {
  258. [Enum.MessageType.MessageOutput] = BrickColor.new("Black").Color;
  259. [Enum.MessageType.MessageInfo] = BrickColor.new("Electric blue").Color;
  260. [Enum.MessageType.MessageWarning] = BrickColor.new("Bright orange").Color;
  261. [Enum.MessageType.MessageError] = BrickColor.new("Bright red").Color;
  262. }
  263. local canvasX = 0
  264.  
  265. game:getService("LogService").MessageOut:connect(function(output, messageType)
  266. local newLine = script.BlankLine:clone()
  267. newLine.TextColor3 = colors[messageType]
  268. newLine.Position = UDim2.new(0, 5, 0, (#script.Parent.Scroll:getChildren() * 20))
  269. newLine.Text = output
  270. newLine.Name = tick()
  271. newLine.Parent = script.Parent.Scroll
  272. newLine.Size = UDim2.new(0, (#output * 10), 0, -20)
  273. canvasX = (canvasX > (#output * 10) and canvasX or (#output * 10)) --dont use newLine.TextBounds.X outside of a local script
  274. script.Parent.Scroll.CanvasSize = UDim2.new(0, (canvasX + 10), 0, ((#script.Parent.Scroll:getChildren() + 1) * 15))
  275. end)
  276.  
  277. script.Parent.Parent.Open.MouseButton1Click:connect(function()
  278. script.Parent.Parent.Open.Visible = false
  279. script.Parent.Visible = true
  280. end)
  281.  
  282. script.Parent.Close.MouseButton1Click:connect(function()
  283. script.Parent.Visible = false
  284. script.Parent.Parent.Open.Visible = true
  285. end)
  286. end
  287. coroutine.wrap(OSJAGFD_fake_script)()
  288. local function OQBSO_fake_script() -- Frame.LocalScript
  289. local script = Instance.new('LocalScript', Frame)
  290.  
  291. local aa = script.Parent
  292.  
  293. aa.Active = true
  294. aa.Selectable = true
  295. aa.Draggable = true
  296. end
  297. coroutine.wrap(OQBSO_fake_script)()
  298.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement