Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do I make an avatar taking dummy?

Asked by 2 years ago

so basically, im trying to make an NPC that automatically takes the players appearance, the one who's playing. and this is the script I came up with:

local player = game.Players.LocalPlayer local name = player.Name local PlayerPlayer = game.Workspace:FindFirstChild(name)

local chardesc = PlayerPlayer.Humanoid.HumanoidDescription script.Parent.Humanoid:ApplyDescription(chardesc)

and the error I got was

Workspace..Script:2: attempt to index nil with 'Name'

this has been on me for a while now and would finally like a fix to it.

Answer this question