Hey there,
When i join my game, the roblox animations are broken and i only see my character moving, but the legs and arms are not animated. I believe this is because i have a gun and when you hold this gun it plays a holding animation that only gets destroyed once the tool is unequipped, the code for the tool animation can be found here
local player = game.Players.LocalPlayer
local tool = player.Backpack.Sniper
local humanoid1 = script.Parent:FindFirstChild("Humanoid")
local humanoid = Instance.new("Animator", humanoid1)
local anim = humanoid:LoadAnimation(script:WaitForChild("Animation"))
tool.Equipped:Connect(function()
local md =Instance.new("Motor6D")
print("weld made")
md.Parent = player.Character.RightHand
md.Name = "Motor6D"
md.Part0 = player.Character.RightHand
md.Part1 = tool.Handle
anim:Stop()
anim:Play()
tool.Unequipped:Connect(function()
anim:Stop()
anim:Destroy()
md:Destroy()
end)
end)
I have no errors in the output and i will answer all questions, thank you for reading!