Good afternoon,
I'm trying to clone the local player's character into a model inside ReplicatedStorage named "NPC." I can't seem to figure out what's wrong with it and the last lines following the function work perfectly. I am welcome to any ideas, suggestions and recommendations. Thank you, for your time.
local pl = game.Players.LocalPlayer
if pl and pl.Character then
local c = pl.Character
c.Archivable = true
local duplicate = c:clone()
duplicate.Parent = game.ReplicatedStorage.NPC
end
game.Players.LocalPlayer.PlayerGui:WaitForChild('PlayerAppear').Enabled = true
game.Players.LocalPlayer.PlayerGui:WaitForChild('PlayerAppear'):WaitForChild('LocalScript').Disabled = false

1 comment
Oh, this is a LocalScript btw in the StarterPlayerScripts.