Help with a character clone what repeat player moves

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I wanna make character clone, what copy player moves(pickup a boxes, look, moving, and etc.)

  1. What is the issue?
    I just don’t understand how to make clone repeat my moves

  2. What solutions have you tried so far?

Im try to find answer on devforum but here is no, and im just don’t know how to make it(yeah, it stupid make clone based game and don’t know how to make clones…)

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

Here code what i tried to clone character

local CloneCore = {}

function CloneCore.Clone(Character, Position)
	--Cloning Character
	Character.Archivable = true
	
	local CharacterClone = Character:Clone()
	
	Character.Archivable = false
	
	local CHumanoid = CharacterClone.Humanoid
	local CHRP = CharacterClone.HumanoidRootPart
	
	
	--Clear tools
	for index, Child in pairs(CharacterClone:GetChildren()) do
		if Child:IsA('Tool') then
			Child:Destroy()
		end
	end
	
	--Clear forcefield
	for index, Child in pairs(CharacterClone:GetChildren()) do
		if Child:IsA('ForceField') then
			Child:Destroy()
		end
	end
	
	--Clear Nickname
	CHumanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
	
	--Add animate
	local AnimateScript = script.Animate:Clone()
	AnimateScript.Parent = CharacterClone
	
	--Moving and adding to workspace
	CHRP.CFrame = CFrame.new(Position)
	CharacterClone.Parent = workspace
end

return CloneCore
1 Like

Sorry but I’m not too sure what you mean. If you want to clone the character, then you’ve done it right so I’m not sure what the issue is.

1 Like

Look: Player moves right, clone too, player pickup a box, clone too, player jumps, clone too
I wanna do this

1 Like

That might be hard to do, have you tried just welding the player’s clone to the player and just imitating the animations. If you also want it to interact with the world, you can probably do that but you’ll have to make cancollide equal to false for most of it

1 Like

In order to for the player to control the character clone you will need to follow the steps:

  1. Transfer network ownership of the character clone to the player using BasePart | Roblox Creator Documentation on the humanoid root part of the character clone.

  2. Use a local script to control the clone’s humanoid based on input.

An example of the local script that controls character movement is this one made by ThanksRobama.

You will need to replace the humanoid of the script instead of the default local player character it will be the clone character. (You can insert a local script in a players player gui or use a OnClientEvent to listen for when the clone is made)

For the other criteria like player jumping you will need to listen when the player jumps you can use input began on the space bar key locally or the Humanoid | Roblox Creator Documentation event then you can enable the clone .Jump property to make the clone jump.

For the pick up box system, that’s an entirely different system best saved for a different topic. There are many ways to create one like click detectors, proximity prompt to activate the pick up so you best create one yourself first. Otherwise we would be creating the system for you.

3 Likes