How to unequip tool on a gamepad?

Hello
Is there a shortcut to unequip a tool on a gamepad/console or the only way is to switch tools left/right until the end of the hot bar is reached?

Thanks

1 Like

You can program the behavior yourself using the method Humanoid.UnequipTools.

--LocalScript
local ContextActionService = game:GetService("ContextActionService")
local Players = game:GetService("Players")

ContextActionService:BindAction(
	"UnequipAllTools",
	function(action: string, state: Enum.UserInputState, io: InputObject)
		if not (action == "UnequipAllTools" and state == Enum.UserInputState.End) then
			return
		end
		local char = Players.LocalPlayer.Character
		local humanoid = if char then char:FindFirstChildOfClass("Humanoid") else nil
		if humanoid then
			humanoid:UnequipTools()
		end
	end,
	false,
	Enum.KeyCode.ButtonB, Enum.KeyCode.X --You can change, add, or remove Enum.KeyCode or Enum.UserInputType to make this work across multiple input devices
)