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

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

Asked by 1 year 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
1
Answered by
pwx 1581 Moderation Voter
1 year 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)

dummyHumanoid:ApplyDescription(avatarDescription)

Make sure this is a LocalScript!

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

Answer this question