#▶ Property "Animator.EvaluationThrottled" is not currently enabled. (x7)

8 messages · Page 1 of 1 (latest)

pearl umbra
#

Hello, today I presented this error in one of my scripts when executing an animation, the error is this: ▶ Property "Animator.EvaluationThrottled" is not currently enabled. (x7)

``local npc = script.Parent
local danioAtaque = 2

local humanid = npc.Humanoid
local GolpeAnim = script.Animation
local GolpeAnimTrack = humanid.Animator:LoadAnimation(GolpeAnim)

local VelocidadAtaque = 2

while wait(VelocidadAtaque) do

for _, npc in pairs(game.Workspace:GetChildren()) do

    local si, no = pcall(function()

        if npc:IsA("Model") and npc.Atacable.Value == 1 then


            local humanoid = npc:FindFirstChild("Humanoid")
            print(npc, humanoid)
            if humanoid then

                GolpeAnimTrack:Play()
                wait(0.4)
                humanoid.Health = humanoid.Health - danioAtaque

            end


        end

    end)

    if si then

        print("funciono :D")

    end    

end

end
``

pearl umbra
#

help

finite nacelle
#

try

#

this

#
local npc = script.Parent
local danioAtaque = 2

local humanid = npc.Humanoid
local GolpeAnim = script.Animation
local VelocidadAtaque = 2

while wait(VelocidadAtaque) do
    for _, npc in pairs(game.Workspace:GetChildren()) do
        local si, no = pcall(function()
            if npc:IsA("Model") and npc.Atacable.Value == 1 then
                local humanoid = npc:FindFirstChild("Humanoid")
                print(npc, humanoid)
                if humanoid and humanoid.Animator then
                    local GolpeAnimTrack = humanoid.Animator:LoadAnimation(GolpeAnim)
                    GolpeAnimTrack:Play()
                    wait(0.4)
                    humanoid.Health = humanoid.Health - danioAtaque
                end
            end
        end)
        if si then
            print("funciono :D")
        end    
    end
end
pearl umbra
#

wait, it seems that I solved it, what caused the error was "print(humanoid)"

#

thank you very much for your help