Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I animate a tools handle?

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()	

3 comments

0

Could you clarify your problem?

0

What do you mean?

0

I answered below btw.

1 answer

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

2 comments

0

Sorry..It cut off for some reason

0

sorry, but this wasn't what I was looking for.

This discussion is preserved as it was. New answers, comments, and votes are closed.