How would I find out a player's region/country?

How would i be able to get the client’s region? I don’t know where to start this, but it sounds like it may be helpful at some point because of restrictions in some countries.

You use LocalisationService’s GetCountryRegionForPlayerAsync to do this

local LS = game:GetService("LocalizationService")
game.Players.PlayerAdded:Connect(function(plr)
   local region = LS:GetCountryRegionForPlayerAsync(plr)
   print(region)
end)
1 Like

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