Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local jumpButtonPressed = false
- UserInputService.InputBegan:Connect(function(input, isProcessed)
- if input.KeyCode == Enum.KeyCode.F6 and not isProcessed then
- jumpButtonPressed = not jumpButtonPressed
- if jumpButtonPressed then
- print("Jump button pressed.")
- else
- print("Jump button released.")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement