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)
5 comments
Please provide more information, like error codes and/or the script you wrote
There are no errors. The script itself just has an Unequipped() function where the Motor6D disconnects the skinned mesh from the torso.
Can we see that?
Sure, here's the place link: https://www.roblox.com/games/5912579816/Belt-2-0-Testing-grounds
I closed it for a bit, but here's the thing; there is an object which uses skinned meshes and a R6 rig. The object is inside of the tool. When the tool is equipped, the skinned object (part that has bones, etc.) is connected to the Torso of the R6 using Motor6D. When unequipped, the Motor6D unassigns both Part0 and Part1. It's all fine other than unequipping where the player goes invisible.