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

How to make different walk animations for each tool?

Asked by 2 years ago
Edited 2 years ago

In my game I have an axe which I want a specific walking animation to but I can't get it to work properly. I have google quite a bit and I tried to change the default walk animation when holding the tool with this script. It's a local script inside the tool. There are no errors, and I have put print to see where the script stops working but it works fine. It just doesn't change the walk animation and it's still the default one. If anyone could help me I would really appreciate it!

local tool = script.Parent
local character = script.Parent
local animation=Instance.new("Animation",character)


tool.Equipped:Connect(function()
    game.Players.LocalPlayer.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=7447946659"
end)

Update: Nvm I should have changed the running animation not walking animation.

Update: Now to looks weird and doesn't look like it does on the dummy, if anybody has a clue on why it looks weird I would really appreciate it.

Answer this question