Ad
Log in to vote
0

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

Asked by 13 days 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 198 Moderation Voter
13 days 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 19 — 12d
0
ContextActionService:BindAction NykoVania 198 — 11d
0
Just unbind them and rebind them NykoVania 198 — 11d
0
okay thank you. I figured it out. AROBLOXUSER12344 19 — 10d
Ad

Answer this question