I am attempting to cast rays out of a players head to visualize FOV so I can create a "fog of war" system.
I cant seem to get the math right. Currently it seems the rays shoot -90 degrees to the left of the players lookvector, and as I get farther away from 0,0,0 the rays get closer together.
Heres my code. Its on a code share because I cant seem to ever get the code thing working on this website.
Here also a gif of whats happening. [https://gyazo.com/2f7bff6a94b544e469ad4a3ec1674b27]
Thanks and hopefully we can figure this out :)

2 comments
Totally understandable. I am trying to create a FOV for the character. It doesnt relate to camera FOV at all. I just need help correcting my ray casting math.
I saw the gyazo link and I’m not too great with raycasts but how are you updating/firing the raycasts? Are you using run service for it?