Equiping tool through Script

Hello. So I’m working on my game and I have small problem. Can I equip this Yessir tool through script. Cause I tried to equip it and its not working.

PlayerCharacter:EquipTool(TankClone.Vehicle.Parts.VehicleSeat.Tank)

This is the script. This PlayerCharacter is humanoid.

That’s a HopperBin, a REALLLY old and deprecated tool system from like 2011, don’t think you can :EquipTool on that

So I can’t equip it through script?

I’m not really sure. Try looking on the API Reference (Search up ‘roblox api reference’) for :EquipTool().

1 Like

nope, it only functions with Tools

1 Like

I just saw I can maybe use Select,I’m not too sure. Well thanks for the help.

No, it functions like a Tool.Equipped on a tool

You can equip a tool through a script;

humanoid:EquipTool(tool)

Also if you want to use something similar to a hopperbin, disable the ‘RequiresHandle’ property on the tool and you’re good to go.

I think the OP is using the hopperbin as a driver for a legacy drive script

I tried humanoid:EquipTool(), its not working.

This tank tool is for Turret rotating.

When you said you tried it, do you refer to pasting it down and testing to see if it works? Because humanoid needs to be a variable from the players character.

So I defined player’s humanoid by player.Character:WaitForChild(“Humanoid”)
then i just did humanoid:EquipTool(TankClone.Vehicle.Parts.VehicleSeat.Tank). When I tested it nothing happend.

The tool has to be a member of the player’s backpack i’m pretty sure.

Oh,my tool is member of vehicle seat. I gotta try that. Thanks.

1 Like

I tested it out nop,only on tools works.