Animation's not playing..?


game.ReplicatedStorage.Remotes.Grimoire.OnServerEvent:Connect(function(Player)
    local Character = Player.Character or Player.CharacterAdded:Wait()
    local equiptVal = Character.Values.Book
    if Player.Stats.Attribute == 'N/A' then return end
    if equiptVal.Value == false then
        equiptVal.Value = true
        local belt
        for _,v in pairs(Character.Book.Light:GetChildren()) do
            belt = v
        end
        local controller = Character.Book.Light.AnimationController
        for _,v in pairs(controller:GetPlayingAnimationTracks()) do
            v:Stop()
        end
        local Idle = controller:LoadAnimation(game.ReplicatedStorage.IdleBook)
        Idle:Play(.5);
    else
        equiptVal.Value = false
        local belt
        for _,v in pairs(Character.Book.Light:GetChildren()) do
            belt = v
        end
        local controller = Character.Book.Light.AnimationController
        for _,v in pairs(controller:GetPlayingAnimationTracks()) do
            v:Stop()
        end

        local bookOpen = controller:LoadAnimation(game.ReplicatedStorage.BookEquip)
        bookOpen:Play(.5)
        bookOpen:AdjustSpeed(2)
        wait(1.33)
    end

What’s wrong with my script?

It’s not erroring, or anything.
This is really irritating.

did you check if the animation is playing but not showing??

AnimationTrack.Play has an optional parameter included for speed. You don’t need to use AnimationTrack.AdjustSpeed right after playing it.

To make sure the animation is playing, test to see if the code is actually running by adding in print statements and make sure it prints.

You should perform some debugging on your own end first so you can let us know where exactly the script stops working as expected.