I am still new to scripting, and I'm trying to configure a script for an ImageButton that contains a BrickColorValue, and in that ImageButton has a localscript with this following script- Is it the custom model that is the problem, or the script itself?
Player =game.Players.LocalPlayer
Character = Player.Character
x = script.Parent.Value.Value
script.Parent.MouseButton1Down:connect(function()
Character("Torso1")BrickColor = BrickColor.new(""..x.."")
end)
Along with this, it says 'Torso1 is not a valid member of Model'.
UPDATE- 6:37 PM EST 3/30/18
I fixed the 'Torso1 is not a valid member of Model' issue, but it still will not recolor it. I figured out what I am doing wrong, it refuses to color itself because of some glitch happening with the building plugin i used.

3 comments
That didn't work, I still have the same problem.
In R6 and R15 there is no such thing as "Torso1". In R6 it is just Torso and in R15 I would use Upper Torso. Line 5 should look like this for R6: Character:WaitForChild("Torso").Brickcolor = BrickColor.new(x) R15: Character:WaitForChild("Upper Torso").Brickcolor = BrickColor.new(x). To Find what a body part's name is, load in singleplayer and figure it out in workspace :)
@zyrun Will this work for a custom model, though? I am not using an r15 or r6 model, but my own, rigged and animated model. The upper torso is called Torso1, which is why it's in there... ;w;