Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("CoreGui"):FindFirstChild("UIGui") then
- game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
- end
- local UIGui = Instance.new("ScreenGui")
- local BackgroundImage = Instance.new("ImageLabel")
- local ConsoleOutput = Instance.new("TextLabel")
- local BackgroundImageUICorner = Instance.new("UICorner")
- local ConsoleOutputUICorner = Instance.new("UICorner")
- local BackgroundConsoleUICorner = Instance.new("UICorner")
- local BackgroundConsole = Instance.new("Frame")
- local logTable = {}
- UIGui.Name = "UIGui"
- UIGui.Parent = game.CoreGui
- game.CoreGui.UIGui.Enabled = true
- BackgroundConsole.Name = "BackgroundConsole"
- BackgroundConsole.Parent = UIGui
- BackgroundConsole.AnchorPoint = Vector2.new(0.5, 0.5)
- BackgroundConsole.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- BackgroundConsole.Position = UDim2.new(0.55, 0, 0.5, 0)
- BackgroundConsole.Size = UDim2.new(0, 860, 0, 405)
- BackgroundConsoleUICorner.CornerRadius = UDim.new(0, 15)
- BackgroundConsoleUICorner.Parent = BackgroundConsole
- BackgroundImage.Name = "BackgroundImage"
- BackgroundImage.Parent = BackgroundConsole
- BackgroundImage.AnchorPoint = Vector2.new(0.5, 0.5)
- BackgroundImage.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- BackgroundImage.Position = UDim2.new(0.5, 0, 0.5, 0)
- BackgroundImage.Size = UDim2.new(0, 855, 0, 400)
- BackgroundImage.Image = "rbxassetid://16068028120"
- BackgroundImageUICorner.CornerRadius = UDim.new(0, 12)
- BackgroundImageUICorner.Parent = BackgroundImage
- ConsoleOutput.Name = "ConsoleOutput"
- ConsoleOutput.Parent = BackgroundImage
- ConsoleOutput.AnchorPoint = Vector2.new(0.5, 0.5)
- ConsoleOutput.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ConsoleOutput.BackgroundTransparency = 1
- ConsoleOutput.Position = UDim2.new(0.5, 0, 0.5, 0)
- ConsoleOutput.Size = UDim2.new(0, 855, 0, 400)
- ConsoleOutput.Text = "Notifications, warnings and script errors will be displayed here to simplify working with them."
- ConsoleOutput.TextColor3 = Color3.fromRGB(255, 255, 255)
- ConsoleOutput.TextScaled = false
- ConsoleOutput.Font = Enum.Font.Code
- ConsoleOutput.TextSize = 14
- ConsoleOutput.TextWrapped = true
- ConsoleOutput.TextXAlignment = Enum.TextXAlignment.Left
- ConsoleOutput.TextYAlignment = Enum.TextYAlignment.Top
- ConsoleOutputUICorner.CornerRadius = UDim.new(0, 12)
- ConsoleOutputUICorner.Parent = ConsoleOutput
- game:GetService("LogService").MessageOut:Connect(
- function(Message)
- repeat
- wait()
- until Message
- logTable[#logTable + 1] = Message
- ConsoleOutput.Text = (table.concat(logTable, "\n"))
- for i, v in pairs(logTable) do
- if i == 30 then
- table.remove(logTable, 1)
- end
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement