This was working a year ago, when I come back to making this simple color changer, it just doesn't work..
1 | while true do |
2 | local X = math.random( 0 , 1 ) |
3 | local Y = math.random( 0 , 1 ) |
4 | local Z = math.random( 0 , 1 ) |
5 | script.Parent.BrickColor = Color 3. new(X,Y,Z) |
6 | wait( 1 ) |
7 | end |
How do I fix this.. don't want any :Random(), :Red(), etc. Did roblox mess something up again?
You need to use BrickColor.new(r,g,b) instead of Color3.new(r,g,b)
Actually, I don't think it ever did. You can't set a brick to a Color3, because the property is literally encoded across the network as a BrickColor. Your best bet is literally to use BrickColor.Random()
or to pass the Color3
into BrickColor3.new
to cast it to a BrickColor