My Animation it's Giltch how to fix

Example Animation
image

Result


Please Help

Script / Client

Tool.Equipped:Connect(function()
	local PlayerCharacter = LocalPlayer.Character
	local PlayerHumanoid:Humanoid = PlayerCharacter:WaitForChild("Humanoid")

	local Equip_Animation = Instance.new("Animation",PlayerHumanoid)
	Equip_Animation.Name = "ItemEquipped_Anim"
	Equip_Animation.AnimationId = "rbxassetid://16130636925"

	local LoadEquipped_Anim = PlayerHumanoid:LoadAnimation(Equip_Animation)
	LoadEquipped_Anim:Play()

	Tool.Unequipped:Connect(function()
		LoadEquipped_Anim:Stop()
		Equip_Animation:Destroy()
	end)
end)

Hello there!

The potential issue with your code might be that you haven’t set the animation priority.

Tool.Equipped:Connect(function()
    local PlayerCharacter = LocalPlayer.Character
    local PlayerHumanoid:Humanoid = PlayerCharacter:WaitForChild("Humanoid")

    local Equip_Animation = Instance.new("Animation", PlayerHumanoid)
    Equip_Animation.Name = "ItemEquipped_Anim"
    Equip_Animation.AnimationId = "rbxassetid://16130636925"
    Equip_Animation.Priority = Enum.AnimationPriority.Action4 -- Set your preferred priority here

    local LoadEquipped_Anim = PlayerHumanoid:LoadAnimation(Equip_Animation)
    LoadEquipped_Anim:Play()

    Tool.Unequipped:Connect(function()
        LoadEquipped_Anim:Stop()
        Equip_Animation:Destroy()
    end)
end)

I added a line to set the animation priority. Give it a try, and if it doesn’t resolve the issue, let me know, and we can figure it out together!