Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

random colored shirt script not working?

I am testing stuff with an npc, it has a shirt and pants. Now I tried doing a random shirt color script but didn't work since watching lua tutorial will be forgettable (including the wiki).

the title says it all.

script:

script.Parent.Shirt.Color3 = math.random(23,73,154, 170,0,0)

1 answer

✓ Accepted answer

You need to use Color3.new() not just math.random()

Example:

script.Parent.Shirt.Color3 = Color3.new(123, 123, 123) -- you can substitute your random values here

This discussion is preserved as it was. New answers, comments, and votes are closed.