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

Random color changing brick??

Asked by 10 years ago

Hi guys, I'm trying to make a Brick that randomly changes color once regenerated... Will this work??

brick = game.Lighting.Tycoon1.Brick1

brick:Clone()
brick.BrickColor  = BrickColor.new(math.random())
brick.Parent = game.Workspace

1 answer

Log in to vote
0
Answered by 10 years ago

Yeah. This will work if you defined everything properly :)

Ad

Answer this question