On my game, the NPC has an animation that loops and I want to change that animation to a different one. The problem: He just does the same animation and it doesn't change. Script to change animation (Normal script):
script.Parent.MouseButton1Click:Connect(function()
local animation = workspace.Gino.Gino.Script6.Animation
local humanoid = workspace.Gino:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:Play()
workspace.Gino.Gino.Script.Animation.AnimationId = "http://www.roblox.com/asset/?id=5184007241"
end)
I even did "rbxassetid://", but it doesn't work. Thank you!

2 comments
Changing the Asset ID won't affect the running AnimationTrack..
@Feahren, oh... thank you!