GetCountryRegionForPlayerAsync does not give correct information

LocalizationService:GetCountryRegionForPlayerAsync()

Hello,

Recently I’ve been testing out this LocalizationService instance. I quickly learned how to use it properly and I wanted to test it on myself, because who doens’t want?

I have a problem tho. I tried printing my country using LocalizationService:GetCountryRegionForPlayerAsync(), but it doens’t give me the correct country.

I personally live in The Netherlands, but ROBLOX thinks I am in US (USA)

Code:

local localizationService = game:GetService("LocalizationService")

game.Players.PlayerAdded:Connect(function(player)
	
	repeat wait() until player
	
	if player then
		print(localizationService:GetCountryRegionForPlayerAsync(player))
	end
	
end)

Screenshot of Error:
image
Country evidence:
image

Any help is highly appreciated as I think this is a bug.

3 Likes

Are you using a VPN or some kind of proxy service?

Try this website: https://www.iplocation.net and see where it appears from.

P.S. You don’t need repeat wait() until player in PlayerAdded, it already exists and always will

I am not using any VPN or proxy service.
Maybe ROBLOX thinks the client is connected to US?
That website still says Netherlands.

p.s. thanks for that last sentence of information lol

Are you trying it out from Studio or In-game? I tried out a simple script in Studio and it gave that I’m form the UK, which is incorrect. But I tried it out In-Game and it correctly gave me the Country code for Malta

I tested this in STUDIO for now, if you want I could test it in-game to see if it may work then.

Yes, this is an interesting issue. I think it may well be a bug; I’ll try to replicate what you’re experiencing. Please try what @EmbatTheHybrid said though!

Try it out, publish the game and go In-Game, it’s maybe that something is wrong with how studio is trying to detect your region?

1 Like

Oh yes, now it works. I agree, it’s a very weird issue.

image

Thanks for the help lol.

I have a theory that ROBLOX Studio is connected to an US computer which i guess may give US info?

1 Like

Could be? Although it’s all speculation as to why it doesn’t work properly in Studio but works in game

But I mean hey it fixes your problem, if you have anymore issues don’t be afraid to make another post!

Before I’d make another post, do you have an idea to indicate a region and then give the actual country name?

For example:
NL (Netherlands) or something like US (United States)

If not I can try researching this little problem.

You could have a very long table (not recommended) but its all I can think of.

Example:

local countries = {
["NL"] = "Netherlands",
["US"] = "United States",
["GB"] = "United Kingdom",
}

And so on. Probably isn’t the best way to do this.

I’m not sure how you can do that exactly, you may probably need to have a dictionary set up with all the country codes or use an api that gives it? I’ll need to research on that

Roblox doesn’t have a Built in function for it currently

Also @synical4 the country code for the United Kingdom is GB from what the page of the function tells

1 Like

Ah yes! This will sure help me out.

Thanks a lot! @synical4 & @EmbatTheHybrid

1 Like

I created a script that turns the ISO codes into the names of countries, but it is very long as one would expect. It is capable of printing and displaying the name and flag of a player’s country above their head once they join


