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

Slash Animation using AnimationController not playing the animation?

Asked by 2 years ago

So there was a problem where the slash animation doesn't work, The AnimationController Is Inside of the tool and the Animator Is stored In the AnimationController which the animator stores the SlashAnimation

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)
0
Question: Is that a local script or a server script? DevAwesomely 15 — 2y
0
I believe that AnimatonController needs to be a child of a Player's Character. DevAwesomely 15 — 2y
0
server script imnotaguest1121 362 — 2y

Answer this question