#Why doesnt it fire
1 messages · Page 1 of 1 (latest)
Shouldnt it be child.Parent:IsA("Tool") ?
No because the child is a tool from the backpack so the parent would be a backpack
for debugging, add a print directly under the function, that way it prints anyhting not just tool items, then see
also check output for errors, and share them here plss
also when a tool is picked up (assuming its being picked up?) it automatically is in the hand rather the backpack so the tool would be under the characters model, only when its not being held its in the backpack
ex:
game.Players.LocalPlayer.Backpack.ChildAdded:Connect(function(child)
print(child, "has entered the backpack")
if child:IsA("Tool") then
warn("This is a tool! Currently in the backpack and is not being held.")
end
end)
game.Players.LocalPlayer.Backpack.ChildRemoved:Connect(function(child)
print(child, "has left the backpack")
if child:IsA("Tool") then
warn("This tool! And now its gone, or being held.")
end
end)
not sure if that info changes the problem...
i found it out
its a server script but i just used waitforchild and it started working so
i figured it out