Temporarily hide a player from others

I want a feature for admins of my game so they can hide themselves from the player list.

I have created this, but it can’t be reversed

I have searched around for a little and found nothing.

Is there a possible way to make it reversible?
Here is a place file with all my code :
HidePlayersTest.rbxl (56.7 KB)

to make this clearer, it only has to hide the player from other players on the player list.

I made something that does this:

You can use the code from that. The TL;DR is that you parent the Player instance of the player you want to hide to nil temporarily on the client you want to not see the player.

This makes it so the client can’t see the player on the player list or in the settings menu. (Exploits are able to detect the player but it’s not simple.)

1 Like

I did set the parent to nil, but it wont let me set the parent back, but i’ll read the code

1 Like

Make sure to do it on the client. It’s possible it no longer works. You can check if that’s the case with the demo game or in a test studio session.

Thank you, I got it working by switching from using a table to object values like in your code.

1 Like