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's character appearence the player? [closed]

Asked by 3 years ago

I'm interested in making a game where you must use a voodoo doll of yourself to get past stages but I seriously do not know how to make a dummy look like the player.

Closed as Not Constructive by kingblaze_1000, Dovydas1118, and Cynical_Innovation

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 3 years ago
-- Services

local Players = game:GetService('Players') -- Gains access to the Players Service

-- Variables

local Dummy = workspace.Dummy -- This is the Dummy that we are going to replicate the Appearance to

-- Appearance Loading

local UserId = 157793271 -- The UserId of the player we want to mock this can be obtained through Player.UserId
local AppearanceData = Players:GetCharacterAppearanceAsync(UserId) -- This function Returns a Model with the Player's Appearance

-- Since the entire outfit of the character is stored in a Model, we have to get the Children of the Model, and put it inside of the Dummy
local Children = AppearanceData:GetChildren()
for Index = 1, #Children do
    Children[Index].Parent = Dummy
end
0
hope this helps DevScripting 92 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

I would recommend you checking this article:

https://developer.roblox.com/en-us/api-reference/function/Players/CreateHumanoidModelFromUserId