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

BrickColor or BrickColor.new?

I'm using Instance.new("Part") to create a new part. I want the part to be the brick color of a log, I'm not sure if I need brickcolor.new or not.

part = Instance.new("Part")
part.BrickColor = parent.Parent.Log.BrickColor

1 comment

0

parent is defined as script.Parent higher up in my script.

1 answer

I'm pretty sure you would need to use BrickColor.new() So, it should end up looking like this:

part = Instance.new("Part")
part.BrickColor = BrickColor.new(parent.Parent.Log.BrickColor)

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