Trying to make a 3d grid model placement system

I’ve tried making my own placement system but I couldn’t figure out the math. I searched the devforum but all I found was Egomooses furniture placement system which I couldn’t even get to work for some reason.


What im trying to do:

Im trying to make a placement system for models. The actual collision is the primary part. so just set primary part then just MoveTo() or PivotTo(), The main thing im confused on is the math for placing against other blocks. I know you have to create a new raycast using UnitRay and Normal, but I dont know much more than that.


What I want

some sort of function that inputs a model and outputs the placement position
(you could also do something else, anything works)


Thanks for reading :slight_smile: