Advertisement
SxScripting

RogueMana Local Script

Mar 22nd, 2021
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local Event = game.ReplicatedStorage.ManaEvent
  3.  
  4. UIS.InputBegan:Connect(function(Input, IsTyping)
  5. if IsTyping then return end
  6. if Input.KeyCode == Enum.KeyCode.G then
  7. Event:FireServer(true)
  8. end
  9. end)
  10.  
  11. UIS.InputEnded:Connect(function(Input, IsTyping)
  12. if IsTyping then return end
  13. if Input.KeyCode == Enum.KeyCode.G then
  14. Event:FireServer(false)
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement