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

Tool not playing the slash animation?

Asked by 2 years ago

So I made a script (A normal one, or server side) Inside of a tool that also has a AnimationController that has the animator Inside It and the slash animation Inside of animator but It appears to not work

script:

local Tool = script.Parent
local AnimationController = Tool.AnimationController
local Animator = AnimationController.Animator
local Animation = Animator.SlashAnim
local AnimationTrack

Tool.Activated:Connect(function()
    AnimationTrack = AnimationController.Animator:LoadAnimation(Animation)
    AnimationTrack:Play()
end)

Answer this question