jokianeee

ij

Aug 12th, 2019
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function onKeyPress(actionName, userInputState, inputObject)
  2. if userInputState == Enum.UserInputState.Begin then
  3. game:GetService("Players").LocalPlayer.Character.Humanoid:ChangeState(3)
  4. end
  5. end
  6.  
  7. game:GetService("ContextActionService"):BindAction("keyPress", onKeyPress, true, Enum.KeyCode.Space)
Advertisement
Add Comment
Please, Sign In to add comment