Hello. So I’m working on my game and I have small problem. Can I equip this 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.
RFL890
(Fake_GeorgeCath)
March 23, 2021, 9:34pm
2
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?
RFL890
(Fake_GeorgeCath)
March 23, 2021, 9:36pm
4
I’m not really sure. Try looking on the API Reference (Search up ‘roblox api reference’) for :EquipTool().
1 Like
RFL890
(Fake_GeorgeCath)
March 23, 2021, 9:37pm
5
nope, it only functions with Tools
1 Like
RFL890:
HopperBin
I just saw I can maybe use Select,I’m not too sure. Well thanks for the help.
RFL890
(Fake_GeorgeCath)
March 23, 2021, 9:39pm
7
No, it functions like a Tool.Equipped on a tool
Wyzloc
(Wyzloc)
March 23, 2021, 9:40pm
9
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.
RFL890
(Fake_GeorgeCath)
March 23, 2021, 9:41pm
10
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.
Wyzloc
(Wyzloc)
March 23, 2021, 9:49pm
13
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.
Wyzloc
(Wyzloc)
March 23, 2021, 9:53pm
15
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.