I’m currently writing a script that clones a startercharacter from ServerStorage and moves it to StarterPlayer. I’m trying to write it so that all of the player’s accessories, clothing, body colors, and faces carry over to the startercharacter.
ServerScriptService:
game.Players.PlayerAdded:Connect(function(player)
local character = player.CharacterAdded:Wait()
local startercharacter = game.ServerStorage.StarterCharacter:Clone()
character:WaitForChild("Body Colors").Parent = startercharacter
character:WaitForChild("Head").face.Parent = startercharacter.Head
local others = character:GetChildren()
for i = 1, #others do
local item = others[i]
if item:IsA("Accessory") then
item.Parent = startercharacter
end
if item:IsA("Shirt") then
item.Parent = startercharacter
end
if item:IsA("ShirtGraphic") then
item.Parent = startercharacter
end
if item:IsA("Pants") then
item.Parent = startercharacter
end
end
startercharacter.Parent = game.StarterPlayer
player:LoadCharacter()
end)
This script carries over the player’s body colors and face, and also loads the startcharacter properly, but the accessories and clothing items do not. How can I fix this?
Just asking have you tried moving the startercharacter from lighting and also using a script like this game.Lighting.StarterCharacter.Parent = game.StarterPlayer idk if it works
local description = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
local bulkedUpChar = -- however u get the model
local humanoid = bulkedUpChar.Humanoid -- This is the custom model's humanoid
humanoid:ApplyDescription(description)