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

How Do I Remove Roblox's Set Xbox Controller Controls?

Asked by 1 year ago

Hello. I was wondering about how to code custom Xbox controller controls. I already got some of the basics down, but when it comes to trying to re-code some of roblox's set controls I run into some trouble. For example: Roblox automatically sets reloading guns and tools to B on the controller. Let's say I wanted X to be the reload button instead of B, how would I remove roblox's set control and instead make the reload button X? I've been wanting to set my crouch and prone buttons to B so learning how to remove some of roblox's controls would be a huge help. Thank you!

1 answer

Log in to vote
0
Answered by
NykoVania 231 Moderation Voter
1 year ago

Use ContextActionService.

Example:

local UserInputService = game:GetService("UserInputService")
local ContextActionService = game:GetService("ContextActionService")

ContextActionService:UnbindAction("action here")
0
Thank you for your answer. What if I just wanted to switch the B button to the X button? Not really unbind it, just move the action to another button? AROBLOXUSER12344 24 — 1y
0
ContextActionService:BindAction NykoVania 231 — 1y
0
Just unbind them and rebind them NykoVania 231 — 1y
0
okay thank you. I figured it out. AROBLOXUSER12344 24 — 1y
Ad

Answer this question