Advertisement
Guest User

Build And Survive GUI {OP}

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