if key=="\108"and(on==true and(plane:findFirstChild("\076\105\103\104\116\115")~=nil and light==true))then local G=plane.Lights local R=plane.Values.Light if R.Value==false then for R,d in pairs(G:GetChildren())do if d.Name=="\080\111\115\108\105"then d.Gui.Enabled=true elseif d.Name=="\070\108\097\108\105"then(G:findFirstChild("\070\108\097\115\104\083\099\114\105\112\116")).Disabled=false end end R.Value=true elseif R.Value==true then for R,d in pairs(G:GetChildren())do if d.Name=="\080\111\115\108\105"then d.Gui.Enabled=false elseif d.Name=="\070\108\097\108\105"then(G:findFirstChild("\070\108\097\115\104\083\099\114\105\112\116")).Disabled=true d.Gui.Enabled=false end end R.Value=false end end
-------------------LIGHTCONTROLS-------------------
if (key == "l") and (on == true) and (plane:findFirstChild("Lights") ~= nil) and (light == true) then
	local lm = plane.Lights
	local val = plane.Values.Light
	if val.Value == false then
		for i, v in pairs(lm:GetChildren()) do
			if v.Name == "Posli" then
				v.Gui.Enabled = true
			elseif v.Name == "Flali" then
				lm:findFirstChild("FlashScript").Disabled = false
			end
		end
		val.Value = true
	elseif val.Value == true then
		for i, v in pairs(lm:GetChildren()) do
			if v.Name == "Posli" then
				v.Gui.Enabled = false
			elseif v.Name == "Flali" then
				lm:findFirstChild("FlashScript").Disabled = true
				v.Gui.Enabled = false
			end
		end
		val.Value = false
	end
end
