Author: Not specified Language: text
Description: Not specified Timestamp: 2018-06-18 14:58:20 +0000
View raw paste Reply
  1. function onKeyPress(inputObject, gameProcessedEvent)
  2. if inputObject.KeyCode == Enum.KeyCode.R then
  3. game.ReplicatedStorage.Ball.StartShooting:FireServer()
  4.         wait(0.5)
  5.         game.ReplicatedStorage.Ball.EndShooting:InvokeServer(true,"Perfect")
  6. end
  7. end
  8.  
  9. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
View raw paste Reply