Error: LoadAnimation requires the Humanoid object (Gun.Humanoid) to be a descendant of the game object
local GunHumanoid = Gun:WaitForChild("Humanoid")
local Animation1 = Instance.new("Animation")
Animation1.Name = "IdleAnimation"
Animation1.AnimationId = "rbxassetid://6317956041"
local Track1 = GunHumanoid:LoadAnimation(Animation1)
