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

Brick does not want to change color. How can I fix this?

Asked by 6 years ago

I am trying to make the brick change color, but it does not work. It goes transparent, then it just stops. Please help. Thanks!

sphere = script.Parent a = 0 repeat

sphere.Rotation = Vector3.new(3, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(6, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(9, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(12, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(15, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(18, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(21, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(24, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(27, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(30, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(33, 0, 0)
wait(.01)
a = a+3

    sphere.Rotation = Vector3.new(30, 0, 0)
wait(.01)
a = a+3

    sphere.Rotation = Vector3.new(27, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(24, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(21, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(18, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(15, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(12, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(9, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(6, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(3, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(0, 0, 0)
wait(.01)
a = a+3

sphere.Rotation = Vector3.new(-3, 0, 0)
wait(.01)
a = a+3

    sphere.Rotation = Vector3.new(-6, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-9, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-12, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-15, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-18, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-21, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-24, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-27, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-30, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-33, 0, 0)
wait(.01)
a = a+3


    sphere.Rotation = Vector3.new(-30, 0, 0)
wait(.01)
a = a+3

    sphere.Rotation = Vector3.new(-27, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-24, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-21, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-18, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-15, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-12, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-9, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-6, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-3, 0, 0)
wait(.01)
a = a+3
    sphere.Rotation = Vector3.new(-0, 0, 0)
wait(.01)
a = a+3

script.Parent.Transparency = 1

script.Parent.BrickColor=BrickColor "Green"

script.Parent.Transparency = 0

until pigs == 1

2 answers

Log in to vote
-1
Answered by 6 years ago

It should be script.Parent.BrickColor = BrickColor.new("Green")

0
It is now only changing to white on the colors. Wont go to the color I put in. AlphaWolfBoii 0 — 6y
0
Nevermind. Fixed it. AlphaWolfBoii 0 — 6y
Ad
Log in to vote
-1
Answered by 6 years ago
script.parent.BrickColor = BrickColor.new('Green')

:D

Answer this question