I was wounder if it is possible to disable the default idle animation when a tool is equipped, then enabling it when the tool is unequipped, because i have my own idle animation but the default still plays. I've tried many things, like changing the id to nothing when equipped and putting the default id back, but noting seems to work.
COMMUNITY QUESTION
Is It possible to disable the default idle animation?
1 answer
It is easy. Simply use the Humanoid:LoadAnimation() function.
local tool = script.Parent
local plr
tool.Equipped:Connect(function()
if plr == nil then
plr =game.Players:GetPlayerFromCharacter( tool.Parent)
end
local anim = Instance.new("Animation") -- If you already have an animation, type the directory here
anim.AnimationId = "rbxassetid://youridhere" -- Edit, i forgot to add it in
local loadedAnim = plr.Character.Humanoid:LoadAnimation(anim)
anim.Looped = true
anim:Play()
tool.Unequipped:Connect(function()
anim:Stop()
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Change the Animation Priority to Action.
add an animation to the tool thats idle and in the script in the tool script it to play the animation when you hold it