I use this script to start an animation on someone
AnimationId = "ID"
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://"..AnimationId
local k = Workspace.Dummy.Humanoid:LoadAnimation(Anim)
k:Play()
and this one to copy the animation
local Services = {PLS = game:GetService("Players")}
local Player = Services.PLS.LocalPlayer
local Mouse = Player:GetMouse()
local Psj = Player.Character
Mouse.Button1Down:Connect(function()
local A = Mouse.Target.Parent or Mouse.Target.Parent
if Services.PLS:GetPlayerFromCharacter(A) then
local Ani = A:FindFirstChild("Humanoid"):GetPlayingAnimationTracks()
local ANIL = Psj:WaitForChild("Humanoid"):LoadAnimation(Ani)
ANIL:Play()
ANIL.TimePosition = Ani.TimePosition
end
end)
someone could help me fix it

1 comment
LoadAnimation requires an Animation object.