How do I anchor a rig in a script

Im trying to clone a rig and anchor it

Set the HumanoidRootPart’s Anchored value to true.

local rig = PUT_RIG_HERE --For example: game.Workspace.Rig
local root = rig:WaitForChild("HumanoidRootPart")

root.Anchored = true
1 Like

You can also change it to this too

local rig = PUT_RIG_HERE --For example: game.Workspace.Rig
local root = rig.PrimaryPart

root.Anchored = true
2 Likes

this dont work

local dummy100 = Health100:Clone()
dummy100.HumanoidRootPart.Anchored = false

local rig = workspace.dummy100
local root = rig.PrimaryPart

root.Anchored = true

it doesn’t work for some reason.

Maybe anchoring the base parts?

local rig = workspace.dummy100
for i, BasePart in pairs(rig:GetChildren) do
    if BasePart:IsA("BasePart") then
        print("BasePart found now anchoring them")
        task.wait()
        BasePart.Anchored = true
    end
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.