I have a script that kicks a user if they have a certain item in their inventory. But how can I detect when an item is added?
When an item is added i want it to call my itemAdded() function
I currently have this code
function itemAdded(item)
if item.Name == "HopperBin" then
item.Parent.Parent:Kick("You are not allowed that item")
end
end

1 comment
Thanks!