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

Default animations making custom animations stop?

Asked by 6 years ago

Hello, I've never seen this before, but this animation is stopping whenever a default animations plays, how do I stop them from interfering? Thanks.

local plr = game.Players.LocalPlayer
local char = plr.Character
local mouse = plr:GetMouse()
local axeHead = script.Parent.Head
local axe = script.Parent
repeat wait() until char
animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://1411773594"
animTrack = char.Humanoid:LoadAnimation(animation)

axe.Equipped:Connect(function()
    axe.Activated:Connect(function()
        animTrack:Play()
        print("animation")
    end)
end)

axe.Unequipped:Connect(function()
    animTrack:Stop()
end)

4 answers

Log in to vote
0
Answered by 6 years ago

When you're creating the animation, in the animation editor go to edit<Set Priority<Action.

Selecting action will ensure your animation will override any other animation

Ad
Log in to vote
0
Answered by
AyeJude 41
6 years ago

If you are using the script called "Animate" make sure it is a local script and it is put in the folder call "StarterCharacterScripts", which is located in "StarterPlayer" folder.

Log in to vote
0
Answered by 6 years ago

Did you make sure that the Animations have the AnimationID correct when you open the chosen name of the animation? also, making sure that the script "Animate" is a local script would be a good idea.

Log in to vote
0
Answered by 6 years ago

Common mistake which I sometimes forget about too, making it over and over again.

Animations have different "priority" levels, the default is "Core", which will make the animation play normally but stops and is overridden when a default animation is activated.

What you want to set the priority to is "Action", which will override all default animations.

To set the animation's priority simply go into the "Priority" tab which is located in the "Edit" tab on the animation editor plugin.

Answer this question