I have the following script here:
-- Server
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(plr)
local char = plr.Character or plr.CharacterAdded:Wait()
local UserID = plr.UserId
local appearance = Players:GetCharacterAppearanceAsync(UserID)
-- Check if the player's character is already loaded
if char then
-- Apply the character appearance to the hair
for _, item in ipairs(appearance:GetChildren()) do
local itemClone = item:Clone()
itemClone.Parent = char
end
else
-- If the character is not yet loaded, wait for it to load
char = plr.CharacterAdded:Wait()
for _, item in ipairs(appearance:GetChildren()) do
local itemClone = item:Clone()
itemClone.Parent = char
end
end
end)
and I want to change the GetCharacterAppearanceAsync into GetCharacterAppearanceInfoAsync and I am confused on how to change the playerAvatarType to R15.
Basically, I have another script that makes use of the accessory handles that have to be meshparts, or the script would not work.
I have tried the documentation, but I can’t seem to figure it out.