I'm wondering how to make a players accessories invisible on click.
I'm helping a friend code a tank into Roblox but I ran into a slight inconvenience.
I know how to make a players Torso, Left Arm, Left Leg, Right Arm, Right Leg and Head invisible but I'm not quite sure not to make a players accessories invisible.
This is what I have so far:
Tank.MeshPart1.ClickDetector.MouseClick:Connect(function(Click)
local Character = game.Players.LocalPlayer.Character
if InTank == false then
game.Players.LocalPlayer.Character.Torso.Transparency = 1
game.Players.LocalPlayer.Character["Left Arm"].Transparency = 1
game.Players.LocalPlayer.Character["Left Leg"].Transparency = 1
game.Players.LocalPlayer.Character["Right Arm"].Transparency = 1
game.Players.LocalPlayer.Character["Right Leg"].Transparency = 1
game.Players.LocalPlayer.Character.Head.Transparency = 1
game.Players.LocalPlayer.Character.HumanoidRootPart.Transparency = 1
InTank = true
end
end)
It works but I still need to get rid of the players accessories.
I looked everywhere to find an answer but I just couldn't find one.
If anyone knows how to do this, please help.
