Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1.  
  2. local Interval = 0
  3. hook.Add("UpdateAnimation", "doing_some_anim", function( ply, velocity, maxseqgroundspeed )
  4.  
  5.     if CurTime() > Interval then
  6.        
  7.         local sID, sDur = ply:LookupSequence( "sit" )
  8.        
  9.         if ply:GetSequence() != sID then
  10.             ply:SetSequence( sID )
  11.         end
  12.        
  13.         if ply:GetSequence() == sID then
  14.             ply:ResetSequence( ply:GetSequence() )
  15.         end
  16.        
  17.         Interval = CurTime()+10
  18.     end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement