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

How do I make a dummy have the appearance of the local player? (every player sees their own avatar)

Hello I just wanted to ask a really quick question, I inserted a dummy into the worksapce and I want the dummy to have the avatar of the local player. I want every local player to see their own avatar and I don't want people seeing other people's avatar. Can you help me?

1 answer

✓ Accepted answer
local Dummy = workspace:WaitForChild('Dummy')
local dummyHumanoid = Dummy:WaitForChild('Humanoid')

local Players = game:GetService('Players')
local Player = Player.LocalPlayer

local avatarDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)

dummyHumanoid:ApplyDescription(avatarDescription)

Make sure this is a LocalScript!

3 comments

0

inside StarterPlayer > StarterPlayerScripts

0

also can you explain what GetHumanoidDescription and ApplyDescription does?

0

GetHumanoidDescription is an API service that will get the avatar of a desired player, Applying the description means what it says, it would use the HumanoidDescription you have and update the Humanoid's avatar.

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