I’m looking to create many seats with different avatars sat in them. Is there a simpler way other than doing them all individually?
My little rat for example, how could I go about changing each avatar’s appearance to a different user ID than my own? Tried to search this but I can’t seem to get the terms right. Any help would be appreciated.
No problem! I spent some minutes to do an example script in case you need it.
local PlayerService = game:GetService("Players")
-- Change an existing character appearance
local function ChangeCharacterAppearance(UserId, Character)
local Humanoid = Character and Character:FindFirstChildWhichIsA("Humanoid")
local NewDescription = PlayerService:GetHumanoidDescriptionFromUserId(UserId)
if Humanoid and NewDescription then
Humanoid:ApplyDescription(NewDescription, Enum.AssetTypeVerification.Default)
end
end
-- Create a brand new character with the selected appearance
local function CreateCharacterAppearance(UserId, RigType)
local NewDescription = PlayerService:GetHumanoidDescriptionFromUserId(UserId)
local NewCharacter = PlayerService:CreateHumanoidModelFromDescription(NewDescription, RigType)
NewCharacter.Parent = workspace
end
task.wait(15)
CreateCharacterAppearance(1, Enum.HumanoidRigType.R15)
ChangeCharacterAppearance(1, script.Parent)