Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. local events = game.ReplicatedStorage.AnimationManager.LocalScriptAPI
  2.  
  3. local animator = require(game.ReplicatedStorage.AnimationManager)
  4.  
  5. function events.PlayAnimation.OnServerInvoke(player, KeyframeSequence, character)
  6. return animator.PlayAnimation(KeyframeSequence, character)
  7. end
  8.  
  9. events.StopAnimation.OnServerEvent:Connect(function(player, AsamiAnimation)
  10. animator.StopAnimation(AsamiAnimation)
  11. end)
  12.  
  13. events.PauseAnimation.OnServerEvent:Connect(function(player, AsamiAnimation)
  14. animator.PauseAnimation(AsamiAnimation)
  15. end)
  16.  
  17. events.ResumeAnimation.OnServerEvent:Connect(function(player, AsamiAnimation)
  18. animator.ResumeAnimation(AsamiAnimation)
  19. end)
  20.  
  21. events.ChangeAnimationSpeed.OnServerEvent:Connect(function(player, AsamiAnimation, speed)
  22. animator.ChangeAnimationSpeed(AsamiAnimation, speed)
  23. end)
  24.  
  25. events.StopAnimationOnHumanoid.OnServerEvent:Connect(function(player, humanoid)
  26. animator.StopAnimationOnHumanoid(humanoid)
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement