Advertisement
netless_scripter

Dummy Hub! (DUMMY COUNTER ANIMATIONS)

Jul 22nd, 2024
2,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. --- Dummy Hub ---
  2.  
  3. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  4. local Window = Library.CreateLib("Dummy Hub", "Sentinel")
  5. local Tab = Window:NewTab("Weakest Dummy")
  6. local Section = Tab:NewSection("Weakest Dummy Moves")
  7. Section:NewButton("Dummy Counter (Dummy)", "Weakest Dummy's rare counter move.", function()
  8. local player = game.Players.LocalPlayer
  9. repeat wait() until player.Character.Humanoid
  10. local humanoid = player.Character.Humanoid
  11. local character = player.Character or player.CharacterAdded:Wait()
  12. local UserInputService = game:GetService("UserInputService")
  13.  
  14. local anim = Instance.new("Animation")
  15. anim.AnimationId = "rbxassetid://18440406788"
  16.  
  17. local playAnim = humanoid:LoadAnimation(anim)
  18. playAnim:Play()
  19. end)
  20. Section:NewButton("Dummy Counter (Victim) (kills you at end)", "Weakest Dummy's rare counter move. (Victim)", function()
  21. local player = game.Players.LocalPlayer
  22. repeat wait() until player.Character.Humanoid
  23. local humanoid = player.Character.Humanoid
  24. local character = player.Character or player.CharacterAdded:Wait()
  25. local UserInputService = game:GetService("UserInputService")
  26.  
  27. local anim = Instance.new("Animation")
  28. anim.AnimationId = "rbxassetid://18440398084"
  29.  
  30. local playAnim = humanoid:LoadAnimation(anim)
  31. playAnim:Play()
  32. wait(8)
  33. humanoid.Health = 0
  34. end)
  35. Section:NewButton("Dummy Counter (Dummy + Victim)", "Weakest Dummy's rare counter move. (Dummy + Victim)", function()
  36. local player = game.Players.LocalPlayer
  37. repeat wait() until player.Character.Humanoid
  38. local humanoid = player.Character.Humanoid
  39. local character = player.Character or player.CharacterAdded:Wait()
  40. local UserInputService = game:GetService("UserInputService")
  41. local mainAnimationId = "rbxassetid://18440398084"
  42. local pushBackAnimationId = "rbxassetid://18440406788"
  43.  
  44. local minDamage = 0
  45. local maxDamage = 0
  46. local pushBackDistance = 0
  47.  
  48. -- Function to play an animation
  49. local function playAnimation(animationId, humanoid)
  50. local animation = Instance.new("Animation")
  51. animation.AnimationId = animationId
  52. local animationTrack = humanoid:LoadAnimation(animation)
  53. animationTrack:Play()
  54. return animationTrack
  55. end
  56.  
  57. -- Function to play the push-back animation
  58. local function playPushBackAnimation(humanoid)
  59. local pushBackAnimation = Instance.new("Animation")
  60. pushBackAnimation.AnimationId = pushBackAnimationId
  61. local pushBackAnimationTrack = humanoid:LoadAnimation(pushBackAnimation)
  62. pushBackAnimationTrack:Play()
  63. end
  64.  
  65. local player = game.Players.LocalPlayer
  66. local character = player.Character or player.CharacterAdded:Wait()
  67. local humanoid = character:WaitForChild("Humanoid")
  68.  
  69. -- Check if there is a player in front
  70. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  71. local lookDirection = humanoidRootPart.CFrame.LookVector
  72. local raycastParams = RaycastParams.new()
  73. raycastParams.FilterDescendantsInstances = {character}
  74. raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
  75. local raycastResult = workspace:Raycast(humanoidRootPart.Position, lookDirection * 20, raycastParams)
  76.  
  77. if raycastResult and raycastResult.Instance and raycastResult.Instance.Parent:FindFirstChild("Humanoid") then
  78. -- There is a player in front, play main animation
  79. local hitCharacter = raycastResult.Instance.Parent
  80. local hitHumanoidRootPart = hitCharacter:FindFirstChild("HumanoidRootPart")
  81. local hitHumanoid = hitCharacter:FindFirstChild("Humanoid")
  82.  
  83. if hitHumanoidRootPart and hitHumanoid then
  84. -- Play the main animation immediately
  85. wait(0.5)
  86. local mainAnimationTrack = playAnimation(mainAnimationId, humanoid)
  87.  
  88. -- Apply damage and push back after the delay
  89. local damage = math.random(minDamage, maxDamage)
  90. hitHumanoid:TakeDamage(damage)
  91. local pushBackDirection = (hitHumanoidRootPart.Position - humanoidRootPart.Position).unit
  92. local pushBackForce = pushBackDirection * pushBackDistance
  93. hitHumanoidRootPart.Velocity = pushBackForce
  94. playPushBackAnimation(hitHumanoid) -- Play push-back animation
  95. print("Dealt " .. damage .. " damage, pushed back player, and played push-back animation on player: " .. hitCharacter.Name)
  96. end
  97. else
  98. -- No player found in front, just play main animation
  99. print("No player found in front.")
  100. wait(0.5)
  101. playAnimation(mainAnimationId, humanoid)
  102. end
  103. wait(8)
  104. humanoid.Health = 0
  105. end)
  106. Section:NewButton("Dummy Counter Opposite (Dummy + Victim)", "Weakest Dummy's rare counter move. (Dummy + Victim)", function()
  107. local player = game.Players.LocalPlayer
  108. repeat wait() until player.Character.Humanoid
  109. local humanoid = player.Character.Humanoid
  110. local character = player.Character or player.CharacterAdded:Wait()
  111. local UserInputService = game:GetService("UserInputService")
  112. local mainAnimationId = "rbxassetid://18440406788"
  113. local pushBackAnimationId = "rbxassetid://18440398084"
  114.  
  115. local minDamage = 0
  116. local maxDamage = 0
  117. local pushBackDistance = 0
  118.  
  119. -- Function to play an animation
  120. local function playAnimation(animationId, humanoid)
  121. local animation = Instance.new("Animation")
  122. animation.AnimationId = animationId
  123. local animationTrack = humanoid:LoadAnimation(animation)
  124. animationTrack:Play()
  125. return animationTrack
  126. end
  127.  
  128. -- Function to play the push-back animation
  129. local function playPushBackAnimation(humanoid)
  130. local pushBackAnimation = Instance.new("Animation")
  131. pushBackAnimation.AnimationId = pushBackAnimationId
  132. local pushBackAnimationTrack = humanoid:LoadAnimation(pushBackAnimation)
  133. pushBackAnimationTrack:Play()
  134. end
  135.  
  136. local player = game.Players.LocalPlayer
  137. local character = player.Character or player.CharacterAdded:Wait()
  138. local humanoid = character:WaitForChild("Humanoid")
  139.  
  140. -- Check if there is a player in front
  141. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  142. local lookDirection = humanoidRootPart.CFrame.LookVector
  143. local raycastParams = RaycastParams.new()
  144. raycastParams.FilterDescendantsInstances = {character}
  145. raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
  146. local raycastResult = workspace:Raycast(humanoidRootPart.Position, lookDirection * 20, raycastParams)
  147.  
  148. if raycastResult and raycastResult.Instance and raycastResult.Instance.Parent:FindFirstChild("Humanoid") then
  149. -- There is a player in front, play main animation
  150. local hitCharacter = raycastResult.Instance.Parent
  151. local hitHumanoidRootPart = hitCharacter:FindFirstChild("HumanoidRootPart")
  152. local hitHumanoid = hitCharacter:FindFirstChild("Humanoid")
  153.  
  154. if hitHumanoidRootPart and hitHumanoid then
  155. -- Play the main animation immediately
  156. wait(0.5)
  157. local mainAnimationTrack = playAnimation(mainAnimationId, humanoid)
  158.  
  159. -- Apply damage and push back after the delay
  160. local damage = math.random(minDamage, maxDamage)
  161. hitHumanoid:TakeDamage(damage)
  162. local pushBackDirection = (hitHumanoidRootPart.Position - humanoidRootPart.Position).unit
  163. local pushBackForce = pushBackDirection * pushBackDistance
  164. hitHumanoidRootPart.Velocity = pushBackForce
  165. playPushBackAnimation(hitHumanoid) -- Play push-back animation
  166. print("Dealt " .. damage .. " damage, pushed back player, and played push-back animation on player: " .. hitCharacter.Name)
  167. end
  168. else
  169. -- No player found in front, just play main animation
  170. print("No player found in front.")
  171. wait(0.5)
  172. playAnimation(mainAnimationId, humanoid)
  173. end
  174. end)
  175. local Tab = Window:NewTab("Info")
  176. local Section = Tab:NewSection("Information")
  177. Section:NewButton("Script made by me, a.k.a NetlessKJ. (ryanas.)", "i made this lololol", function()
  178. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement