Animation not working correctly?!

press the “loop button” first of all then make that the animation (set it to idle too)
image
also is this team create or are you creating it alone?
if its team create then did you create the animation?
also the method you use is deprecated so use this as seen here

local player = game.Players.LocalPlayer

local animation = game.Workspace:WaitForChild(player.Name):WaitForChild("SwordAnimations").swordIdle
local humanoid = game.Workspace:WaitForChild(player.Name):WaitForChild("Humanoid")
local tool = script.Parent
local track = humanoid:FindFirstChildOfClass("Animator"):LoadAnimation(animation)
tool.Equipped:Connect(function()
	track:Play()
end)
13 Likes