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

Why won't BrickColor on this?

Asked by 9 years ago

I made an arm script but as i was trying to add the color to the arms i noticed that this popped up in the output

18:11:27.353 - BrickColor is not a valid member of SpecialMesh

And here is where the problem is

local LArm = Instance.new("SpecialMesh")
LArm.MeshId = "rbxasset://fonts/torso.mesh"
LArm.Name = "Left Arm"
LArm.Scale = Vector3.new(.9, 1.9, .9)
LArm.BrickColor = BrickColor.new("Pastel brown")
LArm.CanCollide = false
LArm.Parent = model
local LArmWeld = Instance.new("Weld",LArm)
LArmWeld.Part0 = larm
LArmWeld.Part1 = LArm

The thing is that i have Re-written other first person arm scripts where i use the bevel mesh instead of the brick and then i change the BrickColor to Pastel Brown and it works. But for some reason it doesn't want to work with this one. Can someone please help me?

Oh and also This is a piece of code from a free model that i quickly fixed up to use a special mesh.

local mesh1 = Instance.new("SpecialMesh")
mesh1.MeshId = "rbxasset://fonts/torso.mesh"
mesh1.Scale = Vector3.new(.9,.9,.9)
mesh1.Parent = falsearm1
local armweld1 = Instance.new("Weld")
falsearm1.BrickColor = BrickColor.new("Nougat")
falsearm1.Parent = Tool
armweld1.Parent = falsearm1
armweld1.Part0 = falsearm1
armweld1.Part1 = arms[1]
falsearm2 = arms[2]:clone()

Using this script actually changes the color of the SpecialMesh. Is there a reason why this works and mine doesn't?

0
Because The Special Mesh Doesn't have a Brick Color Property. Vezious 310 — 9y
0
Brick Color isnt a member of a special mesh, meshes use textures koolkid8099 705 — 9y
0
The piece of code that i added just now works though. purplemetro3421 5 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

The issue is that you're trying to change the color of the mesh by accessing a non-existent property of SpecialMesh. A SpecialMesh by itself isn't a part. It needs to be parented to a part to act properly. All that a SpecialMesh does is make a part shaped differently.

Ad

Answer this question