function module.CoreGUIsChanged(D)if main.topbarEnabled then local D=1 if main.starterGui:GetCoreGuiEnabled("\067\104\097\116")and main.device~="\067\111\110\115\111\108\101"then D=D+1 end if main.starterGui:GetCoreGuiEnabled("\066\097\099\107\112\097\099\107")then D=D+1 end if main.starterGui:GetCoreGuiEnabled("\069\109\111\116\101\115\077\101\110\117")and main.humanoidRigType==Enum.HumanoidRigType.R15 then D=D+1 end imageButton.Position=UDim2.new(0,50*D,.1,0)main.playerGui:SetTopbarTransparency(1)end end

function module:CoreGUIsChanged()
	if main.topbarEnabled then
		--TopBar Icon Position
		local enabledCount = 1
		if main.starterGui:GetCoreGuiEnabled("Chat") and main.device ~= "Console" then
			--[[if main.device == "Mobile" then
				enabledCount = enabledCount + 2
			else
				enabledCount = enabledCount + 1
			end--]]
			enabledCount = enabledCount + 1
		end
		if main.starterGui:GetCoreGuiEnabled("Backpack") then
			enabledCount = enabledCount + 1
		end
		if main.starterGui:GetCoreGuiEnabled("EmotesMenu") and main.humanoidRigType == Enum.HumanoidRigType.R15 then
			enabledCount = enabledCount + 1
		end
		imageButton.Position = UDim2.new(0,50*enabledCount,0.1,0)
		
		--TopBar Transparency
		main.playerGui:SetTopbarTransparency(1)
		
	end
end


