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

Is this script wrong? How do I fix it?

script.Parent.Parent.Part.Color3 = vect.Color3.new == Color3.new(.0, 38, .2 )
wait(.01)
script.Parent.Parent.Brick.Color3 = vect.CColor3.new == Color3.new == Color3.random
if
	Brick.Color3 == vect.Color3(0, 0, 0)
	then script.Parent.Parent.Part.Color3 = vect.Color3.new == Color3.random
	
	while true do
		if
			Brick.Color3.Value = (0,0,0) then true = Color3.new(.0, 38, 0.2)
		end
	end
end

Script is not working. I want a color changing brick and my script doesn't seem to work at all. Can someone help me find my mistakes?

4 comments

0

This isn't close to correct, or close to good style

0

Well can you tell me how to correct it? I thought it was close

0

Bricks only support brickcolor, not color3.

0

Review your basics. There are so many major problems here it would take 5 pages to correct them all. A good rule of thumb is, if you don't know EXACTLY how something works, don't use it!

1 answer

First instead of going to the workspace just put the script in the part and say "script.Parent". Second, you can't use color3 with bricks. You have to make numbers with different color names assigned to them like this "1 = "ReallyRed" 2 = "ReallyBlue" 3 = "Toothpaste" 4 = "ReallyBlack". Then you use math.random(1,4). Third, even if you were using color3 you don't need vect behind it.

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