Advertisement
ILovePotato

Swift sweep with sound

Jan 25th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local Humanoid = p.Character:WaitForChild("Humanoid")
  3.  
  4. local AnimAnim = Instance.new("Animation")
  5. AnimAnim.AnimationId = "rbxassetid://16944345619"
  6. local Anim = Humanoid:LoadAnimation(AnimAnim)
  7. AnimAnim.AnimationId = "rbxassetid://0" -- Reset animation ID
  8. Anim:Play()
  9.  
  10. -- Create and play a sound in the workspace
  11. local sound = Instance.new("Sound")
  12. sound.SoundId = "rbxassetid://16944636115" -- Replace <SoundID> with the actual sound ID
  13. sound.Parent = game.Workspace
  14. sound:Play()
  15.  
  16. -- Destroy the sound after it finishes playing (non-looping)
  17. sound.Ended:Connect(function()
  18. sound:Destroy()
  19. end)
  20.  
  21.  
  22. wait(0.3)
  23.  
  24.  
  25. local boom1 = game.ReplicatedStorage.Resources.KJEffects["LegSweepHit"].Hit:Clone()
  26. boom1.Parent = game.Players.LocalPlayer.Character["Torso"]
  27. for _, child in ipairs(boom1:GetChildren()) do
  28. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  29. child:Emit(5) -- Emit 20 particles
  30. end
  31. end
  32. local boom1 = game.ReplicatedStorage.Resources.KJEffects["LegSweepHit"].Hit:Clone()
  33. boom1.Parent = game.Players.LocalPlayer.Character["Torso"]
  34. for _, child in ipairs(boom1:GetChildren()) do
  35. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  36. child:Emit(5) -- Emit 20 particles
  37. end
  38. end
  39. local boom1 = game.ReplicatedStorage.Resources.KJEffects["LegSweepHit"].Hit:Clone()
  40. boom1.Parent = game.Players.LocalPlayer.Character["Torso"]
  41. for _, child in ipairs(boom1:GetChildren()) do
  42. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  43. child:Emit(5) -- Emit 20 particles
  44. end
  45. end
  46. local hit1 = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  47. hit1.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  48. for _, child in ipairs(hit1:GetChildren()) do
  49. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  50. child:Emit(1) -- Emit 20 particles
  51. end
  52. end
  53. local hit1 = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  54. hit1.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  55. for _, child in ipairs(hit1:GetChildren()) do
  56. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  57. child:Emit(1) -- Emit 20 particles
  58. end
  59. end
  60.  
  61. local hit1 = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  62. hit1.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  63. for _, child in ipairs(hit1:GetChildren()) do
  64. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  65. child:Emit(1) -- Emit 20 particles
  66. end
  67. end
  68.  
  69.  
  70. wait(0.2)
  71.  
  72.  
  73. local p = game.Players.LocalPlayer
  74. local Humanoid = p.Character:WaitForChild("Humanoid")
  75.  
  76. local AnimAnim = Instance.new("Animation")
  77. AnimAnim.AnimationId = "rbxassetid://16944345619"
  78. local Anim = Humanoid:LoadAnimation(AnimAnim)
  79. AnimAnim.AnimationId = "rbxassetid://0" -- Reset animation ID
  80. Anim:Play()
  81.  
  82.  
  83. wait(0.2)
  84.  
  85. local boom1 = game.ReplicatedStorage.Resources.KJEffects["LegSweepHit"].Hit:Clone()
  86. boom1.Parent = game.Players.LocalPlayer.Character["Torso"]
  87. for _, child in ipairs(boom1:GetChildren()) do
  88. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  89. child:Emit(8) -- Emit 20 particles
  90. end
  91. end
  92. local boom1 = game.ReplicatedStorage.Resources.KJEffects["LegSweepHit"].Hit:Clone()
  93. boom1.Parent = game.Players.LocalPlayer.Character["Torso"]
  94. for _, child in ipairs(boom1:GetChildren()) do
  95. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  96. child:Emit(5) -- Emit 20 particles
  97. end
  98. end
  99. local boom1 = game.ReplicatedStorage.Resources.KJEffects["LegSweepHit"].Hit:Clone()
  100. boom1.Parent = game.Players.LocalPlayer.Character["Torso"]
  101. for _, child in ipairs(boom1:GetChildren()) do
  102. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  103. child:Emit(5) -- Emit 20 particles
  104. end
  105. end
  106. local hit1 = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  107. hit1.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  108. for _, child in ipairs(hit1:GetChildren()) do
  109. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  110. child:Emit(1) -- Emit 20 particles
  111. end
  112. end
  113. local hit1 = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  114. hit1.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  115. for _, child in ipairs(hit1:GetChildren()) do
  116. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  117. child:Emit(1) -- Emit 20 particles
  118. end
  119. end
  120.  
  121. local hit1 = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  122. hit1.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  123. for _, child in ipairs(hit1:GetChildren()) do
  124. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  125. child:Emit(1) -- Emit 20 particles
  126. end
  127. end
  128.  
  129. local player = game.Workspace.Live["Weakest Dummy"]
  130. repeat wait() until player.Humanoid
  131. local dummyhumanoid = game.Workspace.Live["Weakest Dummy"]["Humanoid"]
  132.  
  133. local anim2 = Instance.new("Animation")
  134. anim2.AnimationId = "rbxassetid://10471478869"
  135.  
  136. local playAnim2 = dummyhumanoid:LoadAnimation(anim2)
  137. playAnim2:Play()lay()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement