if script.Parent.Parent.Parent.IsOn.Value then script.Parent.Parent:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)end script.Parent.Parent.Parent.IsOn.Changed:connect(function()if script.Parent.Parent.Parent.IsOn.Value then script.Parent.Parent:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)end end)local n=car.Fogs script.Parent.MouseButton1Click:connect(function()if car.Body.Fogs.F.L.L.Enabled==false then n:FireServer("\076\105\103\104\116\115",1)script.Parent.BackgroundColor3=Color3.new(0,1.0,0)script.Parent.TextStrokeColor3=Color3.new(0,1.0,0)for n,U in pairs(car.Body.Fogs.F:GetChildren())do U.Transparency=0 U.L.Enabled=true end elseif car.Body.Fogs.F.L.L.Enabled==true then n:FireServer("\076\105\103\104\116\115",0)script.Parent.BackgroundColor3=Color3.new(0,0,0)script.Parent.TextStrokeColor3=Color3.new(0,0,0)for n,U in pairs(car.Body.Fogs.F:GetChildren())do U.Transparency=1 U.L.Enabled=false end end end)
---
if script.Parent.Parent.Parent.IsOn.Value then
	script.Parent.Parent:TweenPosition(
		UDim2.new(0, 0, 0, 0),
		Enum.EasingDirection.InOut,
		Enum.EasingStyle.Quad,
		1,
		true
	)
end

script.Parent.Parent.Parent.IsOn.Changed:connect(function()
	if script.Parent.Parent.Parent.IsOn.Value then
		script.Parent.Parent:TweenPosition(
			UDim2.new(0, 0, 0, 0),
			Enum.EasingDirection.InOut,
			Enum.EasingStyle.Quad,
			1,
			true
		)
	end
end)

local handler = car.Fogs

script.Parent.MouseButton1Click:connect(function()
	if car.Body.Fogs.F.L.L.Enabled == false then
		handler:FireServer("Lights", 1)
		script.Parent.BackgroundColor3 = Color3.new(0, 255 / 255, 0)
		script.Parent.TextStrokeColor3 = Color3.new(0, 255 / 255, 0)
		for index, child in pairs(car.Body.Fogs.F:GetChildren()) do
			child.Transparency = 0
			child.L.Enabled = true
		end
	elseif car.Body.Fogs.F.L.L.Enabled == true then
		handler:FireServer("Lights", 0)
		script.Parent.BackgroundColor3 = Color3.new(0, 0, 0)
		script.Parent.TextStrokeColor3 = Color3.new(0, 0, 0)
		for index, child in pairs(car.Body.Fogs.F:GetChildren()) do
			child.Transparency = 1
			child.L.Enabled = false
		end
	end
end)
