CODINGGIAN

superjump

Jun 27th, 2024 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local boostPart = script.Parent
  2.  
  3. local BOOSTED_JUMP_POWER = 125
  4.  
  5. local function onPartTouch(otherPart)
  6. local partParent = otherPart.Parent
  7. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  8. if humanoid then
  9. --boostPart.CanCollide = false
  10. local currentJumpPower = humanoid.JumpPower
  11. if currentJumpPower < BOOSTED_JUMP_POWER then
  12. humanoid.JumpPower = BOOSTED_JUMP_POWER
  13.  
  14. wait(10)
  15.  
  16. humanoid.JumpPower = currentJumpPower
  17. end
  18. end
  19. end
  20. boostPart.Touched:Connect(onPartTouch)
Add Comment
Please, Sign In to add comment