local g=script.Parent:WaitForChild("\066\117\116\116\111\110\115")local S=g:WaitForChild("\076\101\102\116")local K=g:WaitForChild("\082\105\103\104\116")local o=g:WaitForChild("\066\114\097\107\101")local U=g:WaitForChild("\071\097\115")local s=g:WaitForChild("\072\097\110\100\098\114\097\107\101")if UserInputService.TouchEnabled and not UserInputService.MouseEnabled then g.Visible=true end local function D(g,S)if g.UserInputState==Enum.UserInputState.Begin then _GSteerT=-1 _SteerL=true else if _SteerR then _GSteerT=1 else _GSteerT=0 end _SteerL=false end end S.InputBegan:Connect(D)S.InputEnded:Connect(D)

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)