Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Does Humanoid:EquipTool() work with Custom Characters?

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?

2 comments

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.

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.

1 answer

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?

This discussion is preserved as it was. New answers, comments, and votes are closed.