Advertisement
IHATEMICROWAVEOVEN

smack down

Oct 5th, 2022 (edited)
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. local color = BrickColor.new("Brown")
  2. local material = "Slate"
  3. local lifetime = 7
  4. local debuff = 25 -- debuff dureation pog
  5.  
  6. function Use(...)
  7. local args = {...}
  8. local torso = args[1].Character.Torso
  9.  
  10. local p = Instance.new("Part")
  11. p.CanCollide, p.BrickColor, p.Material, p.Position, p.Size
  12. = false, color, material, torso.CFrame * CFrame.new(0, 0, -7), Vector3.new(5, 5, 5)
  13. p.Parent = workspace
  14.  
  15. local bv = Instance.new("LinearVelocity")
  16. bv.VelocityConstraintMode, bv.MaxForce, bv.VectorVelocity = Enum.VelocityConstraintMode.Vector, Vector3.new(math.huge, math.huge, math.huge), args[3]
  17. bv.Parent = p
  18.  
  19. local junk = Instance.new("Part")
  20. junk.Anchored, junk.CanCollide, junk.Transparency =
  21. true, false, 1
  22. junk.Parent = workspace
  23. local bg = Instance.new("AlignOrientation")
  24. local att = Instance.new("Attachment", p)
  25. local att1 = Instance.new("Attachment", junk)
  26. bg.AlignType, bg.Mode, bg.Attachment0, bg.Attachment1, bg.RigidityEnabled
  27. = Enum.AlignType.Parallel, Enum.OrientationAlignmentMode.TwoAttachment, att, att1, true
  28. att1.Orientation = Vector3.new(0, 0, 0)
  29. coroutine.wrap(function()
  30. task.wait(0.2)
  31. bg:Destroy()
  32. att:Destroy()
  33. att1.Orientation = Vector3.new(0, 0, 270)
  34. task.wait(lifetime)
  35. att1:Destroy()
  36. junk:Destroy()
  37. end)()
  38.  
  39. require(game.ServerScriptService.Libraries.DamageService):RegisterDamage(args[1], {p}, 50, function(hit)
  40. if game.Players:FindFirstChild(hit.Parent.Name) then
  41. local hitHum = hit.Parent:FindFirstChild("Humanoid")
  42. if hitHum and hitHum.Health > 0 and hit.Parent:FindFirstChild("Torso") then
  43.  
  44. coroutine.wrap(function()
  45. local old = hitHum.JumpPower
  46. hitHum.JumpPower = 0
  47. task.wait(debuff)
  48. hitHum.JumpPower = old
  49. end)()
  50. local newbg = Instance.new("AlignOrientation")
  51. local att0 = Instance.new("Attachment", hit.Parent.Torso)
  52. newbg.MaxTorque, newbg.AlignType, newbg.Mode, newbg.Responsiveness, newbg.Attachment0, newbg.Attachment1
  53. = Vector3.new(math.huge, math.huge, math.huge), Enum.AlignType.Parallel, Enum.OrientationAlignmentMode.TwoAttachment, 100, att0, att1
  54. task.wait(3)
  55. newbg:Destroy()
  56. att0:Destroy()
  57.  
  58. end
  59. end
  60. end)
  61.  
  62. game:GetService("Debris"):AddItem(p, lifetime)
  63.  
  64. end
  65.  
  66. return Use
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement