can someone also explain what i done wrong with my code, im trying to make a part that changes colour when i stand on it, also the part is called color_change can someone explain what i did wrong
while true do
Does it change every 3 seconds?
If not change part to color_change
Edit:
Make the script inside of color_change
and then instead of color_change, do script.parent.BrickColor = BrickColor.new(255,0,0)
[Red, u can change it]
while true do
wait (3)
game.Workspace.color_change.BrickColor = BrickColor.new(0.3,0.6,0.9)
wait (3)
game.Workspace.color_change.BrickColor = BrickColor.new(0.1,0.4,0.7)
end
You have the show the script which part it is actually meant to be changing, otherwise it wouldn’t know which part to change (If you put the part in a model or folder you’ll have to change this by doing something like game.Workspace.Model.color_Change.BrickColour or something like that)