Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I make the IdleAnimation run with my tool equipped?

Asked by 10 years ago

After the EquipAnimation is over, the arm holding the tool goes back to holding the tool the default way instead of running my Idle script, but the other arm is affected by the animation. Any way I can make the animation run on both arms even though the tool is equipped? (Yes, I have made the animation work for both arms)

01function equippistol()
02    humanoid = tool.Parent:FindFirstChild("Humanoid")
03    if humanoid then
04        local anim = tool:FindFirstChild("IdleAnim")
05        if anim and humanoid then
06            if loadedidleanim then
07                loadedidleanim:Stop()
08            end
09            loadedidleanim = humanoid:LoadAnimation(anim)
10            if loadedidleanim then
11                loadedidleanim:Play()
12            end
13        end
14        local anim = tool:FindFirstChild("EquipAnim")
15        if anim and humanoid then
View all 35 lines...

Thank you for any help!

1 answer

Log in to vote
1
Answered by 10 years ago

Equipped arm is on right arm, check it, the left arm is probably affected, so you should change idleanim and remove left arm's animation, and make sure the pistol tool has IdleAnim of your Anim ID.

Ad

Answer this question