Animation keeps stopping

when I play an animation it stops instantly

script.Parent.MouseButton1Click:Connect(function()

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id="..script.Parent.Parent.Animation.Value
local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()

local animationTrack = character.Humanoid:LoadAnimation(animation)
animationTrack:Play()
animationTrack.Looped = true

print("playing "..script.Parent.Parent.Animation.Value)

end)

robloxapp-20231118-1434178.wmv (864.8 KB)

1 Like

Can you provide a video?

(Char limit)

are you sure the animation id actually exist?

maybe

local animationTrack = character:WaitForChild("Humanoid"):LoadAnimation(animation)

or if it doesnt work try putting

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id="..script.Parent.Parent.Animation.Value

before the click event thing

can you show what its supposed to look like in the anim editor?

What do you mean, and reply to the message please, because i dont get a notification meaning it maybe will take days for me to respond.

when you animated the dance/emote, can you show us what it looked like in the plugin you edited the emote in

https://gyazo.com/06e17188d6a1c288c643ca7619f6bffa
like that