local player = game.Players.LocalPlayer
local char = player.Character
if not char then
char = player.CharacterAdded:Wait()
end
local plrClone = char:Clone()
plrClone.Parent = workspace --errors out on this line.
plrClone.Name = "PlrClone"
other than that, the title implies itself. ask any questions you may have, please.
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local plrClone = char:Clone()
plrClone.Parent = game.Workspace
plrClone.Name = "PlrClone"
Ah I see. You should probably use their character thumbnail for those types of things. Or, if you’re trying to make a viewport frame for their character moving, there is a tutorial for that.
local image = game.Players:GetUserThumbnailAsync(v.UserId,Enum.ThumbnailType.AvatarBust,Enum.ThumbnailSize.Size100x100)
viewport.Image = image