#player avatar

1 messages · Page 1 of 1 (latest)

plain zealot
#

how do i make it so the dummy displays the avatar of the player whos playing

dire temple
#

Tung sahoorrrr

plain zealot
#

bro

dry phoenix
#

humanoiddescription

hexed cape
# plain zealot how do i make it so the dummy displays the avatar of the player whos playing
local Players = game:GetService("Players");

local userId = Players.LocalPlayer.UserId;

local humanoidDescription = Players:GetHumanoidDescriptionFromUserIdAsync(userId);

local SpawnedRig = Players:CreateHumanoidModelFromDescriptionAsync(humanoidDescription,Enum.HumanoidRigType.R6); -- spawn a R6 Rig of the player

SpawnedRig.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None; -- hide the name tag

--SpawnedRig.HumanoidRootPart.CFrame = nil; -- move this to where you need the rig

SpawnedRig.HumanoidRootPart.Anchored = true; -- stops the rig from moving

SpawnedRig.Parent = workspace; -- parent to where needed```
#

when using methods containing Async try using pcall incase it errors