Why is this deleting the character in this folder?

So I have a script that is suppose to clone a character, but I think its not cloning.

Its in a folder thats in the player.

Anyhow here is the code

local function loadCharacter(char)
	local charNew = char:Clone()




	char.Parent =workspace

	local anim = char.Humanoid:LoadAnimation(script:FindFirstChild('Anim'))

	anim.Looped = true
	task.wait()
	anim:Play()
	
	char.Name = 'DISPLAYCHAR'

end

I figured it out,
Right here I change the char not the clone.

1 Like

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