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