How would you go back a few studs after raycast hits a part

any ideas for on how you would find the position after backing up from a raycast hit?
I’m trying to get a part to not get stuck in the wall so I want it to spawn beside it.

(Hit.Position) - (Direction * Magnitude)

1 Like