function Misc()local function f()local f=false for N=1,9,1 do f=not f wait(.2)if f then script.Parent.Help.Style=Enum.ButtonStyle.RobloxRoundDropdownButton else script.Parent.Help.Style=Enum.ButtonStyle.RobloxRoundDefaultButton end end end f()script.Parent.Help.MouseButton1Click:connect(function()script.Parent.Controls.Visible=not script.Parent.Controls.Visible end)script.Parent:WaitForChild("\076\105\103\104\116")local N=0 local function o(f)for N,o in pairs(car.Body.Lights:GetChildren())do if o:FindFirstChild("\076\105\103\104\116")~=nil then o.Light.Enabled=f end if f and o.BrickColor~=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")then o.Material=Enum.Material.Neon else o.Material=Enum.Material.SmoothPlastic end end end local function r()if N==0 then if game.Lighting:GetMinutesAfterMidnight()<390 or game.Lighting:GetMinutesAfterMidnight()>1050 then o(true)else o(false)end end end script.Parent.Light.MouseButton1Click:connect(function()if N==1 then N=-1 else N=N+1 end if N==0 then script.Parent.Light.Text="\076\105\103\104\116\115\058 \065\117\116\111"if game.Lighting:GetMinutesAfterMidnight()<390 or game.Lighting:GetMinutesAfterMidnight()>1050 then o(true)else o(false)end elseif N==1 then script.Parent.Light.Text="\076\105\103\104\116\115\058 \079\110"o(true)else script.Parent.Light.Text="\076\105\103\104\116\115\058 \079\102\102"o(false)end end)local function y()for f,N in pairs(car.Body.Lights:GetChildren())do if N.Name=="\082"then if N.Light.Enabled then if GBrake>0 then N.Transparency=0 N.Light.Brightness=12 else N.Transparency=.3 N.Light.Brightness=8 end else if GBrake>0 then N.Material=Enum.Material.Neon else N.Material=Enum.Material.SmoothPlastic end end end end end game.Lighting.Changed:connect(r)r()local B=tick()local S=false local function E()local f=car.DriveSeat.Flip f.maxTorque=Vector3.new(10000,0,10000)f.P=3000 f.D=500 wait(2)f.maxTorque=Vector3.new(0,0,0)f.P=0 f.D=0 S=false end local function I()if(car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y>.1 or S then B=tick()else if tick()-B>=3 then S=true E()end end end table.insert(LoopRun,y)table.insert(LoopRun,I)end Misc()

function Misc()
	local function GetHelp()
		local a=false
		for i=1,9 do
			a=not a
			wait(.2)
			if a then
				script.Parent.Help.Style=Enum.ButtonStyle.RobloxRoundDropdownButton
			else
				script.Parent.Help.Style=Enum.ButtonStyle.RobloxRoundDefaultButton
			end
		end
	end
	GetHelp()
	script.Parent.Help.MouseButton1Click:connect(function()
		script.Parent.Controls.Visible=not script.Parent.Controls.Visible
	end)
	script.Parent:WaitForChild("Light")
	local light=0
	local function Light(on)
		for i,v in pairs(car.Body.Lights:GetChildren()) do
			if v:FindFirstChild("Light")~=nil then
				v.Light.Enabled=on
			end
			if on and v.BrickColor~=BrickColor.new("Really black") then
				v.Material=Enum.Material.Neon
			else
				v.Material=Enum.Material.SmoothPlastic
			end
		end
	end
	local function AutoLight()
		if light==0 then
			if (game.Lighting:GetMinutesAfterMidnight()<390 or game.Lighting:GetMinutesAfterMidnight()>1050) then
				Light(true)
			else
				Light(false)
			end
		end
	end
	script.Parent.Light.MouseButton1Click:connect(function()
		if light==1 then
			light=-1
		else
			light=light+1
		end
		if light==0 then
			script.Parent.Light.Text="Lights: Auto"
			if game.Lighting:GetMinutesAfterMidnight()<390 or game.Lighting:GetMinutesAfterMidnight()>1050 then
				Light(true)
			else
				Light(false)
			end
		elseif light==1 then
			script.Parent.Light.Text="Lights: On"
			Light(true)
		else
			script.Parent.Light.Text="Lights: Off"
			Light(false)
		end
	end)
	local function BrakeLights()
		for i,v in pairs(car.Body.Lights:GetChildren()) do
			if v.Name=="R" then
				if v.Light.Enabled then
					if GBrake>0 then
						v.Transparency=0
						v.Light.Brightness=12
					else
						v.Transparency=.3
						v.Light.Brightness=8
					end
				else
					if GBrake>0 then
						v.Material=Enum.Material.Neon
					else
						v.Material=Enum.Material.SmoothPlastic
					end
				end
			end
		end
	end
	game.Lighting.Changed:connect(AutoLight)
	AutoLight()
	local FlipWait=tick()
	local FlipDB=false
	local function FlipCar()
		local gyro = car.DriveSeat.Flip
		gyro.maxTorque = Vector3.new(10000,0,10000)
		gyro.P=3000
		gyro.D=500
		wait(2)
		gyro.maxTorque = Vector3.new(0,0,0)
		gyro.P=0
		gyro.D=0
		FlipDB=false
	end
	local function GetFlip()
		if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then
			FlipWait=tick()
		else
			if tick()-FlipWait>=3 then
				FlipDB=true
				FlipCar()
			end
		end
	end
	--run:BindToRenderStep("BrakeL",Enum.RenderPriority.Last.Value,BrakeLights)
	--run:BindToRenderStep("Flip",Enum.RenderPriority.Last.Value,GetFlip)
	--table.insert(Binded,"BrakeL")
	--table.insert(Binded,"Flip")
	table.insert(LoopRun,BrakeLights)
	table.insert(LoopRun,GetFlip)
end
Misc()