generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Xbox one Gamepad controls for console?

Previous Thread :: Next Thread 
M_FG is not online. M_FG
Joined: 10 Jul 2016
Total Posts: 18
16 Jun 2017 01:37 PM
Looking for a script where you push the dpad down and it activates a key

Ex pushing left on dpad would be like pushing x on a keyboard

Controls
Right on dpad = x key
Left on Dpad = f key
Up on Dpad = h key
Down on Dpad = c key
Report Abuse
ITBV is not online. ITBV
Joined: 27 Dec 2013
Total Posts: 954
16 Jun 2017 01:41 PM
Look into UserInputService
Report Abuse
ITBV is not online. ITBV
Joined: 27 Dec 2013
Total Posts: 954
16 Jun 2017 01:45 PM
local UserInputService = game:GetService("UserInputService") local function Action1() -- Stuff end local function Action2() -- Stuff end local function Action3) -- Stuff end local function Action4() -- Stuff end UserInputService.InputBegan:Connect(function(input) if input == Enum.KeyCode.X or input == Enum.KeyCode.DPadRight then Action1() elseif input == Enum.KeyCode.F or input == Enum.KeyCode.DPadLeft then Action2() elseif input == ############## ## input == Enum.KeyCode.DPadUp then Action3() elseif input == Enum.KeyCode.C or input == Enum.KeyCode.DPadDown then Action4() end end)
Report Abuse
M_FG is not online. M_FG
Joined: 10 Jul 2016
Total Posts: 18
16 Jun 2017 02:06 PM
Could you put it into a script file?
Report Abuse
ITBV is not online. ITBV
Joined: 27 Dec 2013
Total Posts: 954
16 Jun 2017 02:22 PM
That was a script.
Report Abuse
M_FG is not online. M_FG
Joined: 10 Jul 2016
Total Posts: 18
16 Jun 2017 02:33 PM
I mean a model lol
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image