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

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

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

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

2 comments

0

It is now only changing to white on the colors. Wont go to the color I put in.

0

Nevermind. Fixed it.

script.parent.BrickColor = BrickColor.new('Green')

:D

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