-- Inputs

local KEY_W = Enum.KeyCode.W
local KEY_A = Enum.KeyCode.A
local KEY_S = Enum.KeyCode.S
local KEY_D = Enum.KeyCode.D
local KEY_UP = Enum.KeyCode.Up
local KEY_DOWN = Enum.KeyCode.Down
local KEY_LEFT = Enum.KeyCode.Left
local KEY_RIGHT = Enum.KeyCode.Right
local KEY_RIGHTSHIFT = Enum.KeyCode.RightShift
local KEY_LEFTSHIFT = Enum.KeyCode.LeftShift
local THUMBSTICK_1 = Enum.KeyCode.Thumbstick1
local BUTTON_RT = Enum.KeyCode.ButtonR2

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local humanoid = character:WaitForChild("Humanoid")
	
local dead = false

local ModuleScripts = ReplicatedStorage:FindFirstChild("ModuleScripts")
local PlayerConverter = require(ModuleScripts:WaitForChild("PlayerConverter"))

local Scripts = script:WaitForChild("Scripts")

local PilotSeat = require(Scripts:WaitForChild("PilotSeat"))

local speeder = PilotSeat.new(script.Parent)
local engine = speeder.engine

local Controls = require(Scripts:WaitForChild("Controls"))
	local Keyboard = Controls.Keyboard
	local Gamepad = Controls.Gamepad
	local Mobile = Controls.Mobile
	
local physicsUpdateHandle

local lastServerUpdate = 0
local lastInputUpdate = tick()
