How come this works...
print("The color is now", a.BrickColor)
and this does not?
print("The color is now " .. a.BrickColor)
Just want to clear up my curiosity.
The ..
operator is the string concatenation
operator, meaning that it takes one string and joins it to another end to end. You are trying to concatenate a string to a BrickColor datatype, which has no direct conversion to string.
To concatenate the string and BrickColor properly, use the tostring
function to convert the BrickColor to a string:
print("The color is now " .. tostring(a.BrickColor))