Advertisement
ERROR_CODE

Console

Jan 21st, 2024 (edited)
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.63 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("UIGui") then
  2. game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
  3. end
  4. local UIGui = Instance.new("ScreenGui")
  5. local BackgroundImage = Instance.new("ImageLabel")
  6. local ConsoleOutput = Instance.new("TextLabel")
  7. local BackgroundImageUICorner = Instance.new("UICorner")
  8. local ConsoleOutputUICorner = Instance.new("UICorner")
  9. local BackgroundConsoleUICorner = Instance.new("UICorner")
  10. local BackgroundConsole = Instance.new("Frame")
  11. local logTable = {}
  12.  
  13. UIGui.Name = "UIGui"
  14. UIGui.Parent = game.CoreGui
  15. game.CoreGui.UIGui.Enabled = true
  16.  
  17. BackgroundConsole.Name = "BackgroundConsole"
  18. BackgroundConsole.Parent = UIGui
  19. BackgroundConsole.AnchorPoint = Vector2.new(0.5, 0.5)
  20. BackgroundConsole.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  21. BackgroundConsole.Position = UDim2.new(0.55, 0, 0.5, 0)
  22. BackgroundConsole.Size = UDim2.new(0, 860, 0, 405)
  23.  
  24. BackgroundConsoleUICorner.CornerRadius = UDim.new(0, 15)
  25. BackgroundConsoleUICorner.Parent = BackgroundConsole
  26.  
  27. BackgroundImage.Name = "BackgroundImage"
  28. BackgroundImage.Parent = BackgroundConsole
  29. BackgroundImage.AnchorPoint = Vector2.new(0.5, 0.5)
  30. BackgroundImage.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  31. BackgroundImage.Position = UDim2.new(0.5, 0, 0.5, 0)
  32. BackgroundImage.Size = UDim2.new(0, 855, 0, 400)
  33. BackgroundImage.Image = "rbxassetid://16068028120"
  34.  
  35. BackgroundImageUICorner.CornerRadius = UDim.new(0, 12)
  36. BackgroundImageUICorner.Parent = BackgroundImage
  37.  
  38. ConsoleOutput.Name = "ConsoleOutput"
  39. ConsoleOutput.Parent = BackgroundImage
  40. ConsoleOutput.AnchorPoint = Vector2.new(0.5, 0.5)
  41. ConsoleOutput.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  42. ConsoleOutput.BackgroundTransparency = 1
  43. ConsoleOutput.Position = UDim2.new(0.5, 0, 0.5, 0)
  44. ConsoleOutput.Size = UDim2.new(0, 855, 0, 400)
  45. ConsoleOutput.Text = "Notifications, warnings and script errors will be displayed here to simplify working with them."
  46. ConsoleOutput.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. ConsoleOutput.TextScaled = false
  48. ConsoleOutput.Font = Enum.Font.Code
  49. ConsoleOutput.TextSize = 14
  50. ConsoleOutput.TextWrapped = true
  51. ConsoleOutput.TextXAlignment = Enum.TextXAlignment.Left
  52. ConsoleOutput.TextYAlignment = Enum.TextYAlignment.Top
  53.  
  54. ConsoleOutputUICorner.CornerRadius = UDim.new(0, 12)
  55. ConsoleOutputUICorner.Parent = ConsoleOutput
  56.  
  57.  
  58.  
  59. game:GetService("LogService").MessageOut:Connect(
  60. function(Message)
  61.     repeat
  62.         wait()
  63.     until Message
  64.     logTable[#logTable + 1] = Message
  65.     ConsoleOutput.Text = (table.concat(logTable, "\n"))
  66.     for i, v in pairs(logTable) do
  67.         if i == 30 then
  68.             table.remove(logTable, 1)
  69.         end
  70.     end
  71. end
  72. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement