local L=script.Parent:WaitForChild("\066\117\116\116\111\110\115")local A=L:WaitForChild("\076\101\102\116")local g=L:WaitForChild("\082\105\103\104\116")local E=L:WaitForChild("\066\114\097\107\101")local m=L:WaitForChild("\071\097\115")local r=L:WaitForChild("\072\097\110\100\098\114\097\107\101")if UserInputService.TouchEnabled and not UserInputService.MouseEnabled then L.Visible=true end local function j(L,A)if L.UserInputState==Enum.UserInputState.Begin then _GSteerT=-1 _SteerL=true else if _SteerR then _GSteerT=1 else _GSteerT=0 end _SteerL=false end end A.InputBegan:Connect(j)A.InputEnded:Connect(j)
--mobile support
local Buttons = script.Parent:WaitForChild("Buttons")
local Left = Buttons:WaitForChild("Left")
local Right = Buttons:WaitForChild("Right")
local Brake = Buttons:WaitForChild("Brake")
local Gas = Buttons:WaitForChild("Gas")
local Handbrake = Buttons:WaitForChild("Handbrake")

if UserInputService.TouchEnabled and not UserInputService.MouseEnabled then
	Buttons.Visible = true
end
local function LeftTurn(Touch, GPE)
	if Touch.UserInputState == Enum.UserInputState.Begin then
		_GSteerT = -1
		_SteerL = true
	else
		if _SteerR then
			_GSteerT = 1
		else
			_GSteerT = 0
		end
		_SteerL = false
	end
end
Left.InputBegan:Connect(LeftTurn)
Left.InputEnded:Connect(LeftTurn)
