So let's say I wanted to create a whole new slot with new items just by pressing e How do I access that slot or all the slots? How do I change the tool on the player slot?
Use a for loop.
e.g
player = yourplayervariablehere for index,item in pairs(game.Players[player.Name].Backpack:GetChildren()) do if index == 2 then item:Destroy() end
The index number is how many times the loop has ran. The loop runs once 'for' each item in the table. so if index was 2, that would be our second tool.