That you can convert a part to a Raycast ( script) .
So when you start the script a Raycast gets created that has the position and oriantation of the part. The best thing to do is to make a lot of rwaycast in a row with it.
Hey, nice instance encoder. I opened your plugin’s source code, and I have to say, there are easier ways of doing what you’re doing.
For starters, you don’t need to manually create every UI element. You can parent ScreenGuis to your plugin script, and clone from those.
Also, there’s a Web API to get a list of properties for an instance. You could make use of that to easily serialize instances. Also, the API stays up to date with Roblox, so any changes Roblox makes, your plugin will account for.