How to remove player and only keep camera

So I am making a troops va troops game, and I need to script a freecam but not put the player in a box under the map, I just want to “delete” the player.

Is there a way to do so?

You can disable Players.CharacterAutoLoads to prevent the character from spawning at all.

You can set:

player.Character.Parent = nil

To put it back:

player.Character.Parent = workspace