Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1.  
  2. local player = game:GetService('Players').LocalPlayer
  3. local UIS = game:GetService('UserInputService')
  4. local Module = require(game:GetService('ReplicatedStorage').TransformModule)
  5. local Debounce = false
  6.  
  7. UIS.InputBegan:connect(function(key)
  8. if key.KeyCode == Enum.KeyCode.Z and Debounce == false then
  9. Module.Transform(player, true)
  10. Debounce = true
  11. wait(4)
  12. Debounce = false
  13. elseif key.KeyCode == Enum.KeyCode.X and Debounce == false then
  14. Module.Transform(player, false)
  15. Debounce = true
  16. wait(4)
  17. Debounce = false
  18. end
  19. end)
  20.  
  21. --[[
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement