Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Message text won't put BrickColor?

Asked by 8 years ago

The line of code that says "msg.Text = ("The part color isn't bright blue it is" .. part.BrickColor)" won't work, the output says "attempt to concatenate field 'BrickColor' (a userdata value)" what does that mean help!?

~~~~~~~~~~~~~~~~~ local part = workspace.Part part.Touched:connect(function(touch) local msg = Instance.new("Message", workspace) part.BrickColor = BrickColor.Random() if part.BrickColor == BrickColor.new("Bright blue") then msg.Text = ("The part color is now bright blue") else msg.Text = ("The part color isn't bright blue it is" .. part.BrickColor) end end)~~~~~~~~~~~~~~~~~

Answer this question