Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

HopperBin doesn't get removed in player's inventory?

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!

1 comment

0

HopperBins created on the client won't appear on the server. Even if the exploiter did have a HopperBin, it wouldn't be deleted.

1 answer

✓ Accepted answer

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).

1 comment

0

Thanks, just to check for HopperBins if they're from exploits.

This discussion is preserved as it was. New answers, comments, and votes are closed.