How to get the Player's appearance from the username?

So I am making my own custom admin commands.
And one of the command turns your character appearance into the character of the player from the username that was typed in.

So for example, I used the command with the username of “player123”, and will then change my character appearance into that player’s character.
How would I do that?

You can get it from someone’s UserId with this method:

You can get UserId from username pretty easily too:

2 Likes