Performant Cloning?

I’m looking for a performant friendly way of Cloning Parts within a certain proximity similar to:

https://www.roblox.com/games/7266427538/Doomspire-Portals

I’m working on a game utilising EgoMooses Portal system however, I only need Parts within a certain magnitude / PartInBound to be Cloned?

Can anyone suggest a performant friendly way of doing this?

1 Like

GetDescendants or GetChildren would likely lag if you were to do it on a loop, but perhaps if you calculate only once when you put down the portal it could work.

There’s also another problem with your magnitude approach, walls and other things outside of the range wouldn’t get rendered, so you might just wanna use raycasts

1 Like