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?
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.