Animation confusion :v

Hey guys, I wanna create an animation system type thing in a think function basically here’s what I got so far nothing much but yeah;
[lua]
function GM:Think()
for _,v in pairs(player.GetAll()) do
if !v:IsOnGround() then
v:SetAnimation(ACT_FLY)
end
end
end
[/lua]
This doesn’t work so that means there’s more to it I’m guessing? I’d appreciate any help.

It’s because the default animations are overriding yours. Set animations like in this file, override the hooks.

:love: I didn’t know about those hooks being used already, thanks!