Raycasting Help

I’m trying to make a raycast only look forward, but the raycast is looking everywhere around me, causing the ray to even look slightly to the right of me and I’m not quite sure what’s wrong.

Picture of what the ray is displaying

Code
Displayed Raycast Code.lua (1.2 KB)

1 Like

this should be in scripting support, not platform usage.

Have you tried using the CFrame.LookVector of the player’s head for the direction of the ray?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.