Hello, i have a script that clones the players avatar and puts it in workspace but how would i make an animation play? i did this but it dident work.
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()
the script is in StarterCharacterScripts and the animation is in the script, its a local script and no errors in the Output
Edit: I Got it