How to make a player character invisible to other players, while being visible to cameras?

I am trying to create a game where 1 player plays a ghost and the other players are humans. The humans can’t see the ghost, but cameras can. Is there a way I can do this? This is very important to my game.