How do i make a building system like minecraft?,How to make a building system that snaps?

i would just like to know how i could make a building system like minecraft… ive tried many tutorials but cannot find any that have snapping like minecraft…? i have a building system implemented in my game right now but it does not snap, u can just build whereever u want… so if anyone could help me i would greately appreciate it… im also just a beginner so dont expect me to know much about scripting and all that…

Its a Math Problem not a Scripting Problem. The position you currently mouse over. Calculate whats the position in a Grid → Place there instead of Mouse position. Easy as Pi.

If you got trouble try to sketch it out on Paper.