modifierPressed=false primaryPressed=false debouncer=false inputService.InputChanged:connect(function(A,U)if U==false then local A=inputService:GetKeysPressed()for A,U in pairs(A)do if U.KeyCode==modifierKey then modifierPressed=true end if U.KeyCode==primaryKey then primaryPressed=true end if primaryPressed and modifierPressed then break end end if primaryPressed==true and(modifierPressed==true and debouncer==false)then debouncer=true if script.Parent.IsOn.Value==false then StartCar()else StopCar()end primaryPressed=false modifierPressed=false wait(2)debouncer=false end end end)script.Parent.IsOn.Changed:Connect(function()script.Parent.IgnitionStatus.Text=script.Parent.IsOn.Value and"\069\110\103\105\110\101 \079\110"or"\069\110\103\105\110\101 \079\102\102"end)

modifierPressed 	= false
primaryPressed 	= false
debouncer 			= false

inputService.InputChanged:connect(function(winput,processed)
	if processed == false then -- checks to see if you're focused on a textbox or not
		local pressedkeys = inputService:GetKeysPressed()
		
		for _, input in pairs (pressedkeys) do -- iterate all keys currently pressed
			if input.KeyCode == modifierKey then
				modifierPressed = true
			end
			if input.KeyCode == primaryKey then
				primaryPressed = true
			end
			if primaryPressed and modifierPressed then break end -- escapes loop
		end
		
		if primaryPressed == true and modifierPressed == true and debouncer == false then
			debouncer 			= true
			if script.Parent.IsOn.Value == false then StartCar() else StopCar() end
			primaryPressed 	= false
			modifierPressed	= false
			wait(2)
			debouncer = false
		end
	end
end)

script.Parent.IsOn.Changed:Connect(function()
	script.Parent.IgnitionStatus.Text = script.Parent.IsOn.Value and "Engine On" or "Engine Off"
end)
