Advertisement
Guest User

Untitled

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