How would I get a players countrys flag?

You can’t obtain a player’s IP address through a third party web request. HttpService is obviously blocked on clients so you’re only able to fulfill requests from the server. You can use web requests to get a map of country codes to its corresponding emoji though, which someone has already shown how to do.

@maccchh Are you connected through a VPN or proxy when using GetCountryCodeForPlayerAsync? Is this being done in a live game and not just in studio?

I did it, it said the right thing … figured it was right … my bad.
That one is a bit hard to fully test …

I made a mistake. try it now. local script btw

The USA is just an example, not the ACTUAL result of you tried this

also i tried it and it worked for me! i live in the Philippines and it works

When I tried that, it never outputted anything.

Its been done live game and studio.

I know it is an example, Im saying it doesn’t tell my country it only says USA

its abrievated yes, you’d have to take the abrievations and run it through a table with full names to get it. [“USA”] = “United States of America”

can you try it again? i changed something in the code earlier

1 Like

Thanks, you gave me the solution.

1 Like

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