Getting Players Character

Im trying to make a script that gets a random player in the game and then gets their skin and applies it to the npc. I do not know how to code this can anyone help me get a kick starter on this?

Yes. First you can get a random player then use CreateHumanoidModelFromUserID

local randomPlayer = game.Players:GetPlayers()[#math.random(game.Players:GetPlayers())

local newNPC = game.Players:CreateHumanoidModelFromUserID(randomPlayer.UserId)

newNPC.Parent = workspace
1 Like
-- Get a Random Player
local Players = game:GetService("Players")
local Num = math.random(1,#Players)
local GetPlayer = Players[Num]
-- After you can copy

You can use AppliedHumanDescription, check it out here

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.