R6 Client Rig not equipping tool

Why when this local script runs: nothing happens to the rig and it doesn’t hold the tool?
It works for players but not the R6 rig NPC.
The Humanoid Root Part is unanchored.

local Rig = workspace.Rig -- Rig was added to the workspace through another local script
local Tool = game.ReplicatedStorage.Tool:Clone()
-- Tool.Parent = Rig (I've tried with this line too)
Rig.Humanoid:EquipTool(Tool)

When you want to equip a tool to a rig instead of a player, use a Server Script instead of a Local Script

The whole rig has to be on the client as only each player can see their own rigs and not others

What is the function of these rigs exactly?

to mine things for you like npcs to help you mine faster
but you shouldn’t be able to see other people’s

Tools don’t weld when you try to add them to a rig in a local script. Here is some code I use to manually do it:

local RightGrip = Instance.new("Weld")
RightGrip.Name = "Right Grip"
RightGrip.Parent = Tool
RightGrip.Part1 = Tool.Handle
if Rig.Humanoid.RigType == Enum.HumanoidRigType.R15 then
	RightGrip.Part0  = Rig.RightHand
	RightGrip.C1 = Tool.Grip
	RightGrip.C0 = Rig.RightHand.RightGripAttachment.CFrame
else
	RightGrip.Part0 = Rig["Right Arm"]
	RightGrip.C1 = Tool.Grip * CFrame.Angles(math.rad(90),0,0)
	RightGrip.C0 = Rig ["Right Arm"].RightGripAttachment.CFrame
end

You should just make them invisible to others, because server scripts dont work if ran by the client, if that makes sense.

Ok I ended up using this and it was fine and probably easier than moving it to the server where it doesn’t belong. Thankyou!

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