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

Brick Color wont be outputted onto log, any help?

Asked by 2 years ago

Whats wrong with this code, it wont output anything onto the log?

brickcol = game.Workspace.Brick.BrickColor

print("the brick color is " .. brickcol)

1 answer

Log in to vote
0
Answered by 2 years ago

While running your script, I got a console error.

-- Workspace.Script:3: attempt to concatenate string with BrickColor

We can fix this by turning it into a string:

brickcol = game.Workspace.Brick.BrickColor

print("the brick color is " .. tostring(brickcol))
Ad

Answer this question