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)