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!
Use ContextActionService.
Example:
local UserInputService = game:GetService("UserInputService") local ContextActionService = game:GetService("ContextActionService") ContextActionService:UnbindAction("action here")