How to Equip an unknown tool?

Hello everyone!
I am a little confused about how to force-equip a specific tool that does not have a specified name. The name of the tool varies since the tool is chosen by the player. There is only one tool that needs to be equipped, but I don’t know how to specify a specific one.

Here’s my code:

for _, player in pairs(players:GetPlayers()) do
		local character = player.Character
		local humanoid = character.Humanoid
		humanoid:EquipTool('problem here')
		character.Torso.CFrame = workspace.Map.SpawnLocation.CFrame

is the tool already existing in backpack? where can we possibly get a hint to where it is?

Yes the tool exists inside the backpack

we can locate a singular tool:

gonna be difficult if there is a particular one out of a set of tools

local ChosenTool = player.Backpack:FindFirstChildOfClass(“Tool”)

But how do I get the specific tool? I know how to equip the tool, but the name isnt known

this chooses a tool from backpack, doesnt matter what name it is as long as it is a tool, chosentool will exist

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.