How to make an anchored block-placing system

For my sandbox game, i want to have a system similar to Animal Crossing’s, where players take a part from their inventory, use it, and it will be placed in front of them. How can i make sure this part is placing on the ground, and isn’t floating in the air?

1 Like

You can raycast down then use its position to position your block. You’ll have to offset the block from clipping into the ground by adding half of its z size

1 Like