I’m Lap_124, a roblox developer.
I need to find tool in player’s backpack but instead of finding the tool by its name, I want to find it by a number
I tried this:
local Player = game.Players.LocalPlayer
local Backpack = Player:WaitForChild("Backpack") or Player.Backpack:Wait()
local num = 1
local Items = Backpack:GetChildren()
local tool = Items[num]
The tool variable is equal to nil
I only showed important things
Please help me
Note: It’s my first subject and I’m French so sorry if I make grammatical mistakes ![]()