FurkyYT

Loomian Legacy Fly

Jul 24th, 2019
280
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local UIS = game:GetService("UserInputService")
  2. local lp = game.Players.LocalPlayer
  3. local c = lp.Character
  4.  
  5. UIS.InputBegan:connect(function(input, processed)
  6. c.Humanoid.JumpPower = 50 -- sets the JumpPower from 0 to 50 (default JumpPower)
  7. if processed then return end
  8. if input.KeyCode == Enum.KeyCode.Space then -- if the space key is pressed
  9. game.Players.LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) -- Humanoid.Jump = true does not work, so I used changestate
  10. end
  11. end)
RAW Paste Data