Advertisement
IHATEMICROWAVEOVEN

help with jump

Oct 12th, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. wait(2)
  2. coroutine.wrap(function()
  3. local old = hitHum.JumpPower
  4. hitHum.JumpPower = 0
  5. task.wait(debuff)
  6. hitHum.JumpPower = old
  7. end)()
  8. print("begin")
  9. local newbg = Instance.new("AlignOrientation", hit)
  10. local att0 = Instance.new("Attachment", hit)
  11. local att1 = Instance.new("Attachment", workspace.Invis)
  12. print("1")
  13. newbg.RigidityEnabled, newbg.Mode, newbg.Attachment0, newbg.Attachment1
  14. = true, Enum.OrientationAlignmentMode.TwoAttachment, att0, att1
  15. workspace.Invis.CFrame = hit.CFrame * CFrame.new(0, 0, -7)
  16. workspace.Invis.CFrame *= CFrame.Angles(math.rad(270), 0, 0)
  17. hit:ApplyImpulse(hit.AssemblyLinearVelocity*hit.AssemblyMass*-1)
  18. hit:ApplyAngularImpulse(hit.AssemblyAngularVelocity*hit.AssemblyMass*-1)
  19. hitHum:ChangeState(Enum.HumanoidStateType.FallingDown)
  20. print("2")
  21. if newbg then print("3") end
  22. task.wait(4)
  23. newbg:Destroy()
  24. att0:Destroy()
  25. print("done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement