Darkwidow10

Build & Survive hack GUI

May 5th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.49 KB | None | 0 0
  1. --[[
  2. ~ Description ~
  3.  
  4. This is a pretty powerful script I've made, you can edit some stuff at the top here (like the wall size/shape)
  5. along with the distance of the kill aura.
  6.  
  7. This was a really fun script to make all in all so :D cheers
  8. --------------------------------
  9. ~ Game ~
  10.  
  11. https://www.roblox.com/games/3056526277/Build-Survive#!/game-instances
  12. --------------------------------
  13. ~ Credit ~
  14.  
  15. Gui - brianops1
  16.  
  17. Scripter(s) - briansop1
  18. --]]
  19.  
  20. x = -252
  21. y = -8 --starting floor is -8
  22. z = 48 --Change this (by increments of 4) to change where the location of the wall is
  23. amount = 10
  24. WT = .01
  25.  
  26. _G.AuraDist = 75
  27.  
  28. _G.KEY = "LeftAlt" -- for the tp to mouse keybind
  29. _G.KEY1 = "H" -- for the Noclip keybind
  30.  
  31. function define()
  32. plr = game:GetService('Players').LocalPlayer
  33. Root = plr.Character.HumanoidRootPart
  34. UIS = game:GetService("UserInputService")
  35. mouse = plr:GetMouse()
  36. end
  37. print('loading')
  38. repeat
  39. wait()
  40. until pcall(define)
  41. local ScreenGui = Instance.new("ScreenGui")
  42. local MainFrame = Instance.new("Frame")
  43. local PreBuilt = Instance.new("Frame")
  44. local EB1 = Instance.new("TextButton")
  45. local Toplabel = Instance.new("TextLabel")
  46. local EB2 = Instance.new("TextButton")
  47. local EB3 = Instance.new("TextButton")
  48. local EB4 = Instance.new("TextButton")
  49. local EB5 = Instance.new("TextButton")
  50. local EB6 = Instance.new("TextButton")
  51. local Bottomlabel = Instance.new("TextLabel")
  52. local Game = Instance.new("TextLabel")
  53. local Minimize = Instance.new("TextButton")
  54. local Close = Instance.new("TextButton")
  55. local Credits = Instance.new("TextLabel")
  56. local B1 = Instance.new("TextButton")
  57. local B2 = Instance.new("TextButton")
  58. local B5 = Instance.new("TextButton")
  59. local B8 = Instance.new("TextButton")
  60. local B6 = Instance.new("TextButton")
  61. local B4 = Instance.new("TextButton")
  62. local B7 = Instance.new("TextButton")
  63. local B3 = Instance.new("TextButton")
  64. local BuiltInButton = Instance.new("TextButton")
  65. local Background = Instance.new("ImageLabel")
  66. ---------------------Gui Variables----------------------
  67. ScreenGui.Parent = game.CoreGui
  68. MainFrame.Name = "MainFrame"
  69. MainFrame.Parent = ScreenGui
  70. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  71. MainFrame.BorderColor3 = Color3.new(1, 0.835294, 0.172549)
  72. MainFrame.BorderSizePixel = 2
  73. MainFrame.Position = UDim2.new(0, 270, 0, 101)
  74. MainFrame.Size = UDim2.new(0, 278, 0, 279)
  75. MainFrame.Selectable = true
  76. MainFrame.Active = true
  77. MainFrame.Draggable = true
  78. PreBuilt.Name = "PreBuilt"
  79. PreBuilt.Parent = MainFrame
  80. PreBuilt.BackgroundColor3 = Color3.new(0.972549, 0.764706, 0.129412)
  81. PreBuilt.BorderSizePixel = 0
  82. PreBuilt.Position = UDim2.new(0, 287, 0, 17)
  83. PreBuilt.Size = UDim2.new(0, 186, 0, 246)
  84. PreBuilt.Visible = false
  85. EB1.Name = "EB1"
  86. EB1.Parent = PreBuilt
  87. EB1.BackgroundColor3 = Color3.new(1, 1, 1)
  88. EB1.BackgroundTransparency = 0.30000001192093
  89. EB1.BorderSizePixel = 0
  90. EB1.Position = UDim2.new(0, 0, 0.117886186, 0)
  91. EB1.Size = UDim2.new(0, 186, 0, 25)
  92. EB1.Font = Enum.Font.SourceSans
  93. EB1.Text = ""
  94. EB1.TextColor3 = Color3.new(0, 0, 0)
  95. EB1.TextSize = 13
  96. Toplabel.Name = "Toplabel"
  97. Toplabel.Parent = PreBuilt
  98. Toplabel.BackgroundColor3 = Color3.new(1, 1, 1)
  99. Toplabel.BackgroundTransparency = 0.20000000298023
  100. Toplabel.BorderSizePixel = 0
  101. Toplabel.Position = UDim2.new(0, 0, -0.008130081, 0)
  102. Toplabel.Size = UDim2.new(0, 186, 0, 25)
  103. Toplabel.Font = Enum.Font.SourceSans
  104. Toplabel.Text = "Built In Scripts"
  105. Toplabel.TextColor3 = Color3.new(0, 0, 0)
  106. Toplabel.TextSize = 14
  107. Toplabel.TextWrapped = true
  108. EB2.Name = "EB2"
  109. EB2.Parent = PreBuilt
  110. EB2.BackgroundColor3 = Color3.new(1, 1, 1)
  111. EB2.BackgroundTransparency = 0.30000001192093
  112. EB2.BorderSizePixel = 0
  113. EB2.Position = UDim2.new(0, 0, 0.243902445, 0)
  114. EB2.Size = UDim2.new(0, 186, 0, 25)
  115. EB2.Font = Enum.Font.SourceSans
  116. EB2.Text = ""
  117. EB2.TextColor3 = Color3.new(0, 0, 0)
  118. EB2.TextSize = 13
  119. EB3.Name = "EB3"
  120. EB3.Parent = PreBuilt
  121. EB3.BackgroundColor3 = Color3.new(1, 1, 1)
  122. EB3.BackgroundTransparency = 0.30000001192093
  123. EB3.BorderSizePixel = 0
  124. EB3.Position = UDim2.new(0, 0, 0, 91)
  125. EB3.Size = UDim2.new(0, 186, 0, 25)
  126. EB3.Font = Enum.Font.SourceSans
  127. EB3.Text = ""
  128. EB3.TextColor3 = Color3.new(0, 0, 0)
  129. EB3.TextSize = 13
  130. EB4.Name = "EB4"
  131. EB4.Parent = PreBuilt
  132. EB4.BackgroundColor3 = Color3.new(1, 1, 1)
  133. EB4.BackgroundTransparency = 0.30000001192093
  134. EB4.BorderSizePixel = 0
  135. EB4.Position = UDim2.new(0, 0, 0.495934963, 0)
  136. EB4.Size = UDim2.new(0, 186, 0, 25)
  137. EB4.Font = Enum.Font.SourceSans
  138. EB4.Text = ""
  139. EB4.TextColor3 = Color3.new(0, 0, 0)
  140. EB4.TextSize = 13
  141. EB5.Name = "EB5"
  142. EB5.Parent = PreBuilt
  143. EB5.BackgroundColor3 = Color3.new(1, 1, 1)
  144. EB5.BackgroundTransparency = 0.30000001192093
  145. EB5.BorderSizePixel = 0
  146. EB5.Position = UDim2.new(0, 0, 0, 153)
  147. EB5.Size = UDim2.new(0, 186, 0, 25)
  148. EB5.Font = Enum.Font.SourceSans
  149. EB5.Text = ""
  150. EB5.TextColor3 = Color3.new(0, 0, 0)
  151. EB5.TextSize = 13
  152. EB6.Name = "EB6"
  153. EB6.Parent = PreBuilt
  154. EB6.BackgroundColor3 = Color3.new(1, 1, 1)
  155. EB6.BackgroundTransparency = 0.30000001192093
  156. EB6.BorderSizePixel = 0
  157. EB6.Position = UDim2.new(0, 0, 0.747967541, 0)
  158. EB6.Size = UDim2.new(0, 186, 0, 25)
  159. EB6.Font = Enum.Font.SourceSans
  160. EB6.Text = ""
  161. EB6.TextColor3 = Color3.new(0, 0, 0)
  162. EB6.TextSize = 13
  163. Bottomlabel.Name = "Bottomlabel"
  164. Bottomlabel.Parent = PreBuilt
  165. Bottomlabel.BackgroundColor3 = Color3.new(1, 1, 1)
  166. Bottomlabel.BackgroundTransparency = 0.20000000298023
  167. Bottomlabel.BorderSizePixel = 0
  168. Bottomlabel.Position = UDim2.new(0, 0, 0.898373961, 0)
  169. Bottomlabel.Size = UDim2.new(0, 186, 0, 25)
  170. Bottomlabel.Font = Enum.Font.SourceSans
  171. Bottomlabel.Text = "Good Scripts to have eh?"
  172. Bottomlabel.TextColor3 = Color3.new(0, 0, 0)
  173. Bottomlabel.TextSize = 13
  174. Game.Name = "Game"
  175. Game.Parent = MainFrame
  176. Game.BackgroundColor3 = Color3.new(1, 1, 1)
  177. Game.BackgroundTransparency = 0.20000000298023
  178. Game.BorderColor3 = Color3.new(1, 1, 1)
  179. Game.BorderSizePixel = 0
  180. Game.Position = UDim2.new(0, 0,0, -2)
  181. Game.Size = UDim2.new(0, 227, 0, 25)
  182. Game.ZIndex = 2
  183. Game.Font = Enum.Font.SourceSans
  184. Game.Text = "Game Name Is Supposed to Be Here"
  185. Game.TextColor3 = Color3.new(0, 0, 0)
  186. Game.TextSize = 13
  187. Game.TextWrapped = true
  188. Minimize.Name = "Minimize"
  189. Minimize.Parent = MainFrame
  190. Minimize.BackgroundColor3 = Color3.new(1, 1, 1)
  191. Minimize.BackgroundTransparency = 0.20000000298023
  192. Minimize.BorderSizePixel = 0
  193. Minimize.Position = UDim2.new(0, 227,0, -2)
  194. Minimize.Size = UDim2.new(0, 25, 0, 25)
  195. Minimize.ZIndex = 2
  196. Minimize.Font = Enum.Font.SourceSans
  197. Minimize.Text = "-"
  198. Minimize.TextColor3 = Color3.new(0, 0, 0)
  199. Minimize.TextSize = 24
  200. Close.Name = "Close"
  201. Close.Parent = MainFrame
  202. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  203. Close.BackgroundTransparency = 0.20000000298023
  204. Close.BorderSizePixel = 0
  205. Close.Position = UDim2.new(0, 251, 0, -2)
  206. Close.Size = UDim2.new(0, 28, 0, 25)
  207. Close.ZIndex = 2
  208. Close.Font = Enum.Font.SourceSans
  209. Close.Text = "x"
  210. Close.TextColor3 = Color3.new(0, 0, 0)
  211. Close.TextSize = 16
  212. Credits.Name = "Credits"
  213. Credits.Parent = MainFrame
  214. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  215. Credits.BackgroundTransparency = 0.20000000298023
  216. Credits.BorderColor3 = Color3.new(1, 1, 1)
  217. Credits.BorderSizePixel = 0
  218. Credits.Position = UDim2.new(-0.00359712238, 0, 0.9048931, 0)
  219. Credits.Size = UDim2.new(0, 278, 0, 28)
  220. Credits.ZIndex = 2
  221. Credits.Font = Enum.Font.SourceSans
  222. Credits.Text = "Gui ~ brianops1 | Scripter(s) ~ "
  223. Credits.TextColor3 = Color3.new(0, 0, 0)
  224. Credits.TextSize = 13
  225. Credits.TextWrapped = true
  226. B1.Name = "B1"
  227. B1.Parent = MainFrame
  228. B1.BackgroundColor3 = Color3.new(1, 1, 1)
  229. B1.BackgroundTransparency = 0.20000000298023
  230. B1.BorderColor3 = Color3.new(1, 1, 1)
  231. B1.Position = UDim2.new(0.0242086351, 0, 0.218306571, 0)
  232. B1.Size = UDim2.new(0, 125, 0, 40)
  233. B1.ZIndex = 2
  234. B1.Font = Enum.Font.SourceSans
  235. B1.Text = ""
  236. B1.TextColor3 = Color3.new(0, 0, 0)
  237. B1.TextSize = 13
  238. B1.TextWrapped = true
  239. B2.Name = "B2"
  240. B2.Parent = MainFrame
  241. B2.BackgroundColor3 = Color3.new(1, 1, 1)
  242. B2.BackgroundTransparency = 0.20000000298023
  243. B2.BorderColor3 = Color3.new(1, 1, 1)
  244. B2.Position = UDim2.new(0, 144, 0, 60)
  245. B2.Size = UDim2.new(0, 125, 0, 41)
  246. B2.ZIndex = 2
  247. B2.Font = Enum.Font.SourceSans
  248. B2.Text = ""
  249. B2.TextColor3 = Color3.new(0, 0, 0)
  250. B2.TextSize = 13
  251. B2.TextWrapped = true
  252. B5.Name = "B5"
  253. B5.Parent = MainFrame
  254. B5.BackgroundColor3 = Color3.new(1, 1, 1)
  255. B5.BackgroundTransparency = 0.20000000298023
  256. B5.BorderColor3 = Color3.new(1, 1, 1)
  257. B5.Position = UDim2.new(0.0251798555, 0, 0.559432089, 0)
  258. B5.Size = UDim2.new(0, 125, 0, 40)
  259. B5.ZIndex = 2
  260. B5.Font = Enum.Font.SourceSans
  261. B5.Text = ""
  262. B5.TextColor3 = Color3.new(0, 0, 0)
  263. B5.TextSize = 13
  264. B5.TextWrapped = true
  265. B8.Name = "B8"
  266. B8.Parent = MainFrame
  267. B8.BackgroundColor3 = Color3.new(1, 1, 1)
  268. B8.BackgroundTransparency = 0.20000000298023
  269. B8.BorderColor3 = Color3.new(1, 1, 1)
  270. B8.Position = UDim2.new(0, 144, 0, 204)
  271. B8.Size = UDim2.new(0, 125, 0, 40)
  272. B8.ZIndex = 2
  273. B8.Font = Enum.Font.SourceSans
  274. B8.Text = ""
  275. B8.TextColor3 = Color3.new(0, 0, 0)
  276. B8.TextSize = 13
  277. B8.TextWrapped = true
  278. B6.Name = "B6"
  279. B6.Parent = MainFrame
  280. B6.BackgroundColor3 = Color3.new(1, 1, 1)
  281. B6.BackgroundTransparency = 0.20000000298023
  282. B6.BorderColor3 = Color3.new(1, 1, 1)
  283. B6.Position = UDim2.new(0.517985642, 0, 0.557863712, 0)
  284. B6.Size = UDim2.new(0, 125, 0, 40)
  285. B6.ZIndex = 2
  286. B6.Font = Enum.Font.SourceSans
  287. B6.Text = ""
  288. B6.TextColor3 = Color3.new(0, 0, 0)
  289. B6.TextSize = 13
  290. B6.TextWrapped = true
  291. B4.Name = "B4"
  292. B4.Parent = MainFrame
  293. B4.BackgroundColor3 = Color3.new(1, 1, 1)
  294. B4.BackgroundTransparency = 0.20000000298023
  295. B4.BorderColor3 = Color3.new(1, 1, 1)
  296. B4.Position = UDim2.new(0, 144, 0, 109)
  297. B4.Size = UDim2.new(0, 125, 0, 40)
  298. B4.ZIndex = 2
  299. B4.Font = Enum.Font.SourceSans
  300. B4.Text = ""
  301. B4.TextColor3 = Color3.new(0, 0, 0)
  302. B4.TextSize = 13
  303. B4.TextWrapped = true
  304. B7.Name = "B7"
  305. B7.Parent = MainFrame
  306. B7.BackgroundColor3 = Color3.new(1, 1, 1)
  307. B7.BackgroundTransparency = 0.20000000298023
  308. B7.BorderColor3 = Color3.new(1, 1, 1)
  309. B7.Position = UDim2.new(0.0251798555, 0, 0.731607914, 0)
  310. B7.Size = UDim2.new(0, 125, 0, 40)
  311. B7.ZIndex = 2
  312. B7.Font = Enum.Font.SourceSans
  313. B7.Text = ""
  314. B7.TextColor3 = Color3.new(0, 0, 0)
  315. B7.TextSize = 13
  316. B7.TextWrapped = true
  317. B3.Name = "B3"
  318. B3.Parent = MainFrame
  319. B3.BackgroundColor3 = Color3.new(1, 1, 1)
  320. B3.BackgroundTransparency = 0.20000000298023
  321. B3.BorderColor3 = Color3.new(1, 1, 1)
  322. B3.Position = UDim2.new(0.0251798555, 0, 0.392196536, 0)
  323. B3.Size = UDim2.new(0, 125, 0, 40)
  324. B3.ZIndex = 2
  325. B3.Font = Enum.Font.SourceSans
  326. B3.Text = ""
  327. B3.TextColor3 = Color3.new(0, 0, 0)
  328. B3.TextSize = 13
  329. B3.TextWrapped = true
  330. BuiltInButton.Name = "BuiltInButton"
  331. BuiltInButton.Parent = MainFrame
  332. BuiltInButton.BackgroundColor3 = Color3.new(1, 1, 1)
  333. BuiltInButton.BackgroundTransparency = 0.20000000298023
  334. BuiltInButton.BorderSizePixel = 0
  335. BuiltInButton.Position = UDim2.new(0.0242086723, 0, 0.112921163, 0)
  336. BuiltInButton.Size = UDim2.new(0, 262, 0, 22)
  337. BuiltInButton.ZIndex = 2
  338. BuiltInButton.Font = Enum.Font.SourceSans
  339. BuiltInButton.Text = "Toggle Built-In Gui Scripts"
  340. BuiltInButton.TextColor3 = Color3.new(0, 0, 0)
  341. BuiltInButton.TextSize = 13
  342. BuiltInButton.TextWrapped = true
  343. Background.Name = "Background"
  344. Background.Parent = MainFrame
  345. Background.BackgroundColor3 = Color3.new(1, 1, 1)
  346. Background.BorderSizePixel = 0
  347. Background.LayoutOrder = 1
  348. Background.Size = UDim2.new(0, 277, 0, 281)
  349. Background.Image = "rbxassetid://325122566"
  350. B1.BorderSizePixel = 0
  351. B2.BorderSizePixel = 0
  352. B3.BorderSizePixel = 0
  353. B4.BorderSizePixel = 0
  354. B5.BorderSizePixel = 0
  355. B6.BorderSizePixel = 0
  356. B7.BorderSizePixel = 0
  357. B8.BorderSizePixel = 0
  358. _G.noclip = false
  359. ------------------PreBuilt Scripts-----------------------
  360. EB1.Text = "Dex"
  361. EB2.Text = "R2S"
  362. EB3.Text = "Noclip (Default H)"
  363. EB4.Text = "Tp to mouse (Default LeftAlt)"
  364. EB5.Text = "Print/Copy Vector3 position"
  365. EB6.Text = "Baseplate (click again to tp back)"
  366.  
  367. EB1.MouseButton1Click:connect(function()
  368. loadstring(game:GetObjects('rbxassetid://2180084478')[1].Source)()
  369. end)
  370. EB2.MouseButton1Click:connect(function()
  371. loadstring(game:HttpGet(('https://pastebin.com/raw/c12tidMB'),true))()
  372. end)
  373. EB3.MouseButton1Click:connect(function()
  374. UIS.InputBegan:connect(function(Input)
  375. plr = game:GetService('Players').LocalPlayer
  376. UIS = game:GetService("UserInputService")
  377. mouse = plr:GetMouse()
  378. local KeyCode = Input.KeyCode
  379. if KeyCode == Enum.KeyCode[_G.KEY1] and _G.noclip == false then
  380. _G.noclip = true
  381. while _G.noclip do
  382. plr.Character.Humanoid:ChangeState(11)
  383. game:GetService('RunService').Stepped:wait()
  384. end
  385. elseif KeyCode == Enum.KeyCode[_G.KEY1] and _G.noclip then
  386. _G.noclip = false
  387. end
  388. end)
  389. end)
  390. EB4.MouseButton1Click:connect(function()
  391. UIS.InputBegan:connect(function(Input)
  392. plr = game:GetService('Players').LocalPlayer
  393. UIS = game:GetService("UserInputService")
  394. mouse = plr:GetMouse()
  395. local KeyCode = Input.KeyCode
  396. if KeyCode == Enum.KeyCode[_G.KEY] then
  397. local hum = plr.Character.HumanoidRootPart
  398. if mouse.Target then
  399. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 4, mouse.Hit.z)
  400. end
  401. end
  402. end)
  403. end)
  404. EB5.MouseButton1Click:connect(function()
  405. x = loc(Root.CFrame.x)
  406. y = loc(Root.CFrame.y)
  407. z = loc(Root.CFrame.z)
  408. print('-----------------')
  409. print('Your x value is '.. x)
  410. print('Your y value is '.. y)
  411. print('Your z value is '.. z)
  412. pcall(copy,x,y,z)
  413. end)
  414. EB6.MouseButton1Click:connect(function()
  415. local check = game.Workspace:FindFirstChild("BRIAN'S PLATFORM")
  416. if check then
  417. Root.CFrame = _G.StartingPosition
  418. check:Destroy()
  419. else
  420. _G.StartingPosition = Root.CFrame
  421. local P = Instance.new("Part", workspace)
  422. P.Anchored = true
  423. P.CFrame = Root.CFrame * CFrame.new(0, 5500, 0)
  424. P.Name = "BRIAN'S PLATFORM"
  425. P.Size = Vector3.new(80, 1, 80)
  426. Root.CFrame = P.CFrame * CFrame.new(0,5,0)
  427. end
  428. end)
  429.  
  430. ---------------------Functions---------------------------
  431. function VarOff()
  432. _G.on1 = 0
  433. _G.on2 = 0
  434. _G.on3 = 0
  435. _G.on4 = 0
  436. _G.on5 = 0
  437. _G.on6 = 0
  438. _G.on7 = 0
  439. _G.on8 = 0
  440. end
  441. function loc(cframe)
  442. local location = string.find(cframe, ".", 1, true)
  443. if location == nil then
  444. return cframe
  445. end
  446. return string.sub(cframe, 1, location + 1)
  447. end
  448. function copy(x,y,z)
  449. setclipboard(x .. ", " .. y .. ", " .. z)
  450. end
  451. VarOff()
  452. m = 0
  453. Minimize.MouseButton1Click:connect(function()
  454. if m == 0 then
  455. m = 1
  456. opennn = PreBuilt.Visible
  457. B1.Visible = false
  458. B2.Visible = false
  459. B3.Visible = false
  460. B4.Visible = false
  461. B5.Visible = false
  462. B6.Visible = false
  463. B7.Visible = false
  464. B8.Visible = false
  465. BuiltInButton.Visible = false
  466. Credits.Visible = false
  467. PreBuilt.Visible = false
  468. Background.Size = UDim2.new(0,278,0,25)
  469. MainFrame.Size = UDim2.new(0,278,0,25)
  470. else
  471. m = 0
  472. B1.Visible = true
  473. B2.Visible = true
  474. B3.Visible = true
  475. B4.Visible = true
  476. B5.Visible = true
  477. B6.Visible = true
  478. B7.Visible = true
  479. B8.Visible = true
  480. BuiltInButton.Visible = true
  481. Credits.Visible = true
  482. PreBuilt.Visible = opennn
  483. Background.Size = UDim2.new(0,278,0,281)
  484. MainFrame.Size = UDim2.new(0,278,0,279)
  485. end
  486. end)
  487. Close.MouseButton1Click:connect(function()
  488. VarOff()
  489. ScreenGui:Destroy()
  490. end)
  491. builtin = 0
  492. BuiltInButton.MouseButton1Click:connect(function()
  493. if builtin == 0 then
  494. builtin = 1
  495. PreBuilt.Visible = true
  496. else
  497. builtin = 0
  498. PreBuilt.Visible = false
  499. end
  500. end)
  501. function ON(button)
  502. if button.Name == "B1" then
  503. _G.on1 = 1
  504. elseif button.Name == "B2" then
  505. _G.on2 = 1
  506. elseif button.Name == "B3" then
  507. _G.on3 = 1
  508. elseif button.Name == "B4" then
  509. _G.on4 = 1
  510. elseif button.Name == "B5" then
  511. _G.on5 = 1
  512. elseif button.Name == "B6" then
  513. _G.on6 = 1
  514. elseif button.Name == "B7" then
  515. _G.on7 = 1
  516. elseif button.Name == "B8" then
  517. _G.on8 = 1
  518. end
  519. button.BorderSizePixel = 2
  520. button.BorderColor3 = Color3.fromRGB(0, 0, 0)
  521. end
  522. function OFF(button)
  523. if button.Name == "B1" then
  524. _G.on1 = 0
  525. elseif button.Name == "B2" then
  526. _G.on2 = 0
  527. elseif button.Name == "B3" then
  528. _G.on3 = 0
  529. elseif button.Name == "B4" then
  530. _G.on4 = 0
  531. elseif button.Name == "B5" then
  532. _G.on5 = 0
  533. elseif button.Name == "B6" then
  534. _G.on6 = 0
  535. elseif button.Name == "B7" then
  536. _G.on7 = 0
  537. elseif button.Name == "B8" then
  538. _G.on8 = 0
  539. end
  540. button.BorderSizePixel = 0
  541. button.BorderColor3 = Color3.fromRGB(255, 255, 255)
  542. end
  543. function DMG(amt,obj)
  544. local A_1 =
  545. {
  546. [1] =
  547. {
  548. [1] = obj,
  549. [2] = amt
  550. }
  551. }
  552. local Event = game:GetService("Workspace")["__REMOTES"].Game["Mob Do Damage"]
  553. Event:FireServer(A_1)
  554. end
  555. function isin(obj,tbl)
  556. for a = 1,#tbl do
  557. if obj == tbl[a] then
  558. return true
  559. end
  560. end
  561. return false
  562. end
  563. ---------------------Main Code---------------------------
  564.  
  565. Game.Text = "Build and survive" -- Game name here
  566.  
  567. Credits.Text = Credits.Text .. "brianops1" --Scripter(s) name(s) here
  568.  
  569.  
  570. B1.Text = "Kill All Monsters (and pickup loot)" --Script Names go here
  571. B2.Text = "Kill Aura and autopickup loot"
  572. B3.Text = "Kill Part"
  573. B4.Text = "Wood Wall"
  574. B5.Text = "Brick Wall"
  575. B6.Text = "Metal Wall"
  576. B7.Text = ""
  577. B8.Text = ""
  578.  
  579.  
  580. B1.MouseButton1Click:connect(function()
  581. if _G.on1 == 1 then
  582. OFF(B1)
  583. else
  584. ON(B1)
  585. game:GetService('RunService').Stepped:wait()
  586. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Monsters:GetChildren()) do
  587. if v and v.ClassName == "Model" then
  588. if v.Name == "RougeBot" then
  589. DMG(85,v)
  590. elseif v.Name == "Robot" then
  591. DMG(80,v)
  592. elseif v.Name == "Zombie" then
  593. DMG(100,v)
  594. elseif v.Name == "Skeleton" then
  595. DMG(80,v)
  596. elseif v.Name == "Tank" then
  597. DMG(675,v)
  598. else
  599. DMG(100,v)
  600. end
  601. end
  602. end
  603. wait(.5)
  604. for i,v in pairs(game:GetService("Workspace")["__DEBRIS"]:GetChildren()) do
  605. local ID = v:FindFirstChild("UID")
  606. if ID then
  607. local A_1 =
  608. {
  609. [1] = ID.Value
  610. }
  611. local Event = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
  612. Event:FireServer(A_1)
  613. end
  614. end
  615. OFF(B1)
  616. end
  617. end)
  618.  
  619. B2.MouseButton1Click:connect(function()
  620. if _G.on2 == 1 then
  621. OFF(B2)
  622. else
  623. ON(B2)
  624. game:GetService('RunService').Stepped:wait()
  625. while _G.on2 == 1 do
  626. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Monsters:GetChildren()) do
  627. if v and v.ClassName == "Model" then
  628. local part = v:FindFirstChild("HumanoidRootPart")
  629. if part then
  630. local m = (Root.Position - part.Position).magnitude
  631. if v.Name == "RougeBot" and m < _G.AuraDist then
  632. DMG(85,v)
  633. elseif v.Name == "Robot" and m < _G.AuraDist then
  634. DMG(80,v)
  635. elseif v.Name == "Zombie" and m < _G.AuraDist then
  636. DMG(100,v)
  637. elseif v.Name == "Skeleton" and m < _G.AuraDist then
  638. DMG(80,v)
  639. elseif v.Name == "Tank" and m < _G.AuraDist then
  640. DMG(675,v)
  641. elseif m < _G.AuraDist then
  642. DMG(100,v)
  643. end
  644. end
  645. end
  646. end
  647. game:GetService('RunService').Stepped:wait()
  648. for i,v in pairs(game:GetService("Workspace")["__DEBRIS"]:GetChildren()) do
  649. local ID = v:FindFirstChild("UID")
  650. if ID then
  651. game:GetService('RunService').Stepped:wait()
  652. local A_1 =
  653. {
  654. [1] = ID.Value
  655. }
  656. local Event = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
  657. Event:FireServer(A_1)
  658. end
  659. end
  660. end
  661. OFF(B2)
  662. end
  663. end)
  664.  
  665. B3.MouseButton1Click:connect(function()
  666. if _G.on3 == 1 then
  667. OFF(B3)
  668. else
  669. ON(B3)
  670. game:GetService('RunService').Stepped:wait()
  671. local search = game.Workspace:FindFirstChild("DeathPart")
  672. if search then
  673. search:Destroy()
  674. end
  675. local DeathP = Instance.new("Part",workspace)
  676. DeathP.Size = Vector3.new(400,6,11)
  677. DeathP.Position = Vector3.new(-70.3, 9.1, -133.9)
  678. DeathP.Name = "DeathPart"
  679. DeathP.Anchored = true
  680. DeathP.Transparency = .99
  681. mobs = {}
  682. while _G.on3 == 1 do
  683. wait()
  684. tbl = DeathP:GetTouchingParts()
  685. if #tbl > 0 then
  686. for i = 1,#tbl do
  687. if tbl[i] ~= "Coin" and tbl[i] ~= "Star" and tbl[i] ~= "Heart" and isin(tbl[i].Parent,mobs) == false then
  688. table.insert(mobs,tbl[i].Parent)
  689. end
  690. end
  691. for i = 1,#mobs do
  692. DMG(675,mobs[1])
  693. table.remove(mobs,1)
  694. end
  695. end
  696. end
  697. OFF(B3)
  698. end
  699. end)
  700.  
  701. B4.MouseButton1Click:connect(function()
  702. if _G.on4 == 1 then
  703. OFF(B4)
  704. else
  705. ON(B4)
  706. game:GetService('RunService').Stepped:wait()
  707. newz = z
  708. for a = 1,amount do
  709. newx = x
  710. newy = y
  711. newz = newz + 4
  712. for i = 1, 90 do
  713. wait(WT)
  714. newx = newx + 4
  715. local A_1 = CFrame.new(newx, y, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  716. local A_2 = "Wood"
  717. local A_3 = game:GetService("Workspace"):FindFirstChildOfClass("Part",true)
  718. local A_4 = CFrame.new(newx, y, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  719. local Event = game:GetService("Workspace")["__REMOTES"].Game["Place Block"]
  720. Event:FireServer(A_1, A_2, A_3, A_4)
  721. newy = y + 4
  722. local A_1 = CFrame.new(newx, newy, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  723. local A_2 = "Wood"
  724. local A_3 = game:GetService("Workspace"):FindFirstChildOfClass("Part",true)
  725. local A_4 = CFrame.new(newx, newy, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  726. local Event = game:GetService("Workspace")["__REMOTES"].Game["Place Block"]
  727. Event:FireServer(A_1, A_2, A_3, A_4)
  728. end
  729. end
  730. OFF(B4)
  731. end
  732. end)
  733.  
  734. B5.MouseButton1Click:connect(function()
  735. if _G.on5 == 1 then
  736. OFF(B5)
  737. else
  738. ON(B5)
  739. game:GetService('RunService').Stepped:wait()
  740. newz = z
  741. for a = 1,amount do
  742. newx = x
  743. newy = y
  744. newz = newz + 4
  745. for i = 1, 90 do
  746. wait(WT)
  747. newx = newx + 4
  748. local A_1 = CFrame.new(newx, y, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  749. local A_2 = "Brick"
  750. local A_3 = game:GetService("Workspace"):FindFirstChildOfClass("Part",true)
  751. local A_4 = CFrame.new(newx, y, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  752. local Event = game:GetService("Workspace")["__REMOTES"].Game["Place Block"]
  753. Event:FireServer(A_1, A_2, A_3, A_4)
  754. newy = y + 4
  755. local A_1 = CFrame.new(newx, newy, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  756. local A_2 = "Brick"
  757. local A_3 = game:GetService("Workspace"):FindFirstChildOfClass("Part",true)
  758. local A_4 = CFrame.new(newx, newy, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  759. local Event = game:GetService("Workspace")["__REMOTES"].Game["Place Block"]
  760. Event:FireServer(A_1, A_2, A_3, A_4)
  761. end
  762. end
  763. OFF(B5)
  764. end
  765. end)
  766.  
  767. B6.MouseButton1Click:connect(function()
  768. if _G.on6 == 1 then
  769. OFF(B6)
  770. else
  771. ON(B6)
  772. game:GetService('RunService').Stepped:wait()
  773. newz = z
  774. for a = 1,amount do
  775. newx = x
  776. newy = y
  777. newz = newz + 4
  778. for i = 1, 90 do
  779. wait(WT)
  780. newx = newx + 4
  781. local A_1 = CFrame.new(newx, y, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  782. local A_2 = "Metal"
  783. local A_3 = game:GetService("Workspace"):FindFirstChildOfClass("Part",true)
  784. local A_4 = CFrame.new(newx, y, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  785. local Event = game:GetService("Workspace")["__REMOTES"].Game["Place Block"]
  786. Event:FireServer(A_1, A_2, A_3, A_4)
  787. newy = y + 4
  788. local A_1 = CFrame.new(newx, newy, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  789. local A_2 = "Metal"
  790. local A_3 = game:GetService("Workspace"):FindFirstChildOfClass("Part",true)
  791. local A_4 = CFrame.new(newx, newy, newz, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  792. local Event = game:GetService("Workspace")["__REMOTES"].Game["Place Block"]
  793. Event:FireServer(A_1, A_2, A_3, A_4)
  794. end
  795. end
  796. OFF(B6)
  797. end
  798. end)
  799.  
  800. B7.MouseButton1Click:connect(function()
  801. if _G.on7 == 1 then
  802. OFF(B7)
  803. else
  804. ON(B7)
  805. game:GetService('RunService').Stepped:wait()
  806. --code
  807. OFF(B7)
  808. end
  809. end)
  810.  
  811. B8.MouseButton1Click:connect(function()
  812. if _G.on8 == 1 then
  813. OFF(B8)
  814. else
  815. ON(B8)
  816. game:GetService('RunService').Stepped:wait()
  817. --Code
  818. OFF(B8)
  819. end
  820. end)
  821.  
  822.  
  823. print('loaded')
Add Comment
Please, Sign In to add comment