"Table index is nil", why?


It mentions the activeBulletStats[bullet] = { part as the error, by the way. I’m indexing the table with an object because I don’t know any other method of getting unique tables for each bullet


May I see your bullet and activeBulletstats variable?

The ‘bullet’ variable is just an object (that is a bullet) sent from the client

Oh then, this problem is with bullet.
your bullet variable is nil.

Can I see the bullet variable code?



I just realized that the server can’t see client-sided stuff :skull:

Oh, so you are parenting and setting properties of a part in client and then sharing it to server…?

Yeah, the client creates its own purely cosmetic bullet, then for some reason I sent it to the server.