Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Grab the Services for UIS and CAS
- local uIS = game:service'UserInputService'
- local CAS = game:service'ContextActionService'
- --Check if the user is on a Computer or on a Phone/Tablet
- local mobileCheck
- if uIS.TouchEnabled and not uIS.KeyboardEnabled then
- mobileCheck = true
- else
- mobileCheck = false
- end
- if mobileCheck then
- --Use ContextActionService:BindAction
- elseif not mobileCheck then
- --Use UserInputService:InputBegan
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement