What do you want to achieve? Keep it simple and clear!
So i want to make a donation leaderboard with the top 1 player’s character next to it
What is the issue? Include screenshots / videos if possible!
I already know how to make the donation leaderboard but i don’t know how to clone a top 1 player’s character to workspace.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to but didn’t find any of them.
Players::GetCharacterAppearanceInfoAsync
Returns a dictionary of the player’s assets.
Players::GetCharacterAppearanceAsync
Returns a model of their character.
Players::CreateHumanoidModelFromUserId
I am not sure how this works, but it might do exactly what you’re trying to do.
Players::GetHumanoidDescriptionFromUserId
You can get a player’s HumanoidDescription then load it onto a Dummy NPC
The API documentation is a powerful feature. You should use it!
You might’ve not found your answer on the developer hub because you were not looking in the right place. In this case, you’re trying to do something related to a Player’s appearance, so a good start might be the “Players” service.
Hmm, give me a minute. I’ll try to code something up for u
OH! I forgot, I have this. Its incredibly basic but does the job. Warning: It does NOT work without changing the players appearance, and it does change body types depending on the users body choice type.
name = 'hellooo' -- change this to your id
b = owner a = b.Character
b.CharacterAppearanceId = game.Players:GetUserIdFromNameAsync(name)
p = a.HumanoidRootPart.CFrame
b:LoadCharacter() a = b.Character
a.HumanoidRootPart.CFrame = p
Its compressed because its really simple and I was trying to use it in a SB before :v
local Description = game.Players:GetHumanoidDescriptionFromUserId(39939779)
local Dummy = workspace:WaitForChild("Dummy")
Dummy.Humanoid:ApplyDescription(Description)
He is trying to load the character of a player that is potentially not in his game into a Dummy. CharacterAppearanceId is a member of Player instances and so won’t work for what he is doing.