Im trying to change the RGB values of a part multiple times to give a color changing effect, but this script isnt working.
while true do game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 17, 255)) wait (5) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 15, 226)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 12, 182)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 9, 135)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 5, 82)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 3, 46)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 0, 0)) wait (5) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 3, 46)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 5, 82) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 9, 135)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 12, 182)) wait (0.1) game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(0, 15, 226)) end
Since you are using a loop, you will need to put an 'end' at the bottom of the script so the loop knows to end there.
If there are multiple instances in your place named Part, the script can't tell which part it is.
If this is your problem, I would suggest naming all of your Parts