Advertisement
sagagrooverzz

TEST

May 24th, 2023
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local jumpInterval = 600 -- Jump interval in seconds (10 minutes)
  2.  
  3. -- Function to make the character jump
  4. local function makeCharacterJump()
  5. local character = game.Players.LocalPlayer.Character
  6. if character then
  7. local humanoid = character:FindFirstChild("Humanoid")
  8. if humanoid and humanoid:GetState() == Enum.HumanoidStateType.Jumping then
  9. return
  10. end
  11. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  12. end
  13. end
  14.  
  15. -- Function to wait for a specific time interval
  16. local function waitInterval(interval)
  17. local elapsedTime = 0
  18. while elapsedTime < interval do
  19. local deltaTime = wait(interval - elapsedTime)
  20. elapsedTime = elapsedTime + deltaTime
  21. end
  22. end
  23.  
  24. -- Main loop
  25. while true do
  26. makeCharacterJump()
  27. waitInterval(jumpInterval)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement