Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onKeyPress(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- game:GetService("Players").LocalPlayer.Character.Humanoid:ChangeState(3)
- end
- end
- game:GetService("ContextActionService"):BindAction("keyPress", onKeyPress, true, Enum.KeyCode.Space)
Advertisement
Add Comment
Please, Sign In to add comment