#how do u make a part have a colour at random everytime its cloned? ty

5 messages · Page 1 of 1 (latest)

primal cape
#

the issue is, is that it keeps using the same random colour.
script:
local wedge = workspace.wedgeyboi
local r = math.random(1,255)
local g = math.random(1,255)
local b = math.random(1,255)

for clone = 1, 10 do
local clone = wedge:Clone()
clone.Color = Color3.fromRGB(r,g,b)
clone.Parent = workspace
clone.Position = Vector3.new(math.random(-400,200), math.random(23, 110), math.random(-400,200))

wait(1)
end

fresh zodiac
#

put the local r,g,b in the for loop

primal cape
fresh zodiac
#

here the random colors are getting choosen only once at the start of the game but if you generate new random colors every time you create a new part, it is good

primal cape
#

OHH that makes a lot more sense now actually; tysm 4 everything :)