Universal Script 📌
33.5k Views
1.2k Executions

Random color change

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

Mu

Updates

  1. Script edited: Create script

View Raw
local part = script.Parent  -- The part that triggers the effect

local function onTouch(hit)
    local character = hit.Parent
    local humanoid = character:FindFirstChildOfClass("Humanoid")

    if humanoid then
        for _, v in pairs(character:GetChildren()) do
            if v:IsA("BasePart") then
                v.Color = Color3.new(math.random(), math.random(), math.random()) -- Random RGB color
            end
        end
    end
end

part.Touched:Connect(onTouch)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!