#Why doesnt it fire

1 messages · Page 1 of 1 (latest)

amber sentinel
#

when i unequip a tool it doesnt print or change the value

crisp pumice
amber sentinel
rose finch
#

also check output for errors, and share them here plss

rose finch
#

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

amber sentinel
#

i found it out

#

its a server script but i just used waitforchild and it started working so