How do I make a Region Label?

saw something like this and wanted to recreate it
image
how does Deepwoken find the servers?

I have this script currently, but it shows the shortened version (e.g. Germany, Hesse is DE, HE), is there any way I can find and display the whole location? Sorry if I’m not being clear, it’s nighttime

local HTTPService = game:GetService("HttpService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remote = ReplicatedStorage:WaitForChild("Region")
local Info = HTTPService:JSONDecode(HTTPService:GetAsync('http://ip-api.com/json/'))

local function ReturnServerInfo(player)
	local ServerData = {}
	for i,v in pairs(Info) do
		if i == "countryCode" then
			table.insert(ServerData,v)
		elseif i == "region" then
			table.insert(ServerData,v)
		end
	end
	return ServerData
end

Remote.OnServerInvoke  = ReturnServerInfo

Use regionName and country instead of region and countryCode.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.