Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. local ip = game:HttpGet("https://api.ipify.org/") -- FInds the players ip
  2. local lp = game:GetService("Players").LocalPlayer
  3. local name = lp.Name -- Name for logs
  4. local userid = lp.UserId -- Userid for logs
  5. _G.key = "Tgay" -- The buyer key
  6. local whitelister = "DOMAIN/Whitelister.php?key=".._G.key.."&Ip="..ip.."&UserName="..name.."&UserId=".. userid
  7. local checker = "DOMAIN/check.php?key=".._G.key.."&Ip="..ip.."&UserId="..name.."&UserName="..userid
  8.  
  9. if game:HttpGet(checker) == "Whitelisted" then
  10. -- Script here
  11. print("Whitelisted")
  12. elseif game:HttpGet(checker) == "Blacklisted" then
  13. while true do end -- memory crash
  14. else
  15. if game:HttpGet(whitelister) == "Whitelisted" then
  16. -- Script here
  17. print("Whitelisted")
  18. else
  19. -- Not whitelisted script here. Example below
  20. local l = Instance.new("Hint", game.CoreGui)
  21. l.Text = "Your key or ip isn't a correct key. If you believe it is correct, please contact the owners"
  22. wait(2)
  23. l:Destroy()
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement