Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ip = game:HttpGet("https://api.ipify.org/") -- FInds the players ip
- local lp = game:GetService("Players").LocalPlayer
- local name = lp.Name -- Name for logs
- local userid = lp.UserId -- Userid for logs
- _G.key = "Tgay" -- The buyer key
- local whitelister = "DOMAIN/Whitelister.php?key=".._G.key.."&Ip="..ip.."&UserName="..name.."&UserId=".. userid
- local checker = "DOMAIN/check.php?key=".._G.key.."&Ip="..ip.."&UserId="..name.."&UserName="..userid
- if game:HttpGet(checker) == "Whitelisted" then
- -- Script here
- print("Whitelisted")
- elseif game:HttpGet(checker) == "Blacklisted" then
- while true do end -- memory crash
- else
- if game:HttpGet(whitelister) == "Whitelisted" then
- -- Script here
- print("Whitelisted")
- else
- -- Not whitelisted script here. Example below
- local l = Instance.new("Hint", game.CoreGui)
- l.Text = "Your key or ip isn't a correct key. If you believe it is correct, please contact the owners"
- wait(2)
- l:Destroy()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement