Is there any way to have the current players avatar be put into the game as a humanoid model in a single player game?
✓ ANSWER ACCEPTED
Any way to put current players avatar into game?
1 answer
✓ Accepted answer
game.Players.PlayerAdded:Connect(function(player)
local UserId = player.UserId
local Player = game:GetService("Players")
local App = Player:GetHumanoidDescriptionFromUserId(UserId)
local Npc = game.Workspace.Npc --The model/Npc/dummy in workspace
local NpcHum = Npc:WaitForChild("Humanoid")
NpcHum:ApplyDescription(App)
end)
I'm not entirely sure if this is what you're looking for but I got this. Make sure to put this in a server script in ServerScriptService.
This discussion is preserved as it was. New answers, comments, and votes are closed.
