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

Default animations making custom animations stop?

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

✓ Accepted answer

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

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.

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.

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.

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