Hello I am seeking for help! I am trying to make a button animation that plays a animation,its priority is action.When I press it the animation works but it freeze's into place,what should I add to the script to make the animation be turned off when clicking it twice?
Here is the script:
local Player = game.Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:wait() local humanoid = Character:WaitForChild("Humanoid") local anim = Instance.new("Animation", humanoid)
anim.AnimationId = "http://www.roblox.com/asset/?id=ID number" --the animation id
script.Parent.MouseButton1Click:Connect(function(key) local animTrack = humanoid:LoadAnimation(anim) animTrack:Play() end)
If you can help me I would be really grateful

1 comment
Any errors on the output? and also use the code block so it can be more understandable