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

Why isn't this anti-btool script working? No errors no nothing

AB = script.Parent.Frame.Settings.Frame.AB.Enable
function Notify()
end
print('Running')
game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(obj)
	print('Item added')
	if AB.Value == true then
	if obj.Name == "HopperBin" then 
		wait()
		if (obj.Parent == script.Parent) then
			obj:Destroy()
			print("Hopperbin removed")
		end
	end
	end
end)

I literally have no idea why it isn't working.. No errors, no warnings

2 comments

0

so you're trying to create a function right?

0

...

1 answer

You are only checking if the name is HopperBin, not the Class. For Example, The HopperBin's name could be "Delete" instead of "HopperBin" Also make sure the script is a Local Script!

AB = script.Parent.Frame.Settings.Frame.AB.Enable
function Notify()
end
print('Running')

game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(obj)
print('Item added: '..obj.Name)
    if AB.Value == true then
   	if obj:IsA("HopperBin") then 
            obj:Destroy()
            print("HopperBin was removed")
        end
    end
end)

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