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.