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
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