Ok I made a brick color changer for when a part touch it , it changes the part color but instead of changing the parts colors its changing the color of the brick color changer itself and leaving the parts with no color change
function onTouched(part) wait(0.2) script.Parent.BrickColor = BrickColor.new("Bright blue") wait(0.2) script.Parent.BrickColor = BrickColor.new("Bright violet") wait(0.2) script.Parent.BrickColor = BrickColor.new("Bright orange") wait(0.2) script.Parent.BrickColor = BrickColor.new("Pastel blue-green") wait(0.2) script.Parent.BrickColor = BrickColor.new("Sand blue") wait(0.2) script.Parent.BrickColor = BrickColor.new("Br. yellowish orange") wait(0.2) script.Parent.BrickColor = BrickColor.new("Grime") wait(0.2) script.Parent.BrickColor = BrickColor.new("Pastel blue") wait(0.2) end script.Parent.Touched:connect(onTouched)
From what is looks like, you should make it
part.BrickColor = BrickColor.new("Pastel blue")
Instead of
script.Parent.BrickColor = BrickColor.new("Pastel blue")
The reason being that script.Parent is most likely the color changer, and part is the part you want to color.