im tryna make first person arms but they just keep falling into oblivion when cloned and are deleted if Unanchored, and if they are Anchored then they stay in 1 spot and dont follow my char

local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local mouse = player:GetMouse()

local ToClone = {"LeftUpperArm", "LeftLowerArm", "LeftHand", "RightUpperArm", "RightLowerArm", "RightHand"}

local function WeldArms(char, Arms)
    for i,v in pairs(ToClone) do
        if char:FindFirstChild(v) then
            local part = char[v]
            local clone = part:Clone()
            clone:ClearAllChildren()
            clone.CFrame = part.CFrame
            local weld = Instance.new("Weld", game.JointsService)
            weld.Part0 = part
            weld.Part1 = clone
            clone.Parent = Arms
            clone.Anchored = true
        end
    end
end

player.CharacterAdded:connect(function(char)
    local Arms = Instance.new("Model", workspace)
    Arms.Name = "Arms"
    WeldArms(char, Arms)
    char.Humanoid.Died:connect(function()
        Arms:Destroy()
    end)
end)

1 comment

0

best to set the position of the arms every renderstep, and they need to be anchored, use camera position to offset the arms