How do i make auto-equipping tools

I’m making a shoppingcart game and players need to have shoppingcarts but i want them to be auto-equipped. I mean by that that you don’t have to equip it because you would have it automatically, just like in the most FPS games.

1 Like

Typically in shooter games the gun isn’t a tool. Or that’s my take. And if it is then the core GUI was modified not to display the tool. As for it auto equipping, there is a thing you can change that is something like, tool.Equiped = true

It should equip the tool. I could be wrong though.

But players will probably be able to unequip it

Ever heard of Humanoid:EquipTool(Tool variable)?
It’s very good, it makes you equip tools. Yes, you heard right! :laughing:

2 Likes

Then you can have a script that instead of saying tool.Equiped = true it is tool.Equipped = false. BUT I think I did it wrong lol so I think it is tool:Equip or tool:UnEquip or something like that lol.

Just listen to @SwedishLegend because idk what I am even talking about lol.

I know that’s the best solution. :eyes:
@Jackman13799

1 Like

Can you please explain how to do it or where to script?

Give me your current script.

30 charss.

I don’t have one yet, i first want to solve the biggest problem so the progress wouldn’t be useless

Ahh, fine.

Insert a ScreenGui and put it in StarterGui, then add a TextButton to it.
Inside the TextButton add a localscript.
LocalScript:

script.Parent.MouseButton1Click:Connect(function(plr)
    tool = game.StarterPack.TOOL -- Change TOOL to the name of the tool
    plr.Character.Humanoid:EquipTool(tool)
end)

@PimoslangXYT

This makes a button when you click you will Equip a tool.

1 Like

Thanks a lot! I will try it, thanks again for the help!

2 Likes