How to store an Instance in a buffer?

Hello everyone!
Is there any way to store an Instance in buffers?

Thank you!

use that as a jumping board for how Roblox does it.