How do I get a character of a certain user?

In this GAME d4dj meme - Roblox
You can type in usernames of players
The players characters will be inserted into the game
The games functionality does the rest (animation, etc)

How do I make it so if you type in the name of a user or maybe their id it inserts their character?

If you browse through the player’s api reference in the devhub, there are these three functions.

Get UserId from name
https://developer.roblox.com/en-us/api-reference/function/Players/GetUserIdFromNameAsync

Get Humanoid Description from UserId
https://developer.roblox.com/en-us/api-reference/function/Players/GetHumanoidDescriptionFromUserId

Create Avatar model from Humanoid Description
https://developer.roblox.com/en-us/api-reference/function/Players/CreateHumanoidModelFromDescription

If you know what i’m thinking of then you can just pair these three functions in order to get your character

3 Likes