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

Color3 was working for BrickColor, now it doesn't?

This was working a year ago, when I come back to making this simple color changer, it just doesn't work..

while true do
	local X = math.random(0,1)
	local Y = math.random(0,1)
	local Z = math.random(0,1)
	script.Parent.BrickColor = Color3.new(X,Y,Z)
	wait(1)
end

How do I fix this.. don't want any :Random(), :Red(), etc. Did roblox mess something up again?

3 answers

✓ Accepted answer

You need to use BrickColor.new(r,g,b) instead of Color3.new(r,g,b)

BrickColor

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

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