Advertisement
NeonFox__

OP BUILD TO SURVIVE GUI

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