Andreas12

Untitled

Mar 14th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.01 KB | None | 0 0
  1.  
  2. local S = Instance.new("Sky")
  3. S.Parent = game.Lighting
  4. S.SkyboxBk = "rbxassetid://2403410783"
  5. S.SkyboxDn = "rbxassetid://2403429771"
  6. S.SkyboxFt = "rbxassetid://2403410783"
  7. S.SkyboxLf = "rbxassetid://2403410783"
  8. S.SkyboxRt = "rbxassetid://2403410783"
  9. S.SkyboxUp = "rbxassetid://2403437847"
  10. local AM = Instance.new("Sound")
  11. AM.Parent = game.Workspace
  12. AM.SoundId = "rbxassetid://2830283353"
  13. AM.Volume = 10
  14. AM.Playing = true
  15. AM.Looped = true
  16. local SPAWNPOINT = Instance.new("SpawnLocation")
  17. SPAWNPOINT.Parent = game.Workspace
  18. SPAWNPOINT.CFrame = CFrame.new(10,200,15)
  19. SPAWNPOINT.CanCollide = false
  20. SPAWNPOINT.Anchored = true
  21. SPAWNPOINT.Transparency = 1
  22. game.Lighting.Ambient = Color3.new(123/255,123/255,123/255)
  23.  
  24. Width = 10
  25. Speed = 5
  26. local Y = 0
  27. local X = 0
  28. -- Height
  29. local L = 16
  30. local E = 0
  31. local C = 0
  32. local G = 0
  33. local H = 15
  34. local A = 0
  35. local R = 0
  36. local S = 0
  37. -- SurfaceThings
  38. local TS = 0
  39. local CS = 0
  40. local TNS = 0
  41. -- Others
  42. local CS = 0
  43. local GL = 100
  44. local Biome = "Grass"
  45. -- Biome
  46. local BiomeSize = 25
  47. local BiomePassed = 0
  48. local BiomeSelector = 1
  49. -- Spawns
  50. local Lava = 0
  51. local Luck = 0
  52. while true do
  53. E = math.random(1,100)
  54. for i = 1,5 do
  55. if Y == 1 then
  56. if H<0 then
  57. local C = -(H)
  58. for i = 1,C do
  59. for i2 = 1,Width do
  60. local part = Instance.new("Part")
  61. part.Color = Color3.new(13/255,105/255,172/255)
  62. part.Transparency = 0.5
  63. part.Parent = game.Workspace
  64. part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+i*4,i2*4)
  65. part.Anchored = true
  66. part.Size = Vector3.new(4,4,4)
  67. part.CanCollide = false
  68. end
  69. end
  70. end
  71. end
  72.  
  73. -- Surface
  74. if Y<2 then
  75. for i = 1,Width do
  76. local part = Instance.new("Part")
  77. part.Parent = game.Workspace
  78. part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  79. part.Anchored = true
  80. part.Size = Vector3.new(4,4,4)
  81. if Biome == "Grass" then
  82. part.Material = "Grass"
  83. part.Color = Color3.new(91/255,154/255,76/255)
  84. -- Breacking Point
  85. local Click = Instance.new("ClickDetector") Click.Parent = part
  86. local HP = 4 local Tran = 1-(1/HP)
  87. Click.MouseClick:Connect(function()
  88. for i = 1,6 do
  89. local Crack = Instance.new("Decal") Crack.Parent = part Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part:Remove()
  90. end
  91. end)
  92. -- End Breacking Point
  93.  
  94. local TS = math.random(0,1000)
  95. if TS<10 then
  96. for i2 = 1,3 do
  97. local part2= Instance.new("Part")
  98. part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  99. part2.Size = Vector3.new(4,4,4)
  100. part2.Parent = game.Workspace
  101. part2.Anchored = true
  102. part2.Material = "Wood"
  103. part2.Name = "Wood"
  104. part2.Color = Color3.new(105/255,64/255,40/255)
  105. -- Breacking Point
  106. local Click = Instance.new("ClickDetector") Click.Parent = part2
  107. local HP = 3 local Tran = 1-(1/HP)
  108. Click.MouseClick:Connect(function()
  109. for i = 1,6 do
  110. local Crack = Instance.new("Decal") Crack.Parent = part2
  111. Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran
  112. if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom"
  113. elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top"
  114. end end HP = HP - 1 if HP<1 then part2:Remove()
  115.  
  116. end
  117. end)
  118. -- End Breacking Point
  119. end
  120. local X2=0
  121. local Y2=0
  122. local Z2=0
  123. for i2 = 1,36 do
  124. X2 = X2 +1
  125. if X2>2 then
  126. X2 = 0
  127. Z2 = Z2 + 1
  128. end
  129. if Z2>2 then
  130. Z2 = 0
  131. Y2 = Y2 + 1
  132. end
  133. local part2= Instance.new("Part")
  134. print(X)
  135. TNS = math.random(0,100)
  136. if TNS>33 then
  137. part2.CFrame = CFrame.new(X*4+(-4+(X2*4)),part.Position.Y+16+(Y2*4),part.Position.Z+(-4+(Z2*4)))
  138. part2.Size = Vector3.new(4,4,4)
  139. part2.Parent = game.Workspace
  140. part2.Name = "leafes"
  141. part2.Anchored = true
  142. part2.Material = "Grass"
  143. part2.Color = Color3.new(91/255,154/255,76/255)
  144. -- Breacking Point
  145. local Click = Instance.new("ClickDetector") Click.Parent = part2
  146. local HP = 2 local Tran = 1-(1/HP)
  147. Click.MouseClick:Connect(function()
  148. for i = 1,6 do
  149. local Crack = Instance.new("Decal") Crack.Parent = part2
  150. Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran
  151. if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom"
  152. elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top"
  153. end end HP = HP - 1 if HP<1 then part2:Remove()
  154.  
  155. end
  156. end)
  157. -- End Breacking Point
  158. end
  159. end
  160. end
  161.  
  162.  
  163. elseif Biome == "Sand" then
  164. part.Material = "Sand"
  165. part.Color = Color3.new(239/255,184/255,56/255)
  166. local CS = math.random(0,1000)
  167. if CS < 25 then
  168. for i2 = 1,math.random(1,4) do
  169. local part2= Instance.new("Part")
  170. part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  171. part2.Size = Vector3.new(4,4,4)
  172. part2.Parent = game.Workspace
  173. part2.Anchored = true
  174. part2.Material = "Granite"
  175. part2.Color = Color3.new(91/255,154/255,76/255)
  176. -- Breacking Point
  177. local Click = Instance.new("ClickDetector") Click.Parent = part2
  178. local HP = 4 local Tran = 1-(1/HP)
  179. Click.MouseClick:Connect(function()
  180. for i = 1,6 do
  181. local Crack = Instance.new("Decal") Crack.Parent = part2 Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part2:Remove()
  182. end
  183. end)
  184. -- End Breacking Point
  185. end
  186. end
  187. elseif Biome == "OrangeSand" then
  188. part.Material = "Sand"
  189. part.Color = Color3.new(170/255,85/255,0/255)
  190. local CS = math.random(0,1000)
  191. if CS < 50 then
  192. for i2 = 1,math.random(1,6) do
  193. local part2= Instance.new("Part")
  194. part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  195. part2.Size = Vector3.new(4,4,4)
  196. part2.Parent = game.Workspace
  197. part2.Anchored = true
  198. part2.Material = "Granite"
  199. part2.Color = Color3.new(91/255,154/255,76/255)
  200. local Click = Instance.new("ClickDetector") Click.Parent = part2
  201. local HP = 6 local Tran = 1-(1/HP)
  202. Click.MouseClick:Connect(function()
  203. for i = 1,6 do
  204. local Crack = Instance.new("Decal") Crack.Parent = part2 Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part2:Remove()
  205. end
  206. end)
  207. -- End Breacking Point
  208.  
  209.  
  210. end
  211. end
  212. elseif Biome == "WasteLand" then
  213. part.Material = "Granite"
  214. part.Color = Color3.new(95/255,109/255,95/255)
  215. elseif Biome == "Swamp" then
  216. part.Material = "Grass"
  217. part.Color = Color3.new(97/255,109/255,95/255)
  218.  
  219. local TS = math.random(0,1000)
  220. if TS<15 then
  221. for i2 = 1,7 do
  222. local part2= Instance.new("Part")
  223. part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  224. part2.Size = Vector3.new(4,4,4)
  225. part2.Parent = game.Workspace
  226. part2.Anchored = true
  227. part2.Material = "Wood"
  228. part2.Color = Color3.new(105/255,64/255,40/255)
  229. part2.Material = "Ice"
  230. local Click = Instance.new("ClickDetector") Click.Parent = part2
  231. local HP = 4 local Tran = 1-(1/HP)
  232. Click.MouseClick:Connect(function()
  233. for i = 1,6 do
  234. local Crack = Instance.new("Decal") Crack.Parent = part2 Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part2:Remove()
  235. end
  236. end)
  237. -- End Breacking Point
  238. end
  239. local X2=0
  240. local Y2=0
  241. local Z2=0
  242. for i2 = 1,63 do
  243. X2 = X2 +1
  244. if X2>2 then
  245. X2 = 0
  246. Z2 = Z2 + 1
  247. end
  248. if Z2>2 then
  249. Z2 = 0
  250. Y2 = Y2 + 1
  251. end
  252. local part2= Instance.new("Part")
  253. print(X)
  254. TNS = math.random(0,100)
  255. if TNS>40 then
  256. part2.CFrame = CFrame.new(X*4+(-4+(X2*4)),part.Position.Y+16+(Y2*4),part.Position.Z+(-4+(Z2*4)))
  257. part2.Size = Vector3.new(4,4,4)
  258. part2.Parent = game.Workspace
  259. part2.Name = "leafes"
  260. part2.Anchored = true
  261. part2.Material = "Grass"
  262. part2.Color = Color3.new(72/255,108/255,79/255)
  263. local Click = Instance.new("ClickDetector") Click.Parent = part2
  264. local HP = 1 local Tran = 1-(1/HP)
  265. Click.MouseClick:Connect(function()
  266. for i = 1,6 do
  267. local Crack = Instance.new("Decal") Crack.Parent = part2 Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part2:Remove()
  268. end
  269. end)
  270. -- End Breacking Point
  271. end
  272. end
  273. end
  274.  
  275.  
  276. end
  277. end
  278. -- Layer2
  279. elseif Y<5 then
  280. for i = 1,Width do
  281. local part = Instance.new("Part")
  282. part.Parent = game.Workspace
  283. part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  284. part.Anchored = true
  285. part.Size = Vector3.new(4,4,4)
  286. if Biome =="Grass" then
  287. part.Material = "Concrete"
  288. part.Color = Color3.new(117/255,0/255,0/255)
  289. elseif Biome == "Sand" then
  290. part.Material = "Slate"
  291. part.Color = Color3.new(211/255,190/255,150/255)
  292. elseif Biome == "OrangeSand" then
  293. part.Material = "Slate"
  294. part.Color = Color3.new(226/255,155/255,64/255)
  295. else
  296. part.Material = "Slate"
  297. part.Color = Color3.new(80/255,109/255,84/255)
  298. end
  299. -- Breacking Point
  300. local Click = Instance.new("ClickDetector") Click.Parent = part
  301. local HP = 5 local Tran = 1-(1/HP)
  302. Click.MouseClick:Connect(function()
  303. for i = 1,6 do
  304. local Crack = Instance.new("Decal") Crack.Parent = part Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part:Remove()
  305. end
  306. end)
  307. -- End Breacking Point
  308. end
  309. --Layer3
  310. elseif Y<(L+H)-2 then
  311. for i = 1,Width do
  312. local Luck = math.random(0,50000)
  313. local part = Instance.new("Part")
  314. part.Parent = game.Workspace
  315. part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  316. part.Anchored = true
  317. part.Size = Vector3.new(4,4,4)
  318. if Luck<50 then
  319. part.Material = "Ice"
  320. part.Color = Color3.new(0/255,143/255,156/255)
  321. elseif Luck<110 then
  322. part.Material = "Marble"
  323. part.Color = Color3.new(52/255,142/255,64/255)
  324. elseif Luck<222 then
  325. part.Material = "CorrodedMetal"
  326. part.Color = Color3.new(117/255,0/255,0/255)
  327. elseif Luck<366 then
  328. part.Material = "CorrodedMetal"
  329. part.Color = Color3.new(0/255,16/255,176/255)
  330. elseif Luck<555 then
  331. part.Material = "CorrodedMetal"
  332. part.Color = Color3.new(0/255,16/255,176/255)
  333. elseif Luck<950 then
  334. part.Material = "Foil"
  335. part.Color = Color3.new(255/255,176/255,0/255)
  336. elseif Luck<1600 then
  337. part.Material = "CorrodedMetal"
  338. part.Color = Color3.new(255/255,204/255,153/255)
  339. elseif Luck<2600 then
  340. part.Material = "Granite"
  341. part.Color = Color3.new(91/255,93/255,105/255)
  342. elseif Luck<5555 then
  343. part.Material = "Marble"
  344. part.Color = Color3.new(127/255,127/255,127/255)
  345. elseif Luck<12500 then
  346. part.Material = "Ice"
  347. part.Color = Color3.new(13/255,105/255,172/255)
  348. part.Transparency = 0.5
  349. else
  350. part.Material = "Slate"
  351. part.Color = Color3.new(127/255,127/255,127/255)
  352. end
  353. -- Breacking Point
  354. local Click = Instance.new("ClickDetector") Click.Parent = part
  355. local HP = 13 local Tran = 1-(1/HP)
  356. Click.MouseClick:Connect(function()
  357. for i = 1,6 do
  358. local Crack = Instance.new("Decal") Crack.Parent = part Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part:Remove()
  359. end
  360. end)
  361. -- End Breacking Point
  362. end
  363. else
  364. for i = 1,Width do
  365. local part = Instance.new("Part")
  366. part.Parent = game.Workspace
  367. part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  368. part.Anchored = true
  369. part.Size = Vector3.new(4,4,4)
  370. part.Material = "Slate"
  371. part.Color = Color3.new(33/255,33/255,33/255)
  372. -- Breacking Point
  373. local Click = Instance.new("ClickDetector") Click.Parent = part
  374. local HP = 999 local Tran = 1-(1/HP)
  375. Click.MouseClick:Connect(function()
  376. for i = 1,6 do
  377. local Crack = Instance.new("Decal") Crack.Parent = part Crack.Texture = "http://www.roblox.com/asset/?id=2393695475" Crack.Transparency = Tran if i == 1 then Crack.Face = "Back" elseif i == 2 then Crack.Face = "Front" elseif i == 3 then Crack.Face = "Bottom" elseif i == 4 then Crack.Face = "Left" elseif i == 5 then Crack.Face = "Right" elseif i == 6 then Crack.Face = "Top" end end HP = HP - 1 if HP<1 then part:Remove()
  378. end
  379. end)
  380. -- End Breacking Point
  381. end
  382. end
  383. if Y>(L+H) then
  384. Y = 0
  385. X = X + 1
  386. BiomePassed = BiomePassed + 1
  387. if BiomePassed >= BiomeSize then
  388. BiomePassed= 0
  389. BiomeSelector = math.random(1,5)
  390. if BiomeSelector == 1 then
  391. Biome = "Grass"
  392. BiomeSize = math.random(15,60)
  393. elseif BiomeSelector == 2 then
  394. Biome = "Sand"
  395. BiomeSize = math.random(10,45)
  396. elseif BiomeSelector == 3 then
  397. Biome = "OrangeSand"
  398. BiomeSize = math.random(5,25)
  399. elseif BiomeSelector == 4 then
  400. Biome = "WasteLand"
  401. BiomeSize = math.random(5,25)
  402. elseif BiomeSelector == 5 then
  403. Biome = "Swamp"
  404. BiomeSize = math.random(10,45)
  405. end
  406. end
  407. L = math.random(15,19)
  408. GL = math.random(50,100)
  409. local G = math.random(1,GL)
  410. if G<33 then
  411. if C<0 then
  412. S = S -1
  413. H = H -1
  414. else
  415. H = H + 1
  416. S = S + 1
  417. end
  418. R = R + 1
  419. end
  420. end
  421. if R >= A then
  422. S = 0
  423. if H>10 then
  424. C = math.random(-11,2)
  425. else
  426. if H<-5 then
  427. C = math.random(-2,11)
  428. else
  429. C = math.random(-8,8)
  430. end
  431. end
  432. if C == 0 then
  433. C = 1
  434. end
  435. if C<0 then
  436. A=-(C)
  437. else
  438. A = 0
  439. end
  440. end
  441. Y = Y +1
  442. end
  443. wait()
  444. end
Add Comment
Please, Sign In to add comment