Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. HealthEdit = function()
  2. LocalPlayer,LocalCharacter,Mouse,Humanoid=game.Players.LocalPlayer, game.Players.LocalPlayer.Character, game.Players.LocalPlayer:GetMouse(), game.Players.LocalPlayer.Character.Humanoid
  3. Events,CurrentStance,CurrentHit,PlayersHit,Equipped,DoingAction,Damage,BlockHitDebounce={},{},{},{},false,false,false,false
  4. repeat wait() until Humanoid
  5. local DamageStunAnim = Humanoid:LoadAnimation(AnimationFolder.Miscellaneous.DamageStun)
  6. local Val=Instance.new("BoolValue", LocalCharacter)
  7. Val.Name = "IsBlocking"
  8. LocalCharacter:WaitForChild("Health"):Destroy()
  9. Humanoid.HealthChanged:connect(function(Health)
  10. if LocalCharacter.IsBlocking.Value == false and Health > 0 then
  11. if CurrentHit[1] then CurrentHit[1]:Stop() end
  12. if not DamageStunAnim.IsPlaying then
  13. Humanoid.WalkSpeed = 10
  14. DamageStunAnim:Play()
  15. wait(1)
  16. DoingAction = false
  17. DamageStunAnim:Stop()
  18. Humanoid.WalkSpeed = 16
  19. end
  20. end
  21. end)
  22. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement