Setting Player Sequence

I need my player to have the fast zombie model, but without the normal walking animations, so I’m setting the players model to the bare zombie model without the playeranims, and trying to manually do the animations myself with ent:SetSequence(). It isnt working. No errors, the model just doesnt play animations. I need to run the “Run” sequence for the “models/Zombie/Fast.mdl” model but I’m not getting anywhere. Heres the code I’m using, its in shared.lua;

function TestAnim(pl)
pl.AutomaticFrameAdvance = true
local sequence = pl:LookupSequence(“Run”)
concommand.Add(“testanim”, TestAnim)

I’ve tried a couple variations, with and without lines 2, 5 and 6. 7 is just for debugging. Thanks in advance :smile:

That’s not how it works.

Have a look at this:


I’m trying to figure out whats going on wrong, I pretty much just copied the code Azu posted, and now animations are working, the problem is that it doesnt play the jump animation unless I’m standing still, and if I jump while I’m moving it just idles.