Need help with custom inputs

I’m working on customizable inputs for my rhythm game so users aren’t just stuck to wasd and the arrow keys, I already have an entire input script, but I don’t know how to script custom inputs. I tried doing this but it didn’t work.

local uis = game:GetService("UserInputService")
local la,ra,ua,da = script.Parent.plr1.arrows.left, script.Parent.plr1.arrows.right, script.Parent.plr1.arrows.up, script.Parent.plr1.arrows.down
local lab,rab,uab,dab = la:GetAttribute("lt"), ra:GetAttribute("rt"), ua:GetAttribute("ut"), da:GetAttribute("dt")
local left,right,up,down = Enum.KeyCode.Left, Enum.KeyCode.Right, Enum.KeyCode.Up, Enum.KeyCode.Down
local cu,cr,cd,cl = Enum.KeyCode.uab.Value, Enum.KeyCode.lab.Value, Enum.KeyCode.dab.value, Enum.KeyCode.rab.value

It looks like your trying to mess with the ControllerModule, no idea if this will work but you can play the game and go to your StarterPlayerScripts and copy the ControllerModule and look in there for some help.

1 Like

I think you understood me wrong, im making a rhythm game that uses wasd and arrow keys for the controls, and there will be options to change the keybinds. I just dont really know how to do that.

…Is anyone gonna help me? It’s been an entire day and there arent any new responses.