Any way to do this?

so if you want to change a beams color, apparently you need to use color sequence.

It seems a little too extreme/long (i need to do this 8 different times for different colors) for just 1 simple color change (not changing colors repeatably)

what i mean:

i have a beam thats white. Lets say i wanted to make it turn red once when i touch a brick. How would i do this?

applyColor = function(obj,myColor)
    obj.Color = ColorSequence.new{
       ColorSequenceKeypoint.new(0, myColor),
       ColorSequenceKeypoint.new(1, myColor)
}
end
part.Touched:Connect(function(h)
   applyColor(part,Color3.fromRGB(255,0,0))
end

Changing things related with Color can be hard, check this ColorSequence