I have made an animation where you pull out an axe it will do the animation. But it doesn't work?
There is no error in the output either
local player = game:GetService("Players").LocalPlayer local character = player.Character local animation =script.Parent:FindFirstChild("Animation") local Anim = character.Humanoid:LoadAnimation(animation) script.Parent.Equipped:Connect(function() Anim:Play() end)
Animation ID is set as well Animation was made in animation editor and is an Action
try implementing a local function such as:
local function equip()
then try:
AXE.Equipped:Connect(equip) -- insert name of axe to replace AXE Anim:Play()
or something along the lines
It might be because its trying to go at the same time as the tool equipt animation so try this also LocalPlayer and Local scripts don't really work with tools so maybe this will help
--regular script local player --we dont need this character variable local animation =script.Parent:FindFirstChild("Animation") local Anim script.Parent.Equipped:Connect(function() player = script.Parent.Parent Anim = player.Humanoid:LoadAnimation(animation) wait(2) --adjust the 2 to your liking, but don't let it go too low Anim:Play() end)
hope this helped!