Help clone a players avatar to workspace

Put the animation inside of the character.

inside of the cloned player or the real player? the animation is in the player but its inside of a script

The way you load an animation is like this:

local Anim = Player.Character:WaitForChild("Humanoid"):LoadAnimation(ANIMATIONLOCATION)

Oh wait you already did that, my bad

where would i put that in? the script that plays the animation or trys to i mean or the one who clones it

Up to you. It needs to obviously be in a localscript.

You’ll need to find a path to the animation and a path to the humanoid of that character.

And then to play it you’d do Anim:Play()

Is this a localscript? I am assuming it is

yeah it is, it enables it self wwhen cloned inside of the clonedplayer and trys to play the animation but it doesnt play, the animation id is under the script

Try this?

--VARIABLES
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Humanoid:LoadAnimation(script:WaitForChild("Animation"))

--LOADER
wait(8)
Animation:Play()

Wait, my bad. the character is obviously the parent

nothing plays, and this will play an animation on the cloned player in workspace right?

this is the script that clones the avatar into work space.


wait(4)

local Player = script.Parent

Player.Archivable = true 
local PlayerClone = Player:Clone()

local ScriptClone = script.AnimationPlayer
local ScriptCloneTO = ScriptClone:Clone()

ScriptCloneTO.Parent = PlayerClone
PlayerClone.Parent = game.Workspace
PlayerClone.HumanoidRootPart.CFrame = game.Workspace.Dummy.HumanoidRootPart.CFrame
PlayerClone:WaitForChild("AnimationPlayer").Disabled = false

it also clones a script that has a animation inside of it and it trys to play it, its disabled but when cloned into the cloned avatar in workspace it enables but no animation plays, this is the script

local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Humanoid:LoadAnimation(script:WaitForChild("Animation"))

--LOADER
wait(8)
Animation:Play()
1 Like

i made the animation play in 1 script, do u know why this doesnt work? it prints animation but doesnt play.

wait(4)

local Player = script.Parent

Player.Archivable = true 
local PlayerClone = Player:Clone()


PlayerClone:WaitForChild("Health"):Destroy()
PlayerClone:WaitForChild("Animate"):Destroy()
PlayerClone.Parent = game.Workspace
PlayerClone.HumanoidRootPart.CFrame = game.Workspace.Dummy.HumanoidRootPart.CFrame
PlayerClone.HumanoidRootPart.Anchored = true


local Humanoid = PlayerClone:WaitForChild("Humanoid")
local Animation = Humanoid:LoadAnimation(script:WaitForChild("CutSceneAnim"))

wait(2)
print("Played")
Animation:Play()

Edit: I got it