So basically, I made an object with skinned meshes and attached it to the R6 player rig with Motor6D.
Everything works fine, but there’s an issue when the tool gets unequipped. It makes the character invisible until the tool is re-equipped.
How to resolve this? Thanks!
Easy, you just get the players property and body parts, make an equip and unequip function, then set the players body parts to "1" which makes it invisible and if you want the player to make a ghost effect set the transparency to "0.5" if you want the tool to be transparent I recommend using a mesh part to set the transparency to 1 and your basically done, I could make you code if you'd like?
Code:
local Player = game.Players.LocalPlayer local Character = Player.Character script.Parent.Equipped:Connect(function(Mouse) Character:FindFirstChild("Left Leg").Transparency = 1 Character:FindFirstChild("Right Leg").Transparency = 1 Character:FindFirstChild("Torso").Transparency = 1 Character:FindFirstChild("Left Arm").Transparency = 1 Character:FindFirstChild("Right Arm").Transparency = 1 Character:FindFirstChild("Head").Transparency = 1 Character:FindFirstChild("Head").face.Transparency = 1 end) script.Parent.Unequipped:Connect(function() Character:FindFirstChild("Left Leg").Transparency = 0 Character:FindFirstChild("Right Leg").Transparency = 0 Character:FindFirstChild("Torso").Transparency = 0 Character:FindFirstChild("Left Arm").Transparency = 0 Character:FindFirstChild("Right Arm").Transparency = 0 Character:FindFirstChild("Head").Transparency = 0 Character:FindFirstChild("Head").face.Transparency = 0 end)