Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local events = game.ReplicatedStorage.AnimationManager.LocalScriptAPI
- local animator = require(game.ReplicatedStorage.AnimationManager)
- function events.PlayAnimation.OnServerInvoke(player, KeyframeSequence, character)
- return animator.PlayAnimation(KeyframeSequence, character)
- end
- events.StopAnimation.OnServerEvent:Connect(function(player, AsamiAnimation)
- animator.StopAnimation(AsamiAnimation)
- end)
- events.PauseAnimation.OnServerEvent:Connect(function(player, AsamiAnimation)
- animator.PauseAnimation(AsamiAnimation)
- end)
- events.ResumeAnimation.OnServerEvent:Connect(function(player, AsamiAnimation)
- animator.ResumeAnimation(AsamiAnimation)
- end)
- events.ChangeAnimationSpeed.OnServerEvent:Connect(function(player, AsamiAnimation, speed)
- animator.ChangeAnimationSpeed(AsamiAnimation, speed)
- end)
- events.StopAnimationOnHumanoid.OnServerEvent:Connect(function(player, humanoid)
- animator.StopAnimationOnHumanoid(humanoid)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement