I have a StarterCharacter that looks pretty much the same as a default R15 character, only difference is some of the limbs and stuff have less tris, and there’s a camera part for animations. I’m trying to load the players appearance onto this StarterCharacter, but it isn’t working as intended. Joining the game when using
Player:LoadCharacterWithHumanoidDescription() will load the startercharacter as an all black avatar. and using Player:LoadCharacter() and then Humanoid:ApplyDescription() will apply the HumanoidDescription correctly, but all the welds seemingly break, the camera part stays up in the spot where the player spawned
(hierarchy of my startercharacter and starter humanoid)
1 Like
Does Players:GetHumanoidDescriptionFromUserId(plr.UserId) work, or do you want it to load the character?
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(plr)
local humanoidDescription = players:GetHumanoidDescriptionFromUserId(plr.UserId)
plr.CharacterAdded:Connect(function(char)
char:WaitForChild("StarterHumanoid"):ApplyHumanoidDescription(humanoidDescription)
-- note that this has to be done on the server.
end)
end)
1 Like
Loading the character works fine, applying the HumanoidDescription is what’s broken.
1 Like
Maybe try Humanoid:ApplyDescriptionReset()?
Tried this and I don’t think it changed anything.
-- Services --
local Players:Players = game.Players
-- Functions --
local function OnPlayerAdded(Player:Player)
local HumanoidDescription:HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
Player:LoadCharacter()
local Character:Model = Player.Character or Player.CharacterAdded:Wait()
local Humanoid:Humanoid = Character:WaitForChild('Humanoid')
Humanoid:ApplyDescription(HumanoidDescription)
end
-- Connections --
Players.PlayerAdded:Connect(OnPlayerAdded)
This is what my code currently looks like. The character loads in with it’s appearance all fine but the camera part stays where the player first spawned. I had to anchor the camera so it wouldn’t fall through the map. I also had to set the camera.camerasubject property to the character.
1 Like
still need help with this
(char)