How to make this go away? sorry if wrong category!

So i found a script that makes a rig of a dummy go away when players join the game. There is one issue though, the torso does not go away apparently because it isn’t a basepart?

---Server script
for index, instance in pairs(char:GetDescendants()) do 
	if instance:IsA("BasePart") then
		instance.Transparency = 1
	end
end

event.OnServerEvent:Connect(function(player)
	local id = players:GetUserIdFromNameAsync(player.Name)
	local appearance = players:GetHumanoidDescriptionFromUserId(id)
	humanoid:ApplyDescription(appearance)
	animationTrack:Play()
end)

(CLIENT SIDE PICTURE)


(SERVER SIDE PICTURE)
image

The ‘grey cube’ you’re seeing is a BasePart by the name HumanoidRootPart. The instance is set to a Transparency of 1 by standard. That means when you rejoin and it makes all the BaseParts visible, you also make the HumanoidRootPart visible.

I suggest adding a condition that will ignore the HumanoidRootPart and keep it invisible;

for index, instance in pairs(char:GetDescendants()) do 
	if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
		v.Transparency = 0
	end
end