This script is a server-script, inside of my StarterCharacter scripts. I know that HopperBin is deprecated, but I just found a server-script from the Roblox library that kicked anyone that had it, and it worked. But I want to be more specific on the BinType so . . .
This is my code so far. The code may look broken off so just look at the source:
local BtoolTypes = {"Hammer", "Clone", "Grab"}
while true do
wait(10)
for i, v in
pairs(game:GetService("Players"):GetPlayerFromCharacter(script.Parent).Backpack:GetChildren()) do
if v:IsA("HopperBin") then
for i = 1, #BtoolTypes do
if v.BinType == BtoolTypes[i] then
game:GetService("Players"):GetPlayerFromCharacter(script.Parent):Kick()
end
end
end
end
end
Can anyone help?

2 comments
may i know if there is there any error?
no errors