You can use something similar to this and check if the player’s name is not the whitelisted player, you can set their health to zero