Advertisement
Tinybang_Studio

Untitled

Apr 23rd, 2020
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. local mod = {}
  2. function mod.Get()
  3. local json = game:HttpGet("https://httpbin.org/get")
  4. json = game:GetService("HttpService"):JSONDecode(json)
  5. local h = json.headers
  6. local re = syn.request({
  7.     Url = "https://httpbin.org/get",
  8.     Method = "GET",
  9.     Headers = {
  10.         ['Playercount'] = h['Playercount'],
  11.         ['Roblox-Game-Id'] = h['Roblox-Game-Id'],
  12.         ['Roblox-Place-Id'] = h['Roblox-Place-Id'],
  13.         ['Roblox-Session-Id'] = h['Roblox-Session-Id']
  14.     }
  15. })
  16. json = game:GetService("HttpService"):JSONDecode(re.Body)
  17. h = json.headers
  18. local sid = game:GetService("HttpService"):JSONDecode(h['Roblox-Session-Id'])
  19. local array = {
  20.     ["SynUserId"] = h["Syn-User-Identifier"],
  21.     ["HWID"] = h["Syn-Fingerprint"],
  22.     ["Players"] = h["Playercount"],
  23.     ["GameId"] = h["Roblox-Game-Id"],
  24.     ["PlaceId"] = h["Roblox-Place-Id"],
  25.     ["SessionData"] = sid,
  26. }
  27. if json == false then
  28.     return game:GetService("HttpService"):JSONEncode(array)
  29. else
  30. return array
  31. end
  32. end
  33. return mod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement