--// Vars


local plr = game.Players.LocalPlayer
	local char = plr.Character
	local hum = char.Humanoid

local cam = game.Workspace.CurrentCamera

local seat = script:WaitForChild("VehicleSeat").Value
	local BAV = seat.BodyAngularVelocity
	local BV = seat.BodyVelocity

local Storage = seat.Parent.Parent.TankEvents
	
	local idleSound = seat.idleSound
	Storage.Sound:FireServer(idleSound, true)
	local runSound = seat.runSound

local Settings = require(seat.Parent.Parent.Settings)

local Equipped = true

local car = seat.Parent

local rs = game:GetService("RunService")
	rst = rs.RenderStepped
local uis = game:GetService("UserInputService")
	local ib = uis.InputBegan
	local ie = uis.InputEnded
	local jr = uis.JumpRequest

local ForwardKeyDown
local BackwardKeyDown
local RightTurnKeyDown
local LeftTurnKeyDown

local speed = 0
local maxSpeed = 18
