So here I do not think it is an error but I feel like I am mssing something. Here is my code:
01 | local Part = Workspace.Part |
02 |
03 | while true do |
04 | Part.Color = Color 3. fromRGB ( 3 , 7 , 5 ) |
05 | wait( 1.5 ) |
06 | Part.Color = Color 3. fromRGB ( 7 , 18 , 4 ) |
07 | wait( 1.5 ) |
08 | Part.Color = Color 3. fromRGB ( 6 , 17 , 3 ) |
09 | wait( 1.5 ) |
10 | Part.Color = Color 3. fromRGB ( 4 , 2 , 6 ) |
11 | end |
12 |
13 |
14 | --Is There something wrong here? |
15 | --Coded in the Lua Interpreter. |
Is the while loop
not in the correct place?
Thanks for helping.
I think BrickColor is more simple in my opinion so:
01 | local Part = game.Workspace.Part |
02 |
03 | while true do |
04 | Part.BrickColor = BrickColor.new( "newcolor" ) |
05 | wait( 1.5 ) |
06 | Part.BrickColor = BrickColor.new( "newcolor" ) |
07 | wait( 1.5 ) |
08 | Part.BrickColor = BrickColor.new( "newcolor" ) |
09 | wait( 1.5 ) |
10 | Part.BrickColor = BrickColor.new( "newcolor" ) |
11 |
12 | end |