--- license: apache-2.0 language: - en multilinguality: - monolingual tags: - text - qa - code - lua - roblox size_categories: - 1K

I was trying to remove the HopperBin in user's inventory using the following script:

game.Players.PlayerAdded:Connect(function(player)
    for i,v in pairs(player.Backpack:GetChildren())
        if v:IsA("HopperBin") then
            v:Destroy()
        end
    end
end)

Instead of removing, it does nothing. Any help would be great!

1st of all, you should try it when the Character is added. Tools and such do not go straight to the backpack, it waits until the character is added and then adds tools to the backpack.

2nd of all, I wouldn't use HopperBins to begin with, as they're deprecated (use tools).

``` Parsing was done only with the single-pass regular expression and minimal post-processing to remove recurring anomalies. Comments and unaccepted answers were not included in the parsed data, but can be found in the raw data. ## Requirements - `brute.py` requires an installation of [ripgrep](https://github.com/burntsushi/ripgrep#installation) on your machine. - `data_to_parquet.py` requires pyarrow.