How should I implement a custom walk animation when an item is equipped?
I also want to have a custom idle animation when the item is equipped, but I’m assuming the solutions are the same.
1 Like
Have you seen and tried this out?
Took me a while to figure this out, but onEquip is not a Event
However, Equipped is lol
local tool = script.Parent
tool.Equipped:Connect(function()
tool.Parent.Animate.walk.WalkAnim.AnimationId = "rbxassetid://[animationID]"
end)
Seems to be the same as this:
Couldn’t he just change the default animation IDs from the script like this?
Only downside is that OP has to do this for every animation that he wants to override. But it is accurate:
tool.Equipped:Connect(function()
game.Players.LocalPlayer.Character.Animate.idle.Animation1.AnimationId = "rbxassetid//your_id_here"
end)
tool.Unequipped:Connect(function()
game.Players.LocalPlayer.Character.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=1083445855" --default id
en…