Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DevConsole = game:GetService("CoreGui"):WaitForChild("DevConsoleMaster")
- local Window = DevConsole.DevConsoleWindow
- local UI = Window.DevConsoleUI
- local MainView = UI:WaitForChild("MainView")
- local ClientLog = MainView:WaitForChild("ClientLog")
- local GetHighest = function(...)
- local HighestValue
- for _, Value in next, ... do
- if not HighestValue or Value > HighestValue then
- HighestValue = Value
- end
- end
- return HighestValue
- end
- local CPrint = function(...)
- local Args = {...}
- local TempColour = table.remove(Args)
- local Colour
- if typeof(TempColour) == "Color3" then
- Colour = TempColour
- else
- Colour = Color3.fromRGB(255,255,255)
- table.insert(Args, TempColour)
- end
- local CandidParts = {}
- for _, Element in next, ClientLog:GetChildren() do
- local Name = Element.Name
- if Name:match("%d+") then
- table.insert(CandidParts, tonumber(Element.Name))
- end
- end
- local Expecting = GetHighest(CandidParts)
- Expecting = Expecting and (Expecting + 1) or (2)
- print(unpack(Args))
- local ExpectedPart = ClientLog:WaitForChild(Expecting)
- local MessagePart = ExpectedPart:FindFirstChild("msg")
- if MessagePart then
- MessagePart.TextColor3 = Colour
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement