Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables
- local player = game.Players.LocalPlayer
- local character = player.Character
- local human = character.Humanoid
- -- Function
- function infinityJump()
- -- Calculate the force needed to jump infinite times
- local jumpForce = math.huge
- human.JumpPower = jumpForce
- end
- -- Connect the function to the player's "Jump" button
- player.Character.Humanoid.Jump.Connect(infinityJump)
Advertisement
Advertisement