I'm making a custom character GUI in which the player is able to customize and color their cat character, yet, I cannot get the first box to open when I click the button to customize that option. Please, tell me what I am doing wrong! D: The script I am using is this-
Player = game.players.LocalPlayer C = Player.Character x = 2 script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.Parent.UpTorsoCol.Visible= not script.Parent.Parent.Parent.UpTorsoCol.Visible end) script.Parent.MouseEnter:connect(function() for 1 = 1,10 do x = x + 0.2 script.Parent.BorderSizePixel = x wait (0.025) end end) script.Parent.MouseEnter:connect(function() for 1 = 1,10 do x = x - 0.2 script.Parent.BorderSizePixel = x wait (0.025) end end)
On line 5, I think there's just something off about it
script.Parent.Parent.Parent.UpTorsoCol.Visible= not script.Parent.Parent.Parent.UpTorsoCol.Visible
If you want to switch it to Visible or Invisible, it should be like this shouldn't it?
script.Parent.Parent.Parent.UpTorsoCol.Visible= false -- To make it invisible script.Parent.Parent.Parent.UpTorsoCol.Visible= true -- To make it visible
I found a better alternative, making various colors and then hooking them to various parts. Thank you for answering, if you did, though ;D