if game.Workspace.Animations.HandsUp.IsPlaying == true then
print("Playing")
end
It says IsPlaying ain’t a valid member of Workspace.Animations.HandsUp
By the way Animations is a folder and HandsUp is a animation object.
if game.Workspace.Animations.HandsUp.IsPlaying == true then
print("Playing")
end
It says IsPlaying ain’t a valid member of Workspace.Animations.HandsUp
By the way Animations is a folder and HandsUp is a animation object.
Can you try
if workspace.Animations.HandsUp.IsPlaying then
print("Playing")
end
Idk if this will work because im new to scripting but ill try my best to help
Removing the “== true” doesn’t actually change anything, it just looks cleaner.
I need more information, please.
It’s because .IsPlaying isn’t a valid property of an Animation.
It’s only a property of an AnimationTrack: AnimationTrack
IsPlaying is a property of an AnimationTrack, not an Animation
You gotta create the animation via :LoadAnimation
on a Humanoid or AnimationController and then save that to a variable.
local Model = workspace.Model -- your rig
local AnimationId = "rbxassetid://00000" -- animation asset id
local AnimObject = Instance.new("Animation", Model) -- create Animation inside the rig, or anywhere else (change Model)
AnimObject.AnimationId = AnimationId -- set the Animation's ID to the one you chose before
local Track = Model.Humanoid:LoadAnimation(AnimObject) -- load the animation, this is where the IsPlaying property exists
if Track.IsPlaying == true then -- if the animation is playing
print("it's playing")
end
I didn’t test this code, if it doesn’t work just use the general ideas inside it