So I'm working on an FPS game and I wanted the FIRST weapon in backpack equipped as soon as the player hits the "Play" button in the main GUI,unfortunately I do not know how.
Here's my attempt anyways : (LocalScript Inside the "Play" button)
player = game.Players.LocalPlayer
function onClick()
player.Character.Humanoid:EquipTool(player.Backpack.ToolName) --Asking for specific tool
end
script.Parent.MouseButton1Down:connect(onClick)
As you see in line "3" I'm asking for a specific tool name, But I want the first Tool in the Backpack to be equipped any solutions/ideas?
Help will be appreciated! :D

3 comments
Not what I wanted, the tool is already cloned when "PLAY" is hit,I just wanted the player to take it out/equip it.
that should be available if its a tool
Dude look up "EquipTool" in the wiki ·_·