How to get a player's Server Region

Hello,

Recently I have seen people in their game get the players server region. Like for an example in arsenal, you see a text it the top right corner with the players server region. So I am wondering how I can get the players server region.

Thank you for your time.

Sincerely,

papahetfan

You can use the Localization:GetCountryRegionForPlayerAsync() function, theres already a post open with something a lot more specific here

1 Like

Is there a possible way to make a textlabel with the players server region?

1 Like
local Player = game:GetService("Players").LocalPlayer 
local LocalizationService = game:GetService("LocalizationService")
local success, country = pcall(LocalizationService.GetCountryRegionForPlayerAsync, LocalizationService, Player)
if success then
   TextLabel.Text = "You're from: "..country
end

4 Likes

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