So i want to generate a random color from value 0 to 255
But… I get this error each time i try something different:
It’s really annoying.
Script:
while task.wait() do
local random = math.random(0,1)
local color = Color3.new(random, random, random)
local randomcolor = ColorSequence.new(color)
script.Parent.Color = color
for _,v in pairs(script.Parent.Attachment:GetChildren()) do
if v:IsA("ParticleEmitter") then
v.Color = color
task.wait()
end
end
end