How can I load a player's character?

Hey developers, so for my upcoming game, I have a global leaderboard which updates every few seconds, but I also want 3 podiums for the first, second and third place players, and then I want to load their avatar onto the podium, is there a simple way to do this?


Yes, you can use Players:CreateHumanoidModelFromUserId() to create a model of a player. Don’t forget that you need to parent their character models to workspace to make them visible though.


Okay, thank you so much, have a good day! :smiley:

[Edit] When I try calling it, it just creates the model with no body parts.

1 Like

Are you sure your using it correctly?

local Player = reference the player
local PlayerModel = game.Players:CreateHumanoidModelFromUserId(Player.UserId)
PlayerModel.Parent = workspace
local newModel = game.Players:CreateHumanoidModelFromUserId(1578920035)
newModel.Parent = workspace

This code worked fine for me, are you sure it’s not falling off the map?

I tried anchoring and it still doesn’t work, so I don’t think that is the problem.

Are you changing anything after adding in the characters? I tried your exact code but added a loop and it worked fine.

That is the exact code I used.