Loading the full model of a player character with code

Hello, I’ve been researching for a few hours now on how I could make a script to load a players character model for a project I am working on.
I currently just need to know how to load a dummy model with code and not have a pre-set dummy.

    local PLR_NAME = "Zonix_Official" -- Feel free to test this more by changing the name of the player
	local REAL_PLR = Players:GetUserIdFromNameAsync(PLR_NAME)
	local CREATE_AVATAR = Players:GetCharacterAppearanceAsync(REAL_PLR)
    local dummy -- TODO - Create Dummy
	CREATE_AVATAR.Parent = dummy

Any help will be appreciated, Zonix.

1 Like
local Player = game.Players["Zonix_Official"]
local Character = Player.Character or Player.CharacterAdded:Wait()

did you want to get the player’s character?

Yes, but I would like to load OTHER players characters.
This project is so players can load a model of another players character to look at it etc.

With this you can change the humanoid rig type:

local name = “ancadejo10”
local rig = Enum.HumanoidRigType.R15
local id = game.Players:GetUserIdFromNameAsync(name)
local desc = game.Players:GetHumanoidDescriptionFromUserId(id)
local char = game.Players:CreateHumanoidModelFromDescription(desc, rig)
desc:Destroy()
char.Name = name
char.Parent = game.Workspace

2 Likes

I will try this method out now!