Count quantity of held item

How do I do it so it counts the quantity of an item that a player is holding andd assigns that to a player variable

2 Likes

you could try to create an entity script within the holder unit that triggers every second. in that script edit the owner player’s variable. you can get the item’s quantity with the item quantity function

1 Like

Could I get an example?

1 Like

3 Likes