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

How do I use BrickColor?

Asked by 10 years ago

Hey guys! I had forgotten how to make a new part change color with script. This is what I got:

function RegenPart()
    newPart = Instance.new("Part", workspace)
    newPart. -- I need to know how to use it here.
    newPart.FormFacor = "Custom"
    newPart.Size = Vector3.new(2, 0.4, 1)
    newPart.Position = Vector3.new(39, 4.19, -8.5)
    newPart.Anchored = false

end

RegenPart()
0
What color did you want to change it to? Chili1924 150 — 10y
0
Dark green. SchonATL 15 — 10y

1 answer

Log in to vote
2
Answered by
Chili1924 150
10 years ago
newPart.BrickColor = BrickColor.new("Dark green")

If needed for future reference, here is a Roblox Wiki article on BrickColor: http://wiki.roblox.com/index.php?title=BrickColor

0
Thank you for refreshing my memory! I tried using a string. Silly me! SchonATL 15 — 10y
0
No problem! Chili1924 150 — 10y
Ad

Answer this question