Answered by
6 years ago Edited 6 years ago
To change the color of a BasePart, you need to set its BrickColor
using the BrickColor.new() constructor or its Color
using the Color3.new() constructor.
To make the color loop, all you need to do is to make a while true do
loop, which will repeat indefinitely.
You also can put tile into a variable so you don't need to repeat yourself too many times.
01 | local tile = workspace.tile |
04 | tile.BrickColor = BrickColor.new( 255 , 0 , 0 ) |
06 | tile.BrickColor = BrickColor.new( 0 , 255 , 0 ) |
08 | tile.BrickColor = BrickColor.new( 0 , 0 , 255 ) |