---
title: "Random color change | Universal Roblox Script - ScriptBlox"
description: "Random color change for any Roblox game: Mu"
canonical_url: "https://scriptblox.com/script/Universal-Script-Random-color-change-28501"
meta:
  "og:description": "Random color change for any Roblox game: Mu"
  "og:image": "https://scriptblox.com/images/script/4723933-1738668421014.png"
  "og:title": "Random color change | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Random color change for any Roblox game: Mu"
  "twitter:image": "https://scriptblox.com/images/script/4723933-1738668421014.png"
  "twitter:title": "Random color change | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/4723933-1738668421014.png)

# **Random color change**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![ptio7402](https://scriptblox.com/images/user-default.webp) [ptio7402](https://scriptblox.com/u/ptio7402)**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=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. Mar 27, 2025

   ****Script edited:**** Create script

[View Raw](https://scriptblox.com/raw/Universal-Script-Random-color-change-28501)

```
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 **](https://scriptblox.com/login?redirect=/script/Universal-Script-Random-color-change-28501)

No comments yet. Be the first!

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Random-color-change-28501#script","url":"https://scriptblox.com/script/Universal-Script-Random-color-change-28501","name":"Random color change","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"ptio7402","url":"https://scriptblox.com/u/ptio7402"},"datePublished":"2025-02-04T11:27:01.109Z","image":"https://scriptblox.com/images/script/4723933-1738668421014.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Random-color-change-28501#webpage","@type":"WebPage","description":"Random color change for any Roblox game: Mu","name":"Random color change | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Random-color-change-28501","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Random-color-change-28501#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Random-color-change-28501#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Random-color-change-28501"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Random-color-change-28501#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Random color change","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
