local J=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local T=require(script.Parent.Parent.storage.constants)local c=require(script.Parent.Parent.packages.states)local V=T._PREFIX local function M()J.InputBegan:Connect(function(J,T)if T then return end if J.KeyCode==V then task.wait()c.CommandBarOpened:set(true)end end)end M()
--[[
	File: prefix.client.lua
	Keeps track of keybinds and changes the global state
]]

-- < Services >
local UserInputService = game:GetService("UserInputService")

-- < Imports >
local Constants = require(script.Parent.Parent.storage.constants)
local States = require(script.Parent.Parent.packages.states)

local PREFIX = Constants._PREFIX

-- < Handling >
local function main()
	UserInputService.InputBegan:Connect(function(inputObject, gameProcessedEvent)
		if gameProcessedEvent then
			return
		end

		if inputObject.KeyCode == PREFIX then
			task.wait()
			States.CommandBarOpened:set(true)
		end
	end)
end

main()
