So basically, I've created a animation which moves the tool around a bit but when I put the animations with the same tool it doesn't operate like the animation I've created how do I fix that?
anim = humanoid:LoadAnimation(reloadanim) -- variable anim:Play()
player = game.Players.LocalPlayer
mouse = player:GetMouse()
animation = script:WaitForChild("Put name of the animation inserted into this here")
enabled = true
mouse.Button1Down:connect(function() if enabled then enabled = false
local animationTrack = player.Character.Humanoid:LoadAnimation(animation) animationTrack:Play() wait(3) enabled = true animation:Stop() end
end)
Put this script into a LocalScript..Then insert a animation inside. Make sure you exported your animation. Then copy the ID and paste that into 'Animation ID' in Properties.. Also, in the Script.. whatever you named the animation, put it inside the quotes^^^^ .. I had the same problem as you and this helped me. Also.. here's the video I watched to figure this out!
https://www.youtube.com/watch?v=aFJADlSyRrQ