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

My animations are failing to load and how do I fix it? [closed]

Asked by 4 years ago

Yes, i do own the animation and I am not using team create. This is the code that I am using. Thank You! local Animations = { Charge = { Animation = Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Charge")), Duration = 1.5, }, Idle ={ Animation = Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Idle")), }, ChargeHold ={ Animation = Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("ChargeHold")), }, Stab1 ={ Animation = Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Stab1")), Duration = 0.6, }, Stab2 ={ Animation = Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Stab2")), Duration = 0.6 }, Equip ={ Animation = Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Equip")), Duration = .5, }, EquipSlow ={ Animation = Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("EquipSlow")), Duration = 1, }, }

Tool.Equipped:Connect(function() warn("Equipped") Equipred = true PlayingAnimation = Animations.Equip PlayingAnimation.Animation:Play() StartTick = tick() repeat wait() until (tick() - StartTick) >= PlayingAnimation.Duration PlayingAnimation.Animation:Stop() PlayingAnimation = Animations.Idle PlayingAnimation.Animation:Play() CanUse = true warn("AfterEquipped") end)

Tool.Activated:Connect(function() if Equipred then if CanUse == true then Activated = true ActiveTick = tick() PlayingAnimation.Animation:Stop() PlayingAnimation = Animations.Charge PlayingAnimation.Animation:Play() repeat wait() until (tick() - ActiveTick) >= .25 or Activated == false if Activated and PlayingAnimation == Animations.Charge and CanUse then PlayingAnimation.Animation:Stop() PlayingAnimation = Animations.ChargeHold PlayingAnimation.Animation:Play() end end end end)

0
Paste your code inside a code block. It's unreadable hellmatic 1523 — 4y

Closed as Not Constructive by hellmatic and killerbrenden

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?