Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does Humanoid:EquipTool() work with Custom Characters?

Asked by 6 years ago

Im working on a custom player backpack, i'm trying to make it when the player clicks a UI button the corresponding tool is equipped. I turned to using character.Humanoid:EquipTool() but am running into a problem...it only works for the default roblox player, if im wanting to create my own character it does not work (yes I tried assigning the tools part to the character as well and got the same result)

for i,v in pairs(player.Backpack:GetChildren())do
    if v.Name == x.Item.Value then
        character.Humanoid:EquipTool(v)
        break
    end
end

I'm thinking that :EquipTool() does not work for custom characters or i'm missing something in my character that is required for it to work...and ideas?

1
Maybe the naming of the body parts? And try equipping on the server side, from my experience doing it client side causes funky behaviour. User#19524 175 — 6y
0
I went ahead and use a remote event to equip from the server, it works now. Would love to know why that was happening if you have any idea ... other than that, thanks for the help. ForeverBrown 356 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

This may be a bad idea, but it works. Try parenting the tool into the character If it has a humanoid and a right arm it might work

An alternative might be to load your custom character in, but not remove the torso and right arm, just make them invisible, then weld your custom character to act like the right arm and that works?

Ad

Answer this question