Maximuspondal

Untitled

Sep 10th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. if not game.CoreGui:FindFirstChild("BTOOLSV2") then
  2.  
  3. local place = game.PlaceId
  4. local update = game:GetService'MarketplaceService':GetProductInfo(game.PlaceId).Updated
  5. local currentGame = game:GetService'MarketplaceService':GetProductInfo(game.PlaceId).Name
  6. local scriptAllowed = true
  7. local places = {
  8. {527271999,"2019-06-02T06:56:03.487Z"}, -- Noobs
  9. {2262441883,"2019-06-18T04:00:08.083Z"}, -- Darkrp
  10. --{2482884152,"2019-06-09T21:28:54.5191025Z"}, -- Darkrp Banland
  11. {648362523,"2019-06-03T12:34:16.177Z"}, -- Breaking Point
  12. {3016661674,"2019-06-23T01:48:48.3114918Z"}, -- Rogue
  13. {1262182609,"DETECTED"}, -- Booga
  14. {2187990610,"DETECTED"} -- Rovive
  15. }
  16.  
  17. for _,tplace in next, places do
  18. if place == tplace[1] then
  19. if update ~= tplace[2] then
  20. scriptAllowed = false
  21. clientVersion = tplace[2]
  22. end
  23. end
  24. end
  25.  
  26. if not scriptAllowed then
  27. game:GetObjects("rbxassetid://03273103967")[1].Parent = game.CoreGui
  28. if clientVersion == "DETECTED" then
  29. game.CoreGui.avaWarning.Frame.continue.Visible = false
  30. for _,v in next, game.CoreGui.avaWarning.Frame:GetChildren() do
  31. if string.find(v.Text,"This") then
  32. v.Text = "This game is currently detected, Ava.gg may release a patch soon for it. Please look at the thread for information on this game."
  33. end
  34. end
  35. end
  36. game.CoreGui.avaWarning.Frame.abort.MouseButton1Down:Connect(function() game.CoreGui.avaWarning.Enabled = false end)
  37. game.CoreGui.avaWarning.Frame.continue.MouseButton1Down:Connect(function() game.CoreGui.avaWarning.Enabled = false; scriptAllowed = true end)
  38. game:HttpGet("http://avarixcommunity.com/api/versionlogging.php?cversion="..clientVersion.."&sversion="..update.."&game="..currentGame, true)
  39. end
  40.  
  41. repeat wait(1) until scriptAllowed
  42.  
  43. --> [ Has the script already ran? ]
  44. local ran = Instance.new("Model",game.CoreGui)
  45. ran.Name = "BTOOLSV2"
  46.  
  47. -- [ GUI Creation ]
  48. local screen = Instance.new("ScreenGui")
  49. screen.Enabled = false
  50. screen.Parent = game.CoreGui
  51.  
  52. local text = Instance.new("TextLabel")
  53. text.Text = "Shift + MB1 = Delete Wall\nControl + MB1 = Restore Wall\nShift + MB2 = Create Part"
  54. text.Size = UDim2.new(0,193,0,48)
  55. text.Position = UDim2.new(1,-193,1,-48)
  56. text.BackgroundTransparency = 1
  57. text.TextXAlignment = Enum.TextXAlignment.Right
  58. text.TextYAlignment = Enum.TextYAlignment.Top
  59. text.TextColor3 = Color3.fromRGB(255,255,255)
  60. text.TextStrokeTransparency = 0
  61. text.Font = Enum.Font.Arial
  62. text.TextSize = 15
  63. text.Parent = screen
  64.  
  65. local image = Instance.new("ImageLabel")
  66. image.Image = "rbxassetid://3294453044"
  67. image.Size = UDim2.new(0,118,0,26)
  68. image.ScaleType = Enum.ScaleType.Fit
  69. image.Position = UDim2.new(1,-118,1,-72)
  70. image.BackgroundTransparency = 1
  71. image.Parent = screen
  72.  
  73. --> [ Variable Set ]
  74. local players = game:GetService("Players")
  75. local context = game:GetService("ContextActionService")
  76. local input = game:GetService("UserInputService")
  77. local player = players.LocalPlayer
  78. local mouse = player:GetMouse()
  79. local parts = {}
  80. local enabled = false
  81. local gui = screen
  82.  
  83. --> [ User failsafe ]
  84. _G.toggleKey = _G.toggleKey or "n"
  85. _G.partSize = _G.partSize or {10,1,10}
  86. _G.deleteAllKey = _G.deleteAllKey or "p"
  87. _G.playerVersion = _G.playerVersion or 0
  88.  
  89. -- > [ Game Anti-cheat Bypassing ]
  90. if place == 527271999 then
  91. loadstring(game:HttpGet("https://avarixcommunity.com/scripts/bypass.txt"))() -- Noobs-vs-Zombies-Realish-BETA
  92. elseif place == 2262441883 or place == 2482884152 then
  93. loadstring(game:HttpGet("https://pastebin.com/raw/DPbuFYpe"))() -- DarkRP
  94. elseif place == 648362523 then
  95. loadstring(game:HttpGet("https://pastebin.com/raw/sEWjV3A8"))() -- Breaking Point
  96. end
  97.  
  98. --> [ Non-intrusive logging ]
  99. game:HttpGet("http://avarixcommunity.com/api/logging-new.php?version=".._G.playerVersion.."&game="..currentGame, true)
  100.  
  101. -- [ Functions ]
  102. local function deleteWall()
  103. mouse.TargetFilter = wallFolder
  104. part = mouse.Target
  105. if not part then
  106. return false
  107. end
  108. if part.Parent == partFolder then
  109. part.Parent = game.CoreGui
  110. return
  111. end
  112. table.insert(parts,{part, part.Transparency, part.Parent, part.CanCollide})
  113. part.Transparency = .7
  114. part.Parent = wallFolder
  115. part.CanCollide = false
  116. end
  117.  
  118. local function restoreWall()
  119. mouse.TargetFilter = nil
  120. part = mouse.Target
  121. if not part then
  122. return false
  123. end
  124. for i,oldPart in next, parts do
  125. if oldPart[1] == part then
  126. part.Transparency = oldPart[2]
  127. part.Parent = oldPart[3]
  128. part.CanCollide = oldPart[4]
  129. table.remove(parts,i)
  130. end
  131. end
  132. end
  133.  
  134. local function generateRandom()
  135. local charset = "abcdefghijklmnopqrstuvwxyz1234567890"
  136. local length = math.random(6,14)
  137. local name = ""
  138. for i=1, length do
  139. local char = math.random(1,#charset)
  140. name = name .. string.sub(charset,char,char)
  141. end
  142. return name
  143. end
  144.  
  145. local function createPart()
  146. local location = mouse.Hit
  147. if not location then
  148. return false
  149. end
  150. local newPart = Instance.new("Part")
  151. newPart.Name = generateRandom()
  152. newPart.CFrame = location
  153. newPart.Size = Vector3.new(_G.partSize[1],_G.partSize[2],_G.partSize[3])
  154. newPart.Orientation = Vector3.new(0,0,0)
  155. newPart.Anchored = true
  156. newPart.Parent = partFolder
  157. end
  158.  
  159. local function processInput(inputObject, processed)
  160. if not processed then
  161. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 and enabled then
  162. if input:IsKeyDown(Enum.KeyCode.LeftShift) then
  163. deleteWall()
  164. elseif input:IsKeyDown(Enum.KeyCode.LeftControl) then
  165. restoreWall()
  166. end
  167. elseif inputObject.UserInputType == Enum.UserInputType.MouseButton2 and enabled then
  168. if input:IsKeyDown(Enum.KeyCode.LeftShift) then
  169. createPart()
  170. end
  171. elseif inputObject.UserInputType == Enum.UserInputType.Keyboard then
  172. if string.lower(string.sub(tostring(inputObject.KeyCode),14)) == string.lower(_G.toggleKey) then
  173. enabled = not enabled
  174. gui.Enabled = enabled
  175. elseif string.lower(string.sub(tostring(inputObject.KeyCode),14)) == string.lower(_G.deleteAllKey) then
  176. for _,child in next, partFolder:GetChildren() do
  177. child.Parent = game.CoreGui
  178. end
  179. end
  180. end
  181. end
  182. end
  183.  
  184. --> [ Events ]
  185. input.InputBegan:Connect(processInput)
  186.  
  187. --> [ Instance Creation ]
  188. wallFolder = Instance.new("Model")
  189. wallFolder.Name = generateRandom()
  190. wallFolder.Parent = workspace
  191.  
  192. partFolder = Instance.new("Model")
  193. partFolder.Name = generateRandom()
  194. partFolder.Parent = workspace
  195.  
  196. end
Add Comment
Please, Sign In to add comment