Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why wont my function run when the players backpack changes?

Asked by
Zrxiis 26
7 years ago

I tried to make a function so that my gui updates when the players backpack has stuff added or removed from it, but I don't know why it's not working

player.Backpack.Changed:connect(function()
    print("You have gained an item")
end)
3
Because the Player's backpack doesn't actually change unless a property is changed. Say you renamed it or changed the Achievable property, then the event would fire. What you are actually looking for is ChildAdded. M39a9am3R 3210 — 7y
0
Ok, thx Zrxiis 26 — 7y
0
If you want it to fire when something is added, you should be using ChildAdded or DescendantAdded. BinaryResolved 215 — 7y

Answer this question