I have this customization GUI created and I scripted it kinda like this
StarterGUI>MainMenu>CustomizationFrame>Frame>TextButton(PastelBlueSkinColor)> Value(Pastel Blue)
and tried 2 different scripts
Player = game.Players.LocalPlayer
Character = Player.Character
x = script.Parent.Value.Value
script.Parent.MouseButton1Click:Connect(function ()
Character.Head.BrickColor = x
Character("HeadColor3").BrickColor = x
Character("RightArmColor").BrickColor = x
Character("RightArmColor3").BrickColor = x
Character("RightLegColor").BrickColor = x
Character("RightLegColor3").BrickColor = x
Character("TorsoColor").BrickColor = x
Character("TorsoColor3").BrickColor = x
Character("LeftArmColor").BrickColor = x
Character("LeftArmColor3").BrickColor = x
Character("LeftLegColor").BrickColor = x
Character("LeftLegColor3").BrickColor = x
end)
and i also tried
Player = game.Players.LocalPlayer
Character = Player.Character
x = script.Parent.Value.Value
script.Parent.MouseButton1Click:Connect(function ()
Character.Head.BrickColor = x
Character("RightUpperArm").BrickColor = x
Character("RightLowerArm").BrickColor = x
Character("RightHand").BrickColor = x
Character("RightUpperLeg").BrickColor = x
Character("RightLowerLeg").BrickColor = x
Character("RightFoot").BrickColor = x
Character("LowerTorso").BrickColor = x
Character("UpperTorso").BrickColor = x
Character("LeftUpperArm").BrickColor = x
Character("LeftLowerArm").BrickColor = x
Character("LeftHand").BrickColor = x
Character("LeftUpperLeg").BrickColor = x
Character("LeftLowerLeg").BrickColor = x
Character("LeftFoot").BrickColor = x
end)
But neither work and ive been stuck on this for a day or 2 so idk help pls

1 comment
To index, you use [], or the . notation. not (). () is for function calls.