This script is suppose to make it so that when you equip a gun you can see your arms in first person but the problem is once I unequip it again my arms are invisable when I got in 3rd person.

--(I had to use a variable to set it because of a bug)
Gun = script.Parent
x = 0
Gun.Equipped:connect(function()
	x = 0
game:GetService("RunService").RenderStepped:connect(function()

    for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do

    if v.Name == "Left Arm" or v.Name == "Right Arm" then
        v.LocalTransparencyModifier = x
    end

end

end)
end)

Gun.Unequipped:connect(function()
	x = 1
end)