Building system simple to add items

I’ve made a building system, The code Is not very great looking but works great.
This Is the version that is not very compact, you can do it here to make it more compact and easier to read.

This was supposed to be a TD game placement system (WITHOUT THE STUD MOVEMENT) and I quit making the game because I wasn’t intrested into the game.

These are some of the pictures of the buildings

You can add/remove items that you want or don’t want. Some changes might be made to the UI or items.

  • Stud movement
  • Snap to grid
  • Raycasting (because :GetMouse would make it worse)
  • No place areas (Name a part “Notouch” so the player can’t place anything there)
How to make a snap to grid part

To make snap to grid you must clone the part that u want to be snap to grid and then place it into workspace and remove collision and set transparency to 0.7 (OPTIONAL) and test. It works with every building item!

If you got any ideas how to improve this then you don’t need to tell me and do it on your own because Im not working on this anymore.

edit: and the Skull sign wont work and i forgot to remove it before i uploaded this so you can fix it
Building.rbxl (404.7 KB)

8 Likes

How about place areas instead of noplace areas? Would seem more convenient to me.

1 Like

I don’t think so, let’s guess u are making a open world game and there are safe zones, shops where u wouldn’t want player to place and you just add 1 part and resize it, otherwise if u made place areas it would take much more parts and precision to make it functional.

Maybe an option to switch between it would be better than just one since it could be used in both ways?

1 Like

That would add extra work and really unnecessary. If y want a player not able to place on trees/houses or maybe even a land claim system for the player then it would be way easier just to make a newpart just on THAT area and not on the whole map

what if you only want players to be able to build in their specific plots, place areas seems more practical there

1 Like