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)