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

How to add Idle Aniimations to tools?

Asked by 6 years ago

Based on this video: https://www.youtube.com/watch?v=dRGEAethTGA The owner of it said that idle animation WILL NOT work, I am asking for someone to modify the script from the owner that can have the capability to do idle animations thanks

1 answer

Log in to vote
0
Answered by
mattscy 3725 Moderation Voter Community Moderator
6 years ago

Something like this could work in a script inside the tool:

local tool = script.Parent
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/Asset?ID=144884906" --replace with id
local track
tool.Equipped:Connect(function()
    track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
    track.Priority = Enum.AnimationPriority.Action
    track.Looped = true
    track:Play()
end)
tool.Unequipped:Connect(function()
    if track then
        track:Stop()
    end
end)
Ad

Answer this question