How can I get all parts that the player can see?

As said by the title that is what I want to do, I’ve tried some things now, they for the most part dont work in that they tell if the position of the part is in the view of the camera, which doesnt work very well considering if you look at a very far end of the baseplate that is ways away from the position of it.

I tried raycasts but that crashed the whole game due to lag ( I lost all the code for it :<) so what can I do?

Absolutely! You can use WorldToViewportPoint to check if a part is visible on the player’s camera screen.

Hmm from my tests a results in the same thing as this did:

I’m not sure if I’m using it wrong but I’ve resulted in this soooo