I need to make a script that grabs all platform NPCs and wraps (with pnpc.lua) any new ones that spawned in the current frame , then creates a collider in the middle of each platform NPC that has just been wrapped. This collider must be associated with that NPC (That is, the same collider must be paired with the same NPC it was created with, and stay attached to its position each frame). I just can't wrap my head around a good way to do this.
I realize that this is worded very badly. Hopefully you can decode its meaning.