Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local editor = script.Parent
- local rainbowColors = {
- Color3.fromRGB(255, 0, 0),
- Color3.fromRGB(255, 165, 0),
- Color3.fromRGB(255, 255, 0),
- Color3.fromRGB(0, 128, 0),
- Color3.fromRGB(0, 0, 255),
- Color3.fromRGB(75, 0, 130),
- Color3.fromRGB(238, 130, 238)
- }
- local function setRainbowColors()
- local i = 1
- for _, child in ipairs(editor:GetChildren()) do
- if child:IsA("TextLabel") and child.Font ~= Enum.Font.SourceSansBold then
- child.TextColor3 = rainbowColors[i]
- i = i + 1
- if i > #rainbowColors then
- i = 1
- end
- end
- end
- end
- setRainbowColors()
- editor.ChildAdded:Connect(setRainbowColors)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement