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

BrickColor or BrickColor.new?

Asked by 10 years ago

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
0
parent is defined as script.Parent higher up in my script. YellowoTide 1992 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

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

Answer this question