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

Backpack event

Asked by 10 years ago

Is there any event that runs when an item is added to the backpack?

2 answers

Log in to vote
3
Answered by 10 years ago
Game.Players.PlayerAdded:connect(function(Player)
    Player:WaitForChild("Backpack").ChildAdded:connect(function(Tool)
    --Execute more code here
    end)
end)
Ad
Log in to vote
0
Answered by 10 years ago

The .ChildAdded:connect() would be useful here.

0
Thx, I'll try to use it. xXPowerBladeXx 5 — 10y
0
The code above is better. FromLegoUniverse 264 — 10y

Answer this question