Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local core = game:GetService("StarterGui")
- local httpS = game:GetService("HttpService")
- local url = "https://ipwho.is/"
- local function alert(t,i)
- core:SetCore("SendNotification",{Title = t,Text = i,Duration = 5})
- end
- local e,_ = pcall(function()
- local res = http.request({Url = url, Method = "GET"})
- local json = httpS:JSONDecode(res.Body)
- alert("Your IP Address","IP:" .. json.ip .. "âšī¸\nCountry:" .. json.country .. json.flag.emoji .. "\nCity:" .. json.city .. "đī¸")
- end)
- if not e then
- alert("HTTP Error", "Try again maybe?")
- end
Advertisement
Add Comment
Please, Sign In to add comment