nazmoney

INF jump

Jul 1st, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. UIS.InputBegan:connect(function(UserInput)
  2. if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
  3. Action(Player.Character.Humanoid, function(self)
  4. if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
  5. Action(self.Parent.HumanoidRootPart, function(self)
  6. self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
  7. end)
  8. end
  9. end)
  10. end
  11. end)
Add Comment
Please, Sign In to add comment