Raft-style floor placing system

I’m currently working on somewhat of a recreation of the survival game RAFT, on Roblox. I’m rather early on, and I’m trying to figure out a way so that floors can only be placed when next to another floor.

For example, this would count as a valid placement.

This would not.

Does anybody know how I could achieve this, in the most simple and optimised way possible?

Thanks.

3 Likes

Well what if the floor that is not near the other automatically destroys maybe if you can make some hitbox for placement of new floor and if there is no hitbox it will just destroy by itself

1 Like

maybe raycast from the transparent part to see if there is one within half the size of the mesh/part?

1 Like