-
What are you attempting to achieve? (Keep it simple and clear)
I’m trying to animate chopping with an axe. -
What is the issue? (Keep it simple and clear - Include screenshots/videos/GIFs if possible)
I animated this:
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.