local v=.2 local C={}C.__index=C local H=130 function C.new(v,H)local N=setmetatable({},C)N.connections={}N.car=v N.localSeatModule=require(ScriptsFolder.LocalVehicleSeating)N.chassis=v:WaitForChild("\067\104\097\115\115\105\115")N.seat=N.chassis:WaitForChild("\086\101\104\105\099\108\101\083\101\097\116")N.gui=Gui:Clone()N.gui.Name="\065\099\116\105\118\101\071\117\105"N.gui.Parent=script N.touchFrame=N.gui:WaitForChild("\084\111\117\099\104\067\111\110\116\114\111\108\070\114\097\109\101")N.accelButton=N.touchFrame:WaitForChild("\065\099\099\101\108\101\114\097\116\101\066\117\116\116\111\110")N.brakeButton=N.touchFrame:WaitForChild("\066\114\097\107\101\066\117\116\116\111\110")N.exitButton=N.touchFrame:WaitForChild("\069\120\105\116\066\117\116\116\111\110")N.speedoFrame=N.gui:WaitForChild("\083\112\101\101\100\111\070\114\097\109\101")N.speedoFrameOff=N.speedoFrame:WaitForChild("\079\102\102\070\114\097\109\101")N.speedoOff=N.speedoFrameOff:WaitForChild("\083\112\101\101\100\111")N.speedoFrameOn=N.speedoFrame:WaitForChild("\079\110\070\114\097\109\101")N.speedoOn=N.speedoFrameOn:WaitForChild("\083\112\101\101\100\111")N.speedText=N.speedoFrame:WaitForChild("\083\112\101\101\100\084\101\120\116")N.unitText=N.speedoFrame:WaitForChild("\085\110\105\116\084\101\120\116")return N end

local SINGLE_TAP_THRESHOLD = 0.2

local VehicleGui = {}
VehicleGui.__index = VehicleGui

local MAX_SPEED = 130

function VehicleGui.new(car, seat)
	local self = setmetatable({}, VehicleGui)

	self.connections = {}
	self.car = car
	self.localSeatModule = require(ScriptsFolder.LocalVehicleSeating)
	self.chassis = car:WaitForChild("Chassis")
	self.seat = self.chassis:WaitForChild("VehicleSeat")
	self.gui = Gui:Clone()
	self.gui.Name = "ActiveGui"
	self.gui.Parent = script
	self.touchFrame = self.gui:WaitForChild("TouchControlFrame")
		self.accelButton = self.touchFrame:WaitForChild("AccelerateButton")
		self.brakeButton = self.touchFrame:WaitForChild("BrakeButton")
		self.exitButton = self.touchFrame:WaitForChild("ExitButton")

	self.speedoFrame = self.gui:WaitForChild("SpeedoFrame")
		self.speedoFrameOff = self.speedoFrame:WaitForChild("OffFrame")
		self.speedoOff = self.speedoFrameOff:WaitForChild("Speedo")
		self.speedoFrameOn = self.speedoFrame:WaitForChild("OnFrame")
		self.speedoOn = self.speedoFrameOn:WaitForChild("Speedo")
		self.speedText = self.speedoFrame:WaitForChild("SpeedText")
		self.unitText = self.speedoFrame:WaitForChild("UnitText")


	return self
end
