I figured out how to find any player within my FOV using dotprodcuts, however it lets me see anyone through walls as well. I was wondering how I would make it so it doesn’t register if a wall is infront of me and the person within my FOV?
Use Dot product to check if a player is in your field of view and then fire a raycast between your HumanoidRootPart and the other player’s HRP. Use RaycastParams and set FilterDescendantInstances to a folder that contains every player character. Then set FilterType to Exclude and if the ray doesnt intersect with any Instance then The player is not behind a wall.