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

How do i change walking animation and idle animation for a sword or tool?

Asked by 3 years ago

So what I'm trying to do is make a idle anim and walking anim for a sword and it changes whenever you wield it, but im having trouble switching between when its idle or walking

my script so far

01local tool = script.Parent
02local Handle = tool:WaitForChild("Handle")
03 
04local Equip = tool:WaitForChild("Equip")
05local Unequip = tool:WaitForChild("Unequip")
06local Slash = tool:WaitForChild("Slash")
07 
08local Idle = script:WaitForChild("KatanaIdle")
09local otherAnim = script:WaitForChild("KatanaOther")
10 
11Equip.OnServerEvent:Connect(function(Player)
12    local Character = Player.Character
13    local Humanoid = Character:WaitForChild("Humanoid")
14 
15    local Animate = Character:WaitForChild("Animate")
View all 28 lines...

Answer this question