I want to create a gun that makes a surface at the position of a raycast hit. The position works, however, I also want to orient the part so it’s equal with the hit’s surface.
This is how the part is currently being oriented:
This is how I want the part to be oriented:
This is my code:
I’ve searched the forum but I didn’t really find an answer. Would anyone help?