Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Brick Color wont be outputted onto log, any help?

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

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))

This discussion is preserved as it was. New answers, comments, and votes are closed.