|
| 12 Aug 2017 12:03 PM |
| how would a i add xbox controls to my game or see if the user is on a xbox? |
|
|
| Report Abuse |
|
|
Aeureaus
|
  |
| Joined: 05 Nov 2011 |
| Total Posts: 109 |
|
|
| 12 Aug 2017 01:16 PM |
I highly recommend using the 'UserInputService'
Key Codes: Y = ButtonY etc. Bumpers are: ButtonL1 etc. D-Pad: DPadDown etc. For use: type Enum.KeyCode.[KeyCode]
You can bind a control by making a script like this:
local UserInput = game:GetService('UserInputService')
UserInput.InputBegan:connect(function(key) if key.KeyCode == Enum.KeyCode.ButtonA then -- script end end)
For finding out if the user is on Controller then:
local UserInput = game:GetService('UserInputService')
UserInput.InputBegan:connect(function(key) if key.UserInputType == Enum.UserInputType.Gamepad1 then -- script end end)
|
|
|
| Report Abuse |
|
|
|
| 29 Aug 2017 01:57 PM |
the script that finds if they are on xbox is that put into a local script?
trying to get this higher :D// 0 |
|
|
| Report Abuse |
|
|
Aeureaus
|
  |
| Joined: 05 Nov 2011 |
| Total Posts: 109 |
|
| |
|
|
| 29 Aug 2017 02:00 PM |
do you want paided?
trying to get this higher :D// 0 |
|
|
| Report Abuse |
|
|