Hi, I'm making a game, and I have a StarterCharacter set, and I have a GUI to change the gender of the character. The button for female works fine, but the button for male doesn't work at removing assets from the female avatar.
Video example:
The Script in question (Not a LocalScript):
local plr = script.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
if plr.FemaleAvatar == true then
plr.Character:WaitForChild("Hair"):Destroy()
plr.Character.Head.face.Texture = "rbxasset://textures/face.png"
plr.FemaleAvatar = false
end
end)

5 comments
hey, mind giving the whole script?
that is the whole script
it's located inside of the select button for male
What is FemaleAvatar? Is it like a bool value?
yes, it is a boolvalue