How would I make parts of a player invisible if they're behind a wall, similar to among us?

No. At that point, using raycasting would be better.
For every render step, you would raycast to all players to check if they are in the character’s line of sight. If they are, they become visible.

2 Likes