Load animation require humanoid object

Pessoal estive tendo esse erro com animação, eu não sei oque é e como posso resolver.
Código:

local Tween = game:GetService("TweenService")
local Info = TweenInfo.new(.5)
local c1,c2 = Tween:Create(workspace.CurrentCamera,Info,{FieldOfView = 50}),Tween:Create(workspace.CurrentCamera,Info,{FieldOfView = 70})
local Player = game.Players.LocalPlayer
local Character = Player.CharacterAdded:Wait()

local AnimFolder = game.ReplicatedFirst:FindFirstChild(script.Parent.Name)
local IdleAnim = AnimFolder:FindFirstChild('Idle')
local MiraObj = AnimFolder:FindFirstChild('Mira')
local TiroAnim = AnimFolder:FindFirstChild('Tiro')
local ReloadAnim = AnimFolder:FindFirstChild('Reload')

repeat wait() until Player.Character:WaitForChild('Humanoid')
local Humanoid = Player.Character:WaitForChild('Humanoid')
local PodeAtirar,PodeRecarregar = false,false
local Municao = script.Parent.RealAmmo.Value
local Mira = false
local PodeMirar = true
local Uis = game:GetService("UserInputService")

local Idle = Humanoid:LoadAnimation(IdleAnim)
local MiraAnim = Humanoid:LoadAnimation(MiraObj)
local Tiro = Humanoid:LoadAnimation(TiroAnim)
local Reload = Humanoid:LoadAnimation(ReloadAnim)

script.Parent.Equipped:Connect(function(mouse)
	Uis.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
	Idle:Play()
	Humanoid = Player.Character.Humanoid
	mouse.Button1Down:Connect(function()
		if Municao > 0  then
			if PodeAtirar == true and Humanoid.Health > 0 then
				PodeAtirar = false
				PodeRecarregar = true
				Tiro:Play()
				Municao = Municao - 1
				game.ReplicatedStorage.Revolver:FireServer(script.Parent.ShotPart.Position,mouse.Hit.p)
				c2:Play()
				MiraAnim:Stop()
				print('Atirou')
			end
		end
	end)
	mouse.KeyDown:Connect(function(key)
		key = key:lower()
		if key == 'r' then
			if PodeRecarregar == true then
				print('Recarregou')
				PodeMirar = false
				PodeRecarregar = false
				Reload:Play()
				wait(2)
				Municao = 5
				game.ReplicatedStorage.RevolverReload:FireServer()
				print('Terminou')
				PodeMirar = true
			end
		end
	end)
	mouse.KeyDown:Connect(function(key)
		key = key:lower()
		if key == 'q' then
			if PodeMirar == true then
				if Municao > 0 then
					PodeAtirar = true
					MiraAnim:Play()
					c1:Play()
				end
			end
		end
	end)
	mouse.KeyUp:Connect(function(key)
		key = key:lower()
		if key == 'q' then
			PodeAtirar = false
			MiraAnim:Stop()
			c2:Play()
		end
	end)
end)
script.Parent.Unequipped:Connect(function()
	MiraAnim:Stop()
	Tiro:Stop()
	Reload:Stop()
	Idle:Stop()
end)

image
Quem poder me ajudar ficarei muito grato.

1 curtida