Gun Animation not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Animation on guns

  2. What is the issue? The gun doesn’t move despite the animation actually having it moving, I took it from How to animate Tool Parts (Guns, Knifes etc.) - #22 by HollowAurelius

  3. What solutions have you tried so far? Animating on server,Animating on client, Everything, The name and parent in the animation and in the actual player is the same

Heres the server script

game.ReplicatedStorage.Remotes.Weapons.Guns.ConnectM6D.OnServerEvent:Connect(function(plr,location)
	local gun  = game.ServerStorage.Storage:FindFirstChild(location):Clone()
	gun.Parent = plr.Character
	local char = plr.Character
	char.Torso.Motor6D.Part0 = char.Torso
	char.Torso.Motor6D.Part1 = gun.BodyAttach
	
	local tool = plr.Character:FindFirstChildOfClass("Tool")
	tool.Parent = plr.Character
	local cfg =tool:FindFirstChildOfClass("LocalScript").Config
	
	local Track =plr.Character.Humanoid.Animator:LoadAnimation( cfg.Idle)
	Track:Play()
end)

Animations in most cases should always be loaded and played on the client.

However, for your issue have you welded the gun correctly when they equip it?

I’ve found the solution, I just reupload the animation and it now works, I think its prob about different gun structure.