I’m trying to get a particle emitter to have a random color from the table,
however, the script encounters an issue:
Help will be appreciated
Script:
wait()
local colors = {
Color3.fromRGB(255, 87, 87);
Color3.fromRGB(255, 243, 102);
Color3.fromRGB(58, 226, 49);
Color3.fromRGB(106, 166, 255);
Color3.fromRGB(255, 107, 184);
Color3.fromRGB(255, 255, 255);
}
function TransformMachine()
local color = colors[math.random(1, #colors)]
wait()
workspace.PaintBucket.Nib.ParticleEmitter.Color = color
end
while true do
TransformMachine()
wait(3)
end