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 14 days 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 1546 Moderation Voter
14 days 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 1736 — 13d
0
also can you explain what GetHumanoidDescription and ApplyDescription does? T3_MasterGamer 1736 — 13d
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 1546 — 13d
Ad

Answer this question