Im trying to make a gun using raycasting but I cant figure out how to get the direction a part in the tool is facing. what am I doing wrong?
Try removing “FrontSurface”. Also, you could use the player’s mouse position instead of the LookVector.
I removed the FrontSurface but now I just get an error argument 2 missing or nil. How can I get the player’s mouse position?
You can send over “mouse.UnitRay.Direction” over from the client to the server. This would serve as your direction.


