I want to make it so that it will remove all the things in a players backpack. Not really sure how to do it though.
for i,v in pairs(game.Players:GetPlayers()) do
w = v.Backpack:GetChildren()
for i = 1,#w do
w[i]:remove()
end
end
It also looks like it only removes one of the items if that helps. Thanks

2 comments
First, remove is depreciated. Destroy is preferred. That could be your problem, because I can't see anything else wrong.
Depracated functions are not a problem. I just returned to Roblox after a lengthy absence, during which remove was deprecated, and I've been using it as I normally would with no issues.