Get When Item is Added to a Table

I’m wondering if there’s an event that fires when you use table.insert because I want to know when an item is added to a table. Does anyone know if it exists?

Maybe these could help -

You prob would need to use Metatables

2 Likes

Can I ask why you want to do this?

Presumably, you’re the one adding things to the table, so you already know when something new is added!

(There are legit reasons to want this, but it’s not necessarily the best solution)

1 Like

Yeah, I’ve changed my mind, I’ve moved the entire thing to right after table.insert.

1 Like