I’m making a script that hides and shows arms when a player equips and unequips an item(By the way This is suppose to be in first person mode!) Here is my script the problem is that it Hides and Shows my arms when i equip and unequip but it doesn’t work in first person?:
local player = game:GetService(“Players”).LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()for _,tool in pairs(player.Backpack:GetChildren()) do
if tool:IsA(“Tool”) then
tool.Equipped:Connect(function()
for _,part in pairs(character:GetChildren()) do
if string.match(part.Name,“Arm”) then
part.LocalTransparencyModifier = 0
print(“Show arms”)
end
end
end)
tool.Unequipped:Connect(function()
for _,part in pairs(character:GetChildren()) do
if string.match(part.Name,“Arm”) then
part.LocalTransparencyModifier = 1
print(“Hide Arms”)
end
end
end)
end
end
Any help is appreciated