I made a tool which your arms become visible in first person when you equip and disappear when you unequip the tool in a local script in the tool. However, after you die, it just does not work. I've tried a few things, but it never seemed to work. If someone could help I'd appreciate it a bunch !!
local self,player = script.Parent,game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local humanoid = char:WaitForChild("Humanoid") -- waits for the humanoid in the character
function antiTrans(part)
if part and part:IsA("BasePart") and( part.Name=="Right Arm") then -- checks if a part and is a arm
part.LocalTransparencyModifier = 0
end
end
function Trans(part)
if part and part:IsA("BasePart") and( part.Name=="Right Arm") then -- checks if a part and is a arm
part.LocalTransparencyModifier = 1
end
end
script.Parent.Equipped:Connect(function()
for _,v in pairs(char:GetChildren()) do
antiTrans(v) -- adds all parts
end
end)
script.Parent.Unequipped:Connect(function()
for _,v in pairs(char:GetChildren()) do
Trans(v) -- adds all parts
end
end)
fyi, the code came from the dev forum, i just edited the code a little bit to make it work until i came across the error

1 comment
If you need help understanding the question, let me know!