Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Custom character with user apperance?

I have a custom character that is basically starter but with couple extra parts. Do I have to write a custom function that gets all player accessories and puts it on the character when it loads or does Roblox already handle this with some specific function?

1 answer

✓ Accepted answer

You could use GetCharacterAppearanceAsync to get a variable containg the players model, loop through the accessories and attatchements and put them on the custom character.

Remember after you get the model you need to parent it somewhere such as the workspace.

local players = game:GetService("Players")
local success, character = pcall(function()   
return players:GetCharacterAppearanceAsync(player.UserId)
end)

if(success)then
        print("got player's character")
        print(character)
else
       print("could not get players character")
end

Aside from that, there is not a built in Roblox function to transfer the characters appearance directly onto the custom character.

3 comments

0

pls make players variable local

0

my bad my bad I was typing on mobile and didnt notice

0

Cloning new parts and scripts into a base character sounds like an easier option. (Whil probably a very hacky and unprofessional). Thanks for the info tho!

This discussion is preserved as it was. New answers, comments, and votes are closed.