Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Is this script wrong? How do I fix it?

Asked by 9 years ago
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?

0
This isn't close to correct, or close to good style BlueTaslem 18071 — 9y
0
Well can you tell me how to correct it? I thought it was close iBrownz 0 — 9y
0
Bricks only support brickcolor, not color3. M39a9am3R 3210 — 9y
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! Perci1 4988 — 9y

1 answer

Log in to vote
0
Answered by
yoshiegg6 176
9 years ago

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.

Ad

Answer this question