local Binds = {} Binds.__index = Binds local BindsMap = { Keys = {} } BindsMap.__index = BindsMap local UIS = game:GetService("UserInputService") function Binds.constructor() --Allow multiple bindings of the same keys, no overwrites return setmetatable({}, BindsMap) end function BindsMap.new() local InputBegan = UIS.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent then end end) local InputEnded = UIS.InputEnded:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent then end end) return setmetatable({ InputBegan = InputBegan, InputEnded = InputEnded }, BindsMap) end return Binds