Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

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

Asked by 10 months ago

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

Log in to vote
Answered by
pwx 1581 Moderation Voter
10 months ago
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)


Make sure this is a LocalScript!

inside StarterPlayer > StarterPlayerScripts T3_MasterGamer 2189 — 10mo
also can you explain what GetHumanoidDescription and ApplyDescription does? T3_MasterGamer 2189 — 10mo
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. pwx 1581 — 10mo

Answer this question