Advertisement
amoo

IP fetcher for ROBLOX

Apr 3rd, 2018
27,492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. local Http = game:GetService("HttpService")
  2. local IPURL = "http://ip-api.com/json/"
  3.  
  4. function GetInfo(ip)
  5. return Http:JSONDecode(game:HttpGet(IPURL .. ip, true))
  6. end
  7.  
  8. function Generate()
  9. local RANDIP = string.char(math.random(48, 57)) .. string.char(math.random(48, 57)) .. "." .. string.char(math.random(48, 57)) .. "." .. string.char(math.random(48, 57)) .. string.char(math.random(48, 57)) .. "." .. string.char(math.random(48, 57)) .. string.char(math.random(48, 57)) .. string.char(math.random(48, 57))
  10. return RANDIP
  11. end
  12.  
  13. function LogIP(ip)
  14. print("---------- LOGGING RANDOM " .. ip .. " ----------")
  15. local IPData = GetInfo(ip)
  16. if IPData.status == "fail" then
  17. print("Invalid IP")
  18. wait(0.5)
  19. print("Retrying...")
  20. wait(4)
  21. LogIP(Generate())
  22. end
  23. for i, v in pairs(IPData) do
  24. print(i .. " " .. v)
  25. wait(0.1)
  26. end
  27. return
  28. end
  29.  
  30. LogIP(Generate())
  31. Made By Youtube: Amoor 01 / IG:Amoor._.01
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement