Attempt to index with nil "parent"

For some reason when i try to clone the players avitar and then set the parent to something, it says attempt to index with nil “parent”

	-- Get the player's character
	local character = player.Character

	-- Clone the character
	local clone2 = character:Clone()
	wait()
	clone2.Parent = viewportFrame.Model
1 Like
local character = player.Character
character.Archivable = true

The archivable property doesn’t let you clone instances and it’s on by default on character models.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.