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

001sphere.Rotation = Vector3.new(3, 0, 0)
002wait(.01)
003a = a+3
004    sphere.Rotation = Vector3.new(6, 0, 0)
005wait(.01)
006a = a+3
007    sphere.Rotation = Vector3.new(9, 0, 0)
008wait(.01)
009a = a+3
010    sphere.Rotation = Vector3.new(12, 0, 0)
011wait(.01)
012a = a+3
013    sphere.Rotation = Vector3.new(15, 0, 0)
014wait(.01)
015a = a+3
View all 139 lines...

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
1script.parent.BrickColor = BrickColor.new('Green')

:D

Answer this question