this is my result and my warnings are as you can see here i managed to fix everything but this pretty much as well

photo of warnings: http://prntscr.com/pbjupc

To clarify my attempt to fix these heres how many there used to be: http://prntscr.com/pbk1g4

``~~~~~~~~~~~~~~~~~

if not GUI:findFirstChild(alphavar..betavar..charlievar) then
	local lbl = Instance.new("TextLabel", GUI);
	lbl.Name = alphavar..betavar..charlievar;
end

local above = updateInteract()
function highlight(object)
if object then
	for index, child in pairs(object:getChildren()) do
		if child:isA("BasePart") and child.Transparency < 1 then
			local outline = Instance.new("SelectionBox", cam);
			outline.Color = BrickColor.new("Navy blue");
			outline.Adornee = child;
			outline.Transparency = 0.7
			game.Debris:addItem(outline, 0.5);
		end
	end
end
end
	
local GUI;custom.button.MouseButton1Down:connect(function()
custom = not custom;

end)

GUI.buy.button.MouseButton1Down:connect(function() shopping = not shopping; end)

	for index, child in pairs (workspace.targetFilter.ignore.lights:getChildren()) do
		if child.Name == "itemFlare" then
			local distance = (child.main.CFrame.p-GUI.gameData.spawn.Value).magnitude;
			
			if distance < 40 then
				local scale = 1-distance/40;
				flare = true;

				if night < 1 then
					ambient = Color3.new(0.1+night*0.8+0.3*scale, 0.1+night*0.8+0.2*scale, 0.1+night*0.8+0.2*scale);
				else
					ambient = Color3.new(0.1+(2-night)*0.8+0.3*scale, 0.1+(2-night)*0.8+0.2*scale, 0.1+(2-night)*0.8+0.2*scale);
				end
				
				brightness = brightness+0.2*scale;
				fogEnd = fogEnd+scale*256;
				fogStart = fogStart+scale*256;
				
				break;
			end
		elseif child.Name == "fire" then
			local distance = (child.CFrame.p-GUI.gameData.spawn.Value).magnitude;
			
			if distance < 55 then
				local scale = 1-distance/55;
				flare = true;

				if night < 1 then
					ambient = Color3.new(0.1+night*0.8+0.3*scale, 0.1+night*0.8+0.17*scale, 0.25+night*0.8+0.1*scale);
				else
					ambient = Color3.new(0.1+(2-night)*0.8+0.3*scale, 0.1+(2-night)*0.8+0.17*scale, 0.25+(2-night)*0.8+0.1*scale);
				end
				
				brightness = brightness+0.3*scale;
				fogEnd = fogEnd+scale*300;
				fogStart = fogStart+scale*300;
				
				break;
			end
		end
	end
	
	
	
	
	
	
	
		if vehicle then
		hint = "Get out of \""..vehicle.Name..".\" [Q]";
		GUI.hint.TextColor3 = Color3.new(1, 1, 1);

end

``

Any help would make me very thankful
if you need to look over the other scripts 
with me id be happy to add any of you to 
a discord screen share or skype screen share

2 comments

0

Unknown Global Variable usually refers to the fact that you defined the variable, but since it wasnt localized, the script wont know what instance / value to use

0

If your question was solved, let us know. Also edit it so the code block is fixed please.