Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HealthEdit = function()
- LocalPlayer,LocalCharacter,Mouse,Humanoid=game.Players.LocalPlayer, game.Players.LocalPlayer.Character, game.Players.LocalPlayer:GetMouse(), game.Players.LocalPlayer.Character.Humanoid
- Events,CurrentStance,CurrentHit,PlayersHit,Equipped,DoingAction,Damage,BlockHitDebounce={},{},{},{},false,false,false,false
- repeat wait() until Humanoid
- local DamageStunAnim = Humanoid:LoadAnimation(AnimationFolder.Miscellaneous.DamageStun)
- local Val=Instance.new("BoolValue", LocalCharacter)
- Val.Name = "IsBlocking"
- LocalCharacter:WaitForChild("Health"):Destroy()
- Humanoid.HealthChanged:connect(function(Health)
- if LocalCharacter.IsBlocking.Value == false and Health > 0 then
- if CurrentHit[1] then CurrentHit[1]:Stop() end
- if not DamageStunAnim.IsPlaying then
- Humanoid.WalkSpeed = 10
- DamageStunAnim:Play()
- wait(1)
- DoingAction = false
- DamageStunAnim:Stop()
- Humanoid.WalkSpeed = 16
- end
- end
- end)
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement