Storing wall positions to prevent walls being inside one another

I have a simple wall placement system where players can place walls. However, I’m unsure how to save and keep track of said walls on the server, for data store purposes, as well as preventing them from placing walls within one another.

Example case, player places wall like so. I store the start and end points of this wall


I also create the wall like so

So the wall has 2 sides and is split into segments. This is so I can allow full customisation from the player when having wallpapers/etc.

If I just store the start and end points though I’m unsure how I’d go about if a player then continued that wall, and how I could continue it via the stored table

2 Likes

can’t you just save the walls as CFrame & Scale tables?