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
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
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.
1 comment
parent is defined as script.Parent higher up in my script.