Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How to I get my Xbox One controller to work on my ROBLOX games? [closed]

Asked by 9 years ago

As seen in this Wiki page, (http://wiki.roblox.com/index.php?title=Gamepad_input) they announced you could enable controllers in your games. How do I set this up?

Locked by woodengop, yumtaste, Spongocardo, and Sublimus

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

3 answers

Log in to vote
1
Answered by
yumtaste 476 Moderation Voter
9 years ago

Use UserInputService! You use UserInput service to get input from the gamepad (controller). You would then have to create your own script to enable movement and camera manipulation. I'm actually working on this myself. Until I perfect my script for public use, you can use the wiki tutorial (here)[http://wiki.roblox.com/index.php?title=Gamepad_input]. I'm sorry that I have to give you a wiki link, but there's so much to this so I have to give you a wiki link.

Tips for making your game good with controllers:

-I'm working on GTA controls. By that, I mean the camera acts like it does if you're playing GTA 5. You can set it wile standing still, and it will smoothly move back to its original position when your character moves again. Also, the camera will be able to turn the character, allowing for more precise movement

-Get creative with binds. I'm working on using the bumper buttons on the controller to select a tool, L3 (press left stick) to sprint, B to crouch, and other controls.

-Make sure the binds are good so that you can easily maneuver your fingers to the right buttons. Sort of like the last tip, but this is important enough to be its own tip.

-Use ContextActionService (I haven't proven CAS to work with controllers yet, but you can test it, I'm sure it works just fine) to bind controller buttons to keyboard and mouse keys. I'm going to bind R3 to mouse button 3, B to ctrl, Y to the inventory key (haven't yet decided what key I want to open the inventory).

Again, I apologize that I couldn't give you a full tutorial. There would be too much in this answer. However, if you need any help with it, please comment, and I'll help you as soon as I can. Thanks!

Extra note: Getting your controller set up on your computer may be difficult. I couldn't get my Xbox 360 controller set up, so I just used a PS3 controller. You may want to choose what I did if you can't get your controller set up on your PC.

Ad
Log in to vote
0
Answered by 9 years ago

I have looked at this recently, just place the code at the bottom of the roblox wiki into a local script of the starterpack and it should work. If you want to customise the input you will need to look at the keycodes Here

Roblox also supports ipads and othe touch enabled devices. let me know if you have any problems

Log in to vote
-1
Answered by 9 years ago

Plug it in as usb and use this: http://wiki.roblox.com/index.php?title=Gamepad_input