Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local jumpInterval = 600 -- Jump interval in seconds (10 minutes)
- -- Function to make the character jump
- local function makeCharacterJump()
- local character = game.Players.LocalPlayer.Character
- if character then
- local humanoid = character:FindFirstChild("Humanoid")
- if humanoid and humanoid:GetState() == Enum.HumanoidStateType.Jumping then
- return
- end
- humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
- end
- end
- -- Function to wait for a specific time interval
- local function waitInterval(interval)
- local elapsedTime = 0
- while elapsedTime < interval do
- local deltaTime = wait(interval - elapsedTime)
- elapsedTime = elapsedTime + deltaTime
- end
- end
- -- Main loop
- while true do
- makeCharacterJump()
- waitInterval(jumpInterval)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement