Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService('Players').LocalPlayer
- local UIS = game:GetService('UserInputService')
- local Module = require(game:GetService('ReplicatedStorage').TransformModule)
- local Debounce = false
- UIS.InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.Z and Debounce == false then
- Module.Transform(player, true)
- Debounce = true
- wait(4)
- Debounce = false
- elseif key.KeyCode == Enum.KeyCode.X and Debounce == false then
- Module.Transform(player, false)
- Debounce = true
- wait(4)
- Debounce = false
- end
- end)
- --[[
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement