Cant clone local player's character

Im guessing you guys now how sandevistan works.Im trying to make the ghost effect rn but i cant clone the character model.

Workspace.sozenss.Sandevistan:17: attempt to index nil with ‘Parent’


local speed = 1
local sandevistan = false
local trigger = Enum.KeyCode.E	
local UIS = game:GetService('UserInputService')


local Players = game:GetService('Players')
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

local function ghost()
	if not sandevistan then end
	if not character or not character.Parent then return end
	
	local ghost = character:Clone()
	ghost.Parent = workspace
end

UIS.InputBegan:Connect(function(key)
	if key.KeyCode == trigger then
		speed = .1
		ghost()
	end
end)

UIS.InputEnded:Connect(function(key)
	if key.KeyCode == trigger then
		speed = 1
	end
end)


the player character isn’t clonable AFAIK

1 Like

how can i clone the character then

You can use Humanoid Description in a server script. (I would clone a rig and then apply the Humanoid Description to the rig I just cloned and then I can parent it and move it wherever I want)

You need to set the model to archivable

1 Like

Wait so you can clone a character if it’s archivable?

why did they make it this way,i dont remember doing this before

1 Like

I’m honestly as confused as you are-

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