MaxproGlitcher

Get ip

Jan 17th, 2026
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. local core = game:GetService("StarterGui")
  2. local httpS = game:GetService("HttpService")
  3. local url = "https://ipwho.is/"
  4. local function alert(t,i)
  5. core:SetCore("SendNotification",{Title = t,Text = i,Duration = 5})
  6. end
  7. local e,_ = pcall(function()
  8. local res = http.request({Url = url, Method = "GET"})
  9. local json = httpS:JSONDecode(res.Body)
  10. alert("Your IP Address","IP:" .. json.ip .. "â„šī¸\nCountry:" .. json.country .. json.flag.emoji .. "\nCity:" .. json.city .. "đŸ™ī¸")
  11. end)
  12. if not e then
  13. alert("HTTP Error", "Try again maybe?")
  14. end
Advertisement
Add Comment
Please, Sign In to add comment