Yes but that would get a random player not the local player plus if it does get the local player it is done nearly the exact same way op did it originally
The goal of the script is to get the one player out of a server size of one. @08Boat’s solution is completely valid in this scenario for a server size of one player.
My bad I didn’t see that he said it was a server size of one. Sorry. In that case you guys are correct. Now I’m wondering why is this question posted if the op can just use game.Players:GetChildren()[1] (like they said) to get the player if it’s a server size of 1 (it seems like it should work fine)