You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Animation on guns
-
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
-
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)