Universal Script 📌
1.4k Views
11 Executions

rainbow chat

Universal Script 📌
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

changes the legacy chat to rainbow idk

View Raw
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local ChatFrame = LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Chat"):WaitForChild("Frame")
local MessageLog = ChatFrame:WaitForChild("ChatChannelParentFrame"):WaitForChild("Frame_MessageLogDisplay").Scroller

local function interpolateColor(t)
    local r = math.sin(t * math.pi * 2) * 0.5 + 0.5
    local g = math.sin((t + 0.33) * math.pi * 2) * 0.5 + 0.5
    local b = math.sin((t + 0.66) * math.pi * 2) * 0.5 + 0.5
    return Color3.fromRGB(r * 255, g * 255, b * 255)
end

local function updateRainbow()
    local time = 0
    while true do
        for _, child in pairs(MessageLog:GetChildren()) do
            if child:IsA("Frame") then
                local textLabel = child:FindFirstChildOfClass("TextLabel")
                if textLabel then
                    local color = interpolateColor(time)
                    textLabel.TextColor3 = color
                end
            end
        end
        time = time + 0.01
        if time > 1 then
            time = 0
        end
        wait(0.1)
    end
end

task.spawn(updateRainbow)

MessageLog.ChildAdded:Connect(function(child)
    task.wait(0.1)
    if child:IsA("Frame") then
        local textLabel = child:FindFirstChildOfClass("TextLabel")
        if textLabel then
            local color = interpolateColor(0)


Comments

2
Log in to join the conversation. Login
waxedbojaina's profile picture
waxedbojainaUploader2 years ago

@ShrekTheKiller nope sorry

1
ShrekTheKiller's profile picture
ShrekTheKiller2 years ago

Fe?

1

More universal scripts

See all
Universal Script 📌
70.7k
7.6k
Bumped 35 minutes ago
Key System
Script hub
5.6M
1.2M
Bumped 1 hour ago
Key System
Script hub
199.0k
2.2M
Bumped 4 hours ago
Key System

Script hub

#23 this week

Verified script badgeAirflow HUB

Script hub
22.4k
4.5k
Bumped 6 hours ago
Key System
Paid
High Quality Offering
Script hub
3.6M
884.3k
Bumped 8 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeFlow Hub | 73 Games | Updated

Script hub
13.5k
25.6k
Bumped 9 hours ago
Script hub
227
572
Approved 9 hours ago
Script hub
2.0M
2.4M
Bumped 9 hours ago
Key System