function Misc()local function z()local z=false for j=1,9,1 do z=not z wait(.2)if z then script.Parent.Help.Style=Enum.ButtonStyle.RobloxRoundDropdownButton else script.Parent.Help.Style=Enum.ButtonStyle.RobloxRoundDefaultButton end end end z()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 j=0 local function I(z)for j,I in pairs(car.Body.Lights:GetChildren())do if I:FindFirstChild("\076\105\103\104\116")~=nil then I.Light.Enabled=z end if z and I.BrickColor~=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")then I.Material=Enum.Material.Neon else I.Material=Enum.Material.SmoothPlastic end end end local function Z()if j==0 then if game.Lighting:GetMinutesAfterMidnight()<390 or game.Lighting:GetMinutesAfterMidnight()>1050 then I(true)else I(false)end end end script.Parent.Light.MouseButton1Click:connect(function()if j==1 then j=-1 else j=j+1 end if j==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 I(true)else I(false)end elseif j==1 then script.Parent.Light.Text="\076\105\103\104\116\115\058 \079\110"I(true)else script.Parent.Light.Text="\076\105\103\104\116\115\058 \079\102\102"I(false)end end)local function O()for z,j in pairs(car.Body.Lights:GetChildren())do if j.Name=="\082"then if j.Light.Enabled then if GBrake>0 then j.Transparency=0 j.Light.Brightness=12 else j.Transparency=.3 j.Light.Brightness=8 end else if GBrake>0 then j.Material=Enum.Material.Neon else j.Material=Enum.Material.SmoothPlastic end end end end end game.Lighting.Changed:connect(Z)Z()local U=tick()local Y=false local function n()local z=car.DriveSeat.Flip z.maxTorque=Vector3.new(10000,0,10000)z.P=3000 z.D=500 wait(2)z.maxTorque=Vector3.new(0,0,0)z.P=0 z.D=0 Y=false end local function H()if(car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y>.1 or Y then U=tick()else if tick()-U>=3 then Y=true n()end end end table.insert(LoopRun,O)table.insert(LoopRun,H)end Misc()
---Misc
function Misc()
	local function GetHelp()
		local a = false
		for i = 1, 9 do
			a = not a
			wait(0.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 = 0.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 > 0.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()
