Hello, I am trying to put the local players avatar appearance on a basic r6 block rig how would I do this?
4 Likes
Look into Humanoid:ApplyDescription and Players:GetHumanoidDescriptionFromUserId
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
local desc = Players:GetHumanoidDescriptionFromUserId(player.UserId)
local dummy = ReplicatedStorage:WaitForChild("Dummy2"):Clone()
dummy.Parent = workspace
dummy.Humanoid:ApplyDescription(desc)
It has a few caveats:
- If you want to do this from a local script, the dummy model must be cloned from a local script (i.e. the dummy must only exist on the client)
- Obviously, because it’s cloned from a local script, none of this will replicate to the server or other clients:
3 Likes
where are you putting said local script?
The snippet I gave was in StarterCharacterScripts, but really it can go anywhere that is sent to the client. i.e. a part in the workspace, a tool, StarterPlayerScripts, etc.