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.
First of all you have a error on line 1 were it says
Player =game
it should be
Player = game
Moreover i guessing Torso1 is what you want to color, make sure in your workspace everything is named correct, remember small errors, makes a big crash in your game. Also please provide more information tell us what it is doing or not doing.