game:GetService("Players").PlayerAdded:Connect(function(player)
	local country = game:GetService("LocalizationService"):GetCountryRegionForPlayerAsync(player)
	player.CharacterAdded:Connect(function(char)
		print("Player " .. player.Name .. " joined from " .. country .. ".")
		wait(5)
		if country == "KP" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "North Korea"
			Clone1.IconFlag.Text = "🇰🇵"
		elseif country == "GB" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "United Kingdom"
			Clone1.IconFlag.Text = "🇬🇧"
		elseif country == "CA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Canada"
			Clone1.IconFlag.Text = "🇨🇦"
		elseif country == "AF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Afghanistan"
			Clone1.IconFlag.Text = "🇦🇫"
		elseif country == "AX" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Åland Islands"
			Clone1.IconFlag.Text = "🇦🇽"
		elseif country == "AL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Albania"
			Clone1.IconFlag.Text = "🇦🇱"
		elseif country == "DZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Algeria"
			Clone1.IconFlag.Text = "🇩🇿"
		elseif country == "AS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "American Samoa"
			Clone1.IconFlag.Text = "🇦🇸"
		elseif country == "AD" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Andorra"
			Clone1.IconFlag.Text = "🇦🇩"
		elseif country == "AO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Angola"
			Clone1.IconFlag.Text = "🇦🇴"
		elseif country == "AI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Anguilla"
			Clone1.IconFlag.Text = "🇦🇮"
		elseif country == "AQ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Antarctica"
			Clone1.IconFlag.Text = "🇦🇶"
		elseif country == "AG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Antigua and Barbuda"
			Clone1.IconFlag.Text = "🇦🇬"
		elseif country == "AR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Argentina"
			Clone1.IconFlag.Text = "🇦🇷"
		elseif country == "AM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Armenia"
			Clone1.IconFlag.Text = "🇦🇲"
		elseif country == "AW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Aruba"
			Clone1.IconFlag.Text = "🇦🇼"
		elseif country == "AU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Australia"
			Clone1.IconFlag.Text = "🇦🇺"
		elseif country == "AT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Austria"
			Clone1.IconFlag.Text = "🇦🇹"
		elseif country == "AZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Azerbaijan"
			Clone1.IconFlag.Text = "🇦🇿"
		elseif country == "BS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "The Bahamas"
			Clone1.IconFlag.Text = "🇧🇸"
		elseif country == "BH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bahrain"
			Clone1.IconFlag.Text = "🇧🇭"
		elseif country == "BD" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bangladesh"
			Clone1.IconFlag.Text = "🇧🇩"
		elseif country == "BB" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Barbados"
			Clone1.IconFlag.Text = "🇧🇧"
		elseif country == "BY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Belarus"
			Clone1.IconFlag.Text = "🇧🇾"
		elseif country == "BE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Belgium"
			Clone1.IconFlag.Text = "🇧🇪"
		elseif country == "BZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Belize"
			Clone1.IconFlag.Text = "🇧🇿"
		elseif country == "BJ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Benin"
			Clone1.IconFlag.Text = "🇧🇯"
		elseif country == "BM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bermuda"
			Clone1.IconFlag.Text = "🇧🇲"
		elseif country == "BT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bhutan"
			Clone1.IconFlag.Text = "🇧🇹"
		elseif country == "BO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bolivia"
			Clone1.IconFlag.Text = "🇧🇴"
		elseif country == "BQ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bonaire, Saint Eustatius and Saba"
			Clone1.IconFlag.Text = "🇧🇶"
		elseif country == "BA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bosnia and Herzegovina"
			Clone1.IconFlag.Text = "🇧🇦"
		elseif country == "BW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Botswana"
			Clone1.IconFlag.Text = "🇧🇼"
		elseif country == "BV" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bouvet Island"
			Clone1.IconFlag.Text = "🇧🇻"
		elseif country == "BR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Brazil"
			Clone1.IconFlag.Text = "🇧🇷"
		elseif country == "IO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "British Indian Ocean Territory"
			Clone1.IconFlag.Text = "🇮🇴"
		elseif country == "BN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Brunei"
			Clone1.IconFlag.Text = "🇧🇳"
		elseif country == "BG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Bulgaria"
			Clone1.IconFlag.Text = "🇧🇬"
		elseif country == "BF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Burkina Faso"
			Clone1.IconFlag.Text = "🇧🇫"
		elseif country == "BI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Burundi"
			Clone1.IconFlag.Text = "🇧🇮"
		elseif country == "KH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cambodia"
			Clone1.IconFlag.Text = "🇰🇭"
		elseif country == "CM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cameroon"
			Clone1.IconFlag.Text = "🇨🇲"
		elseif country == "CV" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cabo Verde"
			Clone1.IconFlag.Text = "🇨🇻"
		elseif country == "KY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cayman Islands"
			Clone1.IconFlag.Text = "🇰🇾"
		elseif country == "CF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Central African Republic"
			Clone1.IconFlag.Text = "🇨🇫"
		elseif country == "TD" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Chad"
			Clone1.IconFlag.Text = "🇹🇩"
		elseif country == "CL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Chile"
			Clone1.IconFlag.Text = "🇨🇱"
		elseif country == "CN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "China"
			Clone1.IconFlag.Text = "🇨🇳"
		elseif country == "CX" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Christmas Island"
			Clone1.IconFlag.Text = "🇨🇽"
		elseif country == "CC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cocos (Keeling) Islands"
			Clone1.IconFlag.Text = "🇨🇨"
		elseif country == "CO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Colombia"
			Clone1.IconFlag.Text = "🇨🇴"
		elseif country == "KM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Comoros"
			Clone1.IconFlag.Text = "🇰🇲"
		elseif country == "CG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Republic of the Congo"
			Clone1.IconFlag.Text = "🇨🇬"
		elseif country == "CD" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Democratic Republic of the Congo"
			Clone1.IconFlag.Text = "🇨🇩"
		elseif country == "CK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cook Islands"
			Clone1.IconFlag.Text = "🇨🇰"
		elseif country == "CR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Costa Rica"
			Clone1.IconFlag.Text = "🇨🇷"
		elseif country == "CI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Côte d’Ivoire"
			Clone1.IconFlag.Text = "🇨🇮"
		elseif country == "HR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Croatia"
			Clone1.IconFlag.Text = "🇭🇷"
		elseif country == "CW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Curaçao"
			Clone1.IconFlag.Text = "🇨🇼"
		elseif country == "CY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cyprus"
			Clone1.IconFlag.Text = "🇨🇾"
		elseif country == "CZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Czechia"
			Clone1.IconFlag.Text = "🇨🇿"
		elseif country == "DK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Denmark"
			Clone1.IconFlag.Text = "🇩🇰"
		elseif country == "DJ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Djibouti"
			Clone1.IconFlag.Text = "🇩🇯"
		elseif country == "DM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Dominica"
			Clone1.IconFlag.Text = "🇩🇲"
		elseif country == "DO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Dominican Republic"
			Clone1.IconFlag.Text = "🇩🇴"
		elseif country == "EC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Ecuador"
			Clone1.IconFlag.Text = "🇪🇨"
		elseif country == "EG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Egypt"
			Clone1.IconFlag.Text = "🇪🇬"
		elseif country == "SV" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "El Salvador"
			Clone1.IconFlag.Text = "🇸🇻"
		elseif country == "GQ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Equatorial Guinea"
			Clone1.IconFlag.Text = "🇬🇶"
		elseif country == "ER" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Eritrea"
			Clone1.IconFlag.Text = "🇪🇷"
		elseif country == "EE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Estonia"
			Clone1.IconFlag.Text = "🇪🇪"
		elseif country == "ET" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Ethiopia"
			Clone1.IconFlag.Text = "🇪🇹"
		elseif country == "FK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Falkland Islands"
			Clone1.IconFlag.Text = "🇫🇰"
		elseif country == "FO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Faroe Islands"
			Clone1.IconFlag.Text = "🇫🇴"
		elseif country == "FJ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Fiji"
			Clone1.IconFlag.Text = "🇫🇯"
		elseif country == "FI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Finland"
			Clone1.IconFlag.Text = "🇫🇮"
		elseif country == "FR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "France"
			Clone1.IconFlag.Text = "🇫🇷"
		elseif country == "GF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "French Guiana"
			Clone1.IconFlag.Text = "🇬🇫"
		elseif country == "PF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "French Polynesia"
			Clone1.IconFlag.Text = "🇵🇫"
		elseif country == "TF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "French Southern Territories"
			Clone1.IconFlag.Text = "🇹🇫"
		elseif country == "GA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Gabon"
			Clone1.IconFlag.Text = "🇬🇦"
		elseif country == "GM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "The Gambia"
			Clone1.IconFlag.Text = "🇬🇲"
		elseif country == "GE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Georgia"
			Clone1.IconFlag.Text = "🇬🇪"
		elseif country == "DE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Germany"
			Clone1.IconFlag.Text = "🇩🇪"
		elseif country == "GH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Ghana"
			Clone1.IconFlag.Text = "🇬🇭"
		elseif country == "GI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Gibraltar"
			Clone1.IconFlag.Text = "🇬🇮"
		elseif country == "GR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Greece"
			Clone1.IconFlag.Text = "🇬🇷"
		elseif country == "GL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Greenland"
			Clone1.IconFlag.Text = "🇬🇱"
		elseif country == "GD" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Grenada"
			Clone1.IconFlag.Text = "🇬🇩"
		elseif country == "GP" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Guadeloupe"
			Clone1.IconFlag.Text = "🇬🇵"
		elseif country == "GU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Guam"
			Clone1.IconFlag.Text = "🇬🇺"
		elseif country == "GT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Guatemala"
			Clone1.IconFlag.Text = "🇬🇹"
		elseif country == "GG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Guernsey"
			Clone1.IconFlag.Text = "🇬🇬"
		elseif country == "GN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Guinea"
			Clone1.IconFlag.Text = "🇬🇳"
		elseif country == "GW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Guinea-Bissau"
			Clone1.IconFlag.Text = "🇬🇼"
		elseif country == "GY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Guyana"
			Clone1.IconFlag.Text = "🇬🇾"
		elseif country == "HT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Haiti"
			Clone1.IconFlag.Text = "🇭🇹"
		elseif country == "HM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Heard Island and the McDonald Islands"
			Clone1.IconFlag.Text = "🇭🇲"
		elseif country == "VA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Vatican City"
			Clone1.IconFlag.Text = "🇻🇦"
		elseif country == "HN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Honduras"
			Clone1.IconFlag.Text = "🇭🇳"
		elseif country == "HK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Hong Kong"
			Clone1.IconFlag.Text = "🇭🇰"
		elseif country == "HU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Hungary"
			Clone1.IconFlag.Text = "🇭🇺"
		elseif country == "IS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Iceland"
			Clone1.IconFlag.Text = "🇮🇸"
		elseif country == "IN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "India"
			Clone1.IconFlag.Text = "🇮🇳"
		elseif country == "ID" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Indonesia"
			Clone1.IconFlag.Text = "🇮🇩"
		elseif country == "IQ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Iraq"
			Clone1.IconFlag.Text = "🇮🇶"
		elseif country == "IE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Ireland"
			Clone1.IconFlag.Text = "🇮🇪"
		elseif country == "IM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Isle of Man"
			Clone1.IconFlag.Text = "🇮🇲"
		elseif country == "IL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Israel"
			Clone1.IconFlag.Text = "🇮🇱"
		elseif country == "IT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Italy"
			Clone1.IconFlag.Text = "🇮🇹"
		elseif country == "JM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Jamaica"
			Clone1.IconFlag.Text = "🇯🇲"
		elseif country == "JP" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Japan"
			Clone1.IconFlag.Text = "🇯🇵"
		elseif country == "JE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Jersey"
			Clone1.IconFlag.Text = "🇯🇪"
		elseif country == "JO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Jordan"
			Clone1.IconFlag.Text = "🇯🇴"
		elseif country == "KZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Kazakhstan"
			Clone1.IconFlag.Text = "🇰🇿"
		elseif country == "KE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Kenya"
			Clone1.IconFlag.Text = "🇰🇪"
		elseif country == "KI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Kiribati"
			Clone1.IconFlag.Text = "🇰🇮"
		elseif country == "KR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "South Korea"
			Clone1.IconFlag.Text = "🇰🇷"
		elseif country == "KW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Kuwait"
			Clone1.IconFlag.Text = "🇰🇼"
		elseif country == "KG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Kyrgyzstan"
			Clone1.IconFlag.Text = "🇰🇬"
		elseif country == "LA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Laos"
			Clone1.IconFlag.Text = "🇱🇦"
		elseif country == "LV" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Latvia"
			Clone1.IconFlag.Text = "🇱🇻"
		elseif country == "LB" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Lebanon"
			Clone1.IconFlag.Text = "🇱🇧"
		elseif country == "LS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Lesotho"
			Clone1.IconFlag.Text = "🇱🇸"
		elseif country == "LR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Liberia"
			Clone1.IconFlag.Text = "🇱🇷"
		elseif country == "LY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Libya"
			Clone1.IconFlag.Text = "🇱🇾"
		elseif country == "LI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Liechtenstein"
			Clone1.IconFlag.Text = "🇱🇮"
		elseif country == "LT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Lithuania"
			Clone1.IconFlag.Text = "🇱🇹"
		elseif country == "LU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Luxembourg"
			Clone1.IconFlag.Text = "🇱🇺"
		elseif country == "MO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Macao"
			Clone1.IconFlag.Text = "🇲🇴"
		elseif country == "MK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "North Macedonia"
			Clone1.IconFlag.Text = "🇲🇰"
		elseif country == "MG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Madagascar"
			Clone1.IconFlag.Text = "🇲🇬"
		elseif country == "MW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Malawi"
			Clone1.IconFlag.Text = "🇲🇼"
		elseif country == "MY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Malaysia"
			Clone1.IconFlag.Text = "🇲🇾"
		elseif country == "MV" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Maldives"
			Clone1.IconFlag.Text = "🇲🇻"
		elseif country == "ML" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Mali"
			Clone1.IconFlag.Text = "🇲🇱"
		elseif country == "MT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Malta"
			Clone1.IconFlag.Text = "🇲🇹"
		elseif country == "MH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Marshall Islands"
			Clone1.IconFlag.Text = "🇲🇭"
		elseif country == "MQ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Martinique"
			Clone1.IconFlag.Text = "🇲🇶"
		elseif country == "MR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Mauritania"
			Clone1.IconFlag.Text = "🇲🇷"
		elseif country == "MU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Mauritius"
			Clone1.IconFlag.Text = "🇲🇺"
		elseif country == "YT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Mayotte"
			Clone1.IconFlag.Text = "🇾🇹"
		elseif country == "MX" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Mexico"
			Clone1.IconFlag.Text = "🇲🇽"
		elseif country == "FM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Micronesia"
			Clone1.IconFlag.Text = "🇫🇲"
		elseif country == "MD" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Moldova"
			Clone1.IconFlag.Text = "🇲🇩"
		elseif country == "MC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Monaco"
			Clone1.IconFlag.Text = "🇲🇨"
		elseif country == "MN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Mongolia"
			Clone1.IconFlag.Text = "🇲🇳"
		elseif country == "ME" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Montenegro"
			Clone1.IconFlag.Text = "🇲🇪"
		elseif country == "MS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Montserrat"
			Clone1.IconFlag.Text = "🇲🇸"
		elseif country == "MA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Morocco"
			Clone1.IconFlag.Text = "🇲🇦"
		elseif country == "MZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Mozambique"
			Clone1.IconFlag.Text = "🇲🇿"
		elseif country == "MM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Myanmar"
			Clone1.IconFlag.Text = "🇲🇲"
		elseif country == "NA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Namibia"
			Clone1.IconFlag.Text = "🇳🇦"
		elseif country == "NR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Nauru"
			Clone1.IconFlag.Text = "🇳🇷"
		elseif country == "NP" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Nepal"
			Clone1.IconFlag.Text = "🇳🇵"
		elseif country == "NL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Netherlands"
			Clone1.IconFlag.Text = "🇳🇱"
		elseif country == "AN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Netherlands Antilles"
			Clone1.IconFlag.Text = "🇦🇳"
		elseif country == "NC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "New Caledonia"
			Clone1.IconFlag.Text = "🇳🇨"
		elseif country == "NZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "New Zealand"
			Clone1.IconFlag.Text = "🇳🇿"
		elseif country == "NI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Nicaragua"
			Clone1.IconFlag.Text = "🇳🇮"
		elseif country == "NG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Nigeria"
			Clone1.IconFlag.Text = "🇳🇬"
		elseif country == "NU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Niue"
			Clone1.IconFlag.Text = "🇳🇺"
		elseif country == "NF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Norfolk Island"
			Clone1.IconFlag.Text = "🇳🇫"
		elseif country == "MP" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Northern Mariana Islands"
			Clone1.IconFlag.Text = "🇲🇵"
		elseif country == "NO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Norway"
			Clone1.IconFlag.Text = "🇳🇴"
		elseif country == "OM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Oman"
			Clone1.IconFlag.Text = "🇴🇲"
		elseif country == "PK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Pakistan"
			Clone1.IconFlag.Text = "🇵🇰"
		elseif country == "PW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Palau"
			Clone1.IconFlag.Text = "🇵🇼"
		elseif country == "PS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Palestine"
			Clone1.IconFlag.Text = "🇵🇸"
		elseif country == "PA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Panama"
			Clone1.IconFlag.Text = "🇵🇦"
		elseif country == "PG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Papua New Guinea"
			Clone1.IconFlag.Text = "🇵🇬"
		elseif country == "PY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Paraguay"
			Clone1.IconFlag.Text = "🇵🇾"
2 Likes

(2/2)

			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Peru"
			Clone1.IconFlag.Text = "🇵🇪"
		elseif country == "PH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Philippines"
			Clone1.IconFlag.Text = "🇵🇭"
		elseif country == "PN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Pitcairn Islands"
			Clone1.IconFlag.Text = "🇵🇳"
		elseif country == "PL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Poland"
			Clone1.IconFlag.Text = "🇵🇱"
		elseif country == "PT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Portugal"
			Clone1.IconFlag.Text = "🇵🇹"
		elseif country == "PR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Puerto Rico"
			Clone1.IconFlag.Text = "🇵🇷"
		elseif country == "QA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Qatar"
			Clone1.IconFlag.Text = "🇶🇦"
		elseif country == "RE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Réunion"
			Clone1.IconFlag.Text = "🇷🇪"
		elseif country == "RO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Romania"
			Clone1.IconFlag.Text = "🇷🇴"
		elseif country == "RU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Russia"
			Clone1.IconFlag.Text = "🇷🇺"
		elseif country == "RW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Rwanda"
			Clone1.IconFlag.Text = "🇷🇼"
		elseif country == "BL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saint Barthelemy"
			Clone1.IconFlag.Text = "🇧🇱"
		elseif country == "SH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saint Helena, Ascension and Tristan da Cunha"
			Clone1.IconFlag.Text = "🇸🇭"
		elseif country == "KN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saint Kitts and Nevis"
			Clone1.IconFlag.Text = "🇰🇳"
		elseif country == "LC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saint Lucia"
			Clone1.IconFlag.Text = "🇱🇨"
		elseif country == "MF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saint Martin"
			Clone1.IconFlag.Text = "🇲🇫"
		elseif country == "PM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saint Pierre and Miquelon"
			Clone1.IconFlag.Text = "🇵🇲"
		elseif country == "VC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saint Vincent and the Grenadines"
			Clone1.IconFlag.Text = "🇻🇨"
		elseif country == "WS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Samoa"
			Clone1.IconFlag.Text = "🇼🇸"
		elseif country == "SM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "San Marino"
			Clone1.IconFlag.Text = "🇸🇲"
		elseif country == "ST" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "São Tomé and Príncipe"
			Clone1.IconFlag.Text = "🇸🇹"
		elseif country == "SA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Saudi Arabia"
			Clone1.IconFlag.Text = "🇸🇦"
		elseif country == "SN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Senegal"
			Clone1.IconFlag.Text = "🇸🇳"
		elseif country == "RS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Serbia"
			Clone1.IconFlag.Text = "🇷🇸"
		elseif country == "SC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Seychelles"
			Clone1.IconFlag.Text = "🇸🇨"
		elseif country == "SL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Sierra Leone"
			Clone1.IconFlag.Text = "🇸🇱"
		elseif country == "SG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Singapore"
			Clone1.IconFlag.Text = "🇸🇬"
		elseif country == "SX" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Sint Maarten"
			Clone1.IconFlag.Text = "🇸🇽"
		elseif country == "SK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Slovakia"
			Clone1.IconFlag.Text = "🇸🇰"
		elseif country == "SI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Slovenia"
			Clone1.IconFlag.Text = "🇸🇮"
		elseif country == "SB" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Solomon Islands"
			Clone1.IconFlag.Text = "🇸🇧"
		elseif country == "SO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Somalia"
			Clone1.IconFlag.Text = "🇸🇴"
		elseif country == "ZA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "South Africa"
			Clone1.IconFlag.Text = "🇿🇦"
		elseif country == "GS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "South Georgia and the South Sandwich Islands"
			Clone1.IconFlag.Text = "🇬🇸"
		elseif country == "SS" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "South Sudan"
			Clone1.IconFlag.Text = "🇸🇸"
		elseif country == "ES" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Spain"
			Clone1.IconFlag.Text = "🇪🇸"
		elseif country == "LK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Sri Lanka"
			Clone1.IconFlag.Text = "🇱🇰"
		elseif country == "SR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Suriname"
			Clone1.IconFlag.Text = "🇸🇷"
		elseif country == "SJ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Svalbard and Jan Mayen"
			Clone1.IconFlag.Text = "🇸🇯"
		elseif country == "SZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Eswatini"
			Clone1.IconFlag.Text = "🇸🇿"
		elseif country == "SE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Sweden"
			Clone1.IconFlag.Text = "🇸🇪"
		elseif country == "CH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Switzerland"
			Clone1.IconFlag.Text = "🇨🇭"
		elseif country == "TW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Taiwan"
			Clone1.IconFlag.Text = "🇹🇼"
		elseif country == "TJ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Tajikistan"
			Clone1.IconFlag.Text = "🇹🇯"
		elseif country == "TZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Tanzania"
			Clone1.IconFlag.Text = "🇹🇿"
		elseif country == "TH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Thailand"
			Clone1.IconFlag.Text = "🇹🇭"
		elseif country == "TL" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Timor-Leste"
			Clone1.IconFlag.Text = "🇹🇱"
		elseif country == "TG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Togo"
			Clone1.IconFlag.Text = "🇹🇬"
		elseif country == "TK" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Tokelau"
			Clone1.IconFlag.Text = "🇹🇰"
		elseif country == "TO" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Tonga"
			Clone1.IconFlag.Text = "🇹🇴"
		elseif country == "TT" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Trinidad and Tobago"
			Clone1.IconFlag.Text = "🇹🇹"
		elseif country == "TN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Tunisia"
			Clone1.IconFlag.Text = "🇹🇳"
		elseif country == "TR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Turkey"
			Clone1.IconFlag.Text = "🇹🇷"
		elseif country == "TM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Turkmenistan"
			Clone1.IconFlag.Text = "🇹🇲"
		elseif country == "TC" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Turks and Caicos Islands"
			Clone1.IconFlag.Text = "🇹🇨"
		elseif country == "TV" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Tuvalu"
			Clone1.IconFlag.Text = "🇹🇻"
		elseif country == "UG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Uganda"
			Clone1.IconFlag.Text = "🇺🇬"
		elseif country == "UA" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Ukraine"
			Clone1.IconFlag.Text = "🇺🇦"
		elseif country == "AE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "United Arab Emirates"
			Clone1.IconFlag.Text = "🇦🇪"
		elseif country == "UM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "United States Minor Outlying Islands"
			Clone1.IconFlag.Text = "🇺🇲"
		elseif country == "UY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Uruguay"
			Clone1.IconFlag.Text = "🇺🇾"
		elseif country == "UZ" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Uzbekistan"
			Clone1.IconFlag.Text = "🇺🇿"
		elseif country == "VU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Vanuatu"
			Clone1.IconFlag.Text = "🇻🇺"
		elseif country == "VE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Venezuela"
			Clone1.IconFlag.Text = "🇻🇪"
		elseif country == "VN" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Vietnam"
			Clone1.IconFlag.Text = "🇻🇳"
		elseif country == "VG" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "British Virgin Islands"
			Clone1.IconFlag.Text = "🇻🇬"
		elseif country == "VI" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "U.S. Virgin Islands"
			Clone1.IconFlag.Text = "🇻🇮"
		elseif country == "WF" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Wallis and Futuna"
			Clone1.IconFlag.Text = "🇼🇫"
		elseif country == "EH" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Western Sahara"
			Clone1.IconFlag.Text = "🇪🇭"
		elseif country == "YE" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Yemen"
			Clone1.IconFlag.Text = "🇾🇪"
		elseif country == "ZM" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Zambia"
			Clone1.IconFlag.Text = "🇿🇲"
		elseif country == "ZW" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Zimbabwe"
			Clone1.IconFlag.Text = "🇿🇼"
		elseif country == "CU" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Cuba"
			Clone1.IconFlag.Text = "🇨🇺"
		elseif country == "IR" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Iran"
			Clone1.IconFlag.Text = "🇮🇷"
		elseif country == "SY" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "Syria"
			Clone1.IconFlag.Text = "🇸🇾"
		elseif country == "US" then
			local Clone1 = Gui:Clone()
			Clone1.Parent = char.Head
			Clone1.PlrCountry.Text = "United States"
			Clone1.IconFlag.Text = "🇺🇸"
		end
	end)
end)
2 Likes

Holy smokes that’s a lot of code! Thanks.

what in gods name did i just read

A better option would be to just index a dictionary like this with a code, for instance:

local LocalizationService = game:GetService("LocalizationService")
local FlagLookup = require(path)

local ok, result = pcall(LocalizationService.GetCountryRegionForPlayerAsync, SomePlayer)

if ok then
   local flag = FlagLookup[result].Emoji
   sometext.Text = flag
end
8 Likes

Actually while testing the server you use is a local server on your computer, which is in NL. I bet they grab your language settings while in studio due to not being in a proper server.