Animation isn't loading properly in playtest

But what I get is this:

  • What solutions have you tried so far? (Have you searched for solutions through the Roblox Wiki yet?)
    I thought I messed up the animations so I uploaded them to Roblox again. Still same issue.

I’m using a local script inside the tool. My code is as follows:

local tool = script.Parent
local handle = tool:FindFirstChild("Handle")
local axeChop = Instance.new("Animation")
axeChop.AnimationId = "http://www.roblox.com/asset/?id=16725872628"
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Chop = ReplicatedStorage:WaitForChild("Chop")
local chop = false

local function onToolActivation()
	local char = tool.Parent
	local Humanoid = char:WaitForChild("Humanoid")
	local Animator = Humanoid:WaitForChild("Animator")
	local animationTrack = Animator:LoadAnimation(axeChop)
	animationTrack:Play()
end

Have I misunderstood how to do this and made a mistake somewhere? I did try a different animation I made over a year ago, and it worked just fine.

it’s because the priority of the default tool holding animation is greater than the priority of your swing animation. To change this you can either disable the default tool holding animation entirely or you can update the priority of your swing animation. You can change the priority of a animation track by using animationtrack.Priority = Enum.AnimationPriority

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.