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 4 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 4 years ago
01-- Services
02 
03local Players = game:GetService('Players') -- Gains access to the Players Service
04 
05-- Variables
06 
07local Dummy = workspace.Dummy -- This is the Dummy that we are going to replicate the Appearance to
08 
09-- Appearance Loading
10 
11local UserId = 157793271 -- The UserId of the player we want to mock this can be obtained through Player.UserId
12local AppearanceData = Players:GetCharacterAppearanceAsync(UserId) -- This function Returns a Model with the Player's Appearance
13 
14-- 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
15local Children = AppearanceData:GetChildren()
16for Index = 1, #Children do
17    Children[Index].Parent = Dummy
18end
0
hope this helps DevScripting 92 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

I would recommend you checking this article:

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