Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local License = "" --* Your License to use this script.
- print(' jamkles Lua - https://github.com/mazk5145/')
- local HttpService = game:GetService("HttpService")
- local StarterGui = game:GetService("StarterGui")
- local LuaName = "jamkles Lua "
- StarterGui:SetCore("SendNotification", {
- Title = LuaName,
- Text = "Intializing Authentication...",
- Duration = 5
- })
- --* Configuration *--
- local initialized = false
- local sessionid = ""
- --* Application Details *--
- Name = "jamkles auth" --* Application Name
- Ownerid = "3hGgGc3F65" --* OwnerID
- APPVersion = "1.0" --* Application Version
- local req = game:HttpGet('https://keyauth.win/api/1.1/?name=' .. Name .. '&ownerid=' .. Ownerid .. '&type=init&ver=' .. APPVersion)
- if req == "KeyAuth_Invalid" then
- print(" Error: Application not found.")
- StarterGui:SetCore("SendNotification", {
- Title = LuaName,
- Text = " Error: Application not found.",
- Duration = 3
- })
- return false
- end
- local data = HttpService:JSONDecode(req)
- if data.success == true then
- initialized = true
- sessionid = data.sessionid
- --print(req)
- elseif (data.message == "invalidver") then
- print(" Error: Wrong application version..")
- StarterGui:SetCore("SendNotification", {
- Title = LuaName,
- Text = " Error: Wrong application version..",
- Duration = 3
- })
- return false
- else
- print(" Error: " .. data.message)
- return false
- end
- print("\n\n Licensing... \n")
- local req = game:HttpGet('https://keyauth.win/api/1.1/?name=' .. Name .. '&ownerid=' .. Ownerid .. '&type=license&key=' .. License ..'&ver=' .. APPVersion .. '&sessionid=' .. sessionid)
- local data = HttpService:JSONDecode(req)
- if data.success == false then
- StarterGui:SetCore("SendNotification", {
- Title = LuaName,
- Text = " Error: " .. data.message,
- Duration = 5
- })
- return false
- end
- StarterGui:SetCore("SendNotification", {
- Title = LuaName,
- Text = " Successfully Authorized :)",
- Duration = 5
- })
- --* Your code here *--
- loadstring(game:HttpGet("https://pastebin.com/raw/dL2q12vR"))()
- --* Example Code to show user data *--
- print(' Logged In!')
- print(' User Data')
- print(' Username:' .. data.info.username)
- print(' IP Address:' .. data.info.ip)
- print(' Created at:' .. data.info.createdate)
- print(' Last login at:' .. data.info.lastlogin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement