Check if animation is playing

Quick and simple, How would I check if an animation is currently playing?

Use the boolean IsPlaying()

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

if humanoid:IsPlaying() then
    print("An animation is currently playing")
else
    print("No animation is playing")
end

Disclaimer: This code was partially or fully AI-generated from: https://chat.openai.com/chat

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.