local N=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local p=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local f=require(p.Source.ClientVehicleBoosts)local B=require(p.Source.Common.Flags)local P=B.EnableBoosts local y={}local M=0 local J=0 local A={Forwards={Enum.KeyCode.W,Enum.KeyCode.Up},Backwards={Enum.KeyCode.S;Enum.KeyCode.Down};Left={Enum.KeyCode.A;Enum.KeyCode.Left};Right={Enum.KeyCode.D,Enum.KeyCode.Right};Boost={Enum.KeyCode.Space}}local function Z(N)for p,f in pairs(A)do for f,B in pairs(f)do if B==N.KeyCode then return p end end end end local function x(p)local f=A[p]for p,f in pairs(f)do if N:IsKeyDown(f)then return true end end return false end

local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ClientVehicleBoosts = require(ReplicatedStorage.Source.ClientVehicleBoosts)
local Flags = require(ReplicatedStorage.Source.Common.Flags)

local FlagEnableBoosts = Flags.EnableBoosts

local UserInput = {}

local throttle = 0
local steer = 0

local actions = {
	Forwards = {Enum.KeyCode.W, Enum.KeyCode.Up},
	Backwards = {Enum.KeyCode.S, Enum.KeyCode.Down},
	Left = {Enum.KeyCode.A, Enum.KeyCode.Left},
	Right = {Enum.KeyCode.D, Enum.KeyCode.Right},
	Boost = {Enum.KeyCode.Space}
}

local function getActionFromInput(inputObject)
	for action, bindings in pairs(actions) do
		for _, keyCode in pairs(bindings) do
			if keyCode == inputObject.KeyCode then
				return action
			end
		end
	end
end

local function isActionHeld(action)
	local bindings = actions[action]
	for _, keyCode in pairs(bindings) do
		if UserInputService:IsKeyDown(keyCode) then
			return true
		end
	end
	return false
end
