hakiq

Build & Survive Script

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