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)

2 comments
Add a Debounce so that your code doesn't fire multiples on execution.
where do i add the debounce?