Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why does my animation not play when i fire it ?

why does nothing happen

local anim = game.ReplicatedStorage.DCEU.Flash.Stop
local animator = player.Character.Humanoid
local stoptrack = animator:LoadAnimation(anim)
player.Character.Humanoid.WalkSpeed = 0
stoptrack.Priority = Enum.AnimationPriority.Action
stoptrack:Play()

thankyou in advance

5 comments

0

I assume it outputs no errors. Could it be because this animation is not yours? What I mean with that is that the animation is not in your inventory. Try playing the animation on an actual Roblox server instead of Studio.

0

Also, don't use Humanoid as the animator. Use Humanoid.Animator as the animator. Humanoid is deprecated for animations.

0

thankyou i will try this

0

hello thankyou for your response, i moved the animation into the charcter, however it still doesnt play when i fire it

0

use :Load to fire it

1 answer

thankyou to everyone who replied, i have fixed the issue, the animation i was using was broken , i just had to remake the animation

This discussion is preserved as it was. New answers, comments, and votes are closed.