Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local S = Instance.new("Sky")
- S.Parent = game.Lighting
- S.SkyboxBk = "rbxassetid://2403410783"
- S.SkyboxDn = "rbxassetid://2403429771"
- S.SkyboxFt = "rbxassetid://2403410783"
- S.SkyboxLf = "rbxassetid://2403410783"
- S.SkyboxRt = "rbxassetid://2403410783"
- S.SkyboxUp = "rbxassetid://2403437847"
- local AM = Instance.new("Sound")
- AM.Parent = game.Workspace
- AM.SoundId = "rbxassetid://2830283353"
- AM.Volume = 10
- AM.Playing = true
- AM.Looped = true
- local SPAWNPOINT = Instance.new("SpawnLocation")
- SPAWNPOINT.Parent = game.Workspace
- SPAWNPOINT.CFrame = CFrame.new(10,200,15)
- SPAWNPOINT.CanCollide = false
- SPAWNPOINT.Anchored = true
- SPAWNPOINT.Transparency = 1
- game.Lighting.Ambient = Color3.new(123/255,123/255,123/255)
- Width = 10
- Speed = 5
- local Y = 0
- local X = 0
- -- Height
- local L = 16
- local E = 0
- local C = 0
- local G = 0
- local H = 15
- local A = 0
- local R = 0
- local S = 0
- -- SurfaceThings
- local TS = 0
- local CS = 0
- local TNS = 0
- -- Others
- local CS = 0
- local GL = 100
- local Biome = "Grass"
- -- Biome
- local BiomeSize = 25
- local BiomePassed = 0
- local BiomeSelector = 1
- -- Spawns
- local Lava = 0
- local Luck = 0
- while true do
- E = math.random(1,100)
- for i = 1,5 do
- if Y == 1 then
- if H<0 then
- local C = -(H)
- for i = 1,C do
- for i2 = 1,Width do
- local part = Instance.new("Part")
- part.Color = Color3.new(13/255,105/255,172/255)
- part.Transparency = 0.5
- part.Parent = game.Workspace
- part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+i*4,i2*4)
- part.Anchored = true
- part.Size = Vector3.new(4,4,4)
- part.CanCollide = false
- end
- end
- end
- end
- -- Surface
- if Y<2 then
- for i = 1,Width do
- local part = Instance.new("Part")
- part.Parent = game.Workspace
- part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
- part.Anchored = true
- part.Size = Vector3.new(4,4,4)
- if Biome == "Grass" then
- part.Material = "Grass"
- part.Color = Color3.new(91/255,154/255,76/255)
- -- Breacking Point
- local Click = Instance.new("ClickDetector") Click.Parent = part
- local HP = 4 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- local TS = math.random(0,1000)
- if TS<10 then
- for i2 = 1,3 do
- local part2= Instance.new("Part")
- part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
- part2.Size = Vector3.new(4,4,4)
- part2.Parent = game.Workspace
- part2.Anchored = true
- part2.Material = "Wood"
- part2.Name = "Wood"
- part2.Color = Color3.new(105/255,64/255,40/255)
- -- Breacking Point
- local Click = Instance.new("ClickDetector") Click.Parent = part2
- local HP = 3 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- local X2=0
- local Y2=0
- local Z2=0
- for i2 = 1,36 do
- X2 = X2 +1
- if X2>2 then
- X2 = 0
- Z2 = Z2 + 1
- end
- if Z2>2 then
- Z2 = 0
- Y2 = Y2 + 1
- end
- local part2= Instance.new("Part")
- print(X)
- TNS = math.random(0,100)
- if TNS>33 then
- part2.CFrame = CFrame.new(X*4+(-4+(X2*4)),part.Position.Y+16+(Y2*4),part.Position.Z+(-4+(Z2*4)))
- part2.Size = Vector3.new(4,4,4)
- part2.Parent = game.Workspace
- part2.Name = "leafes"
- part2.Anchored = true
- part2.Material = "Grass"
- part2.Color = Color3.new(91/255,154/255,76/255)
- -- Breacking Point
- local Click = Instance.new("ClickDetector") Click.Parent = part2
- local HP = 2 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- end
- end
- elseif Biome == "Sand" then
- part.Material = "Sand"
- part.Color = Color3.new(239/255,184/255,56/255)
- local CS = math.random(0,1000)
- if CS < 25 then
- for i2 = 1,math.random(1,4) do
- local part2= Instance.new("Part")
- part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
- part2.Size = Vector3.new(4,4,4)
- part2.Parent = game.Workspace
- part2.Anchored = true
- part2.Material = "Granite"
- part2.Color = Color3.new(91/255,154/255,76/255)
- -- Breacking Point
- local Click = Instance.new("ClickDetector") Click.Parent = part2
- local HP = 4 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- end
- elseif Biome == "OrangeSand" then
- part.Material = "Sand"
- part.Color = Color3.new(170/255,85/255,0/255)
- local CS = math.random(0,1000)
- if CS < 50 then
- for i2 = 1,math.random(1,6) do
- local part2= Instance.new("Part")
- part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
- part2.Size = Vector3.new(4,4,4)
- part2.Parent = game.Workspace
- part2.Anchored = true
- part2.Material = "Granite"
- part2.Color = Color3.new(91/255,154/255,76/255)
- local Click = Instance.new("ClickDetector") Click.Parent = part2
- local HP = 6 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- end
- elseif Biome == "WasteLand" then
- part.Material = "Granite"
- part.Color = Color3.new(95/255,109/255,95/255)
- elseif Biome == "Swamp" then
- part.Material = "Grass"
- part.Color = Color3.new(97/255,109/255,95/255)
- local TS = math.random(0,1000)
- if TS<15 then
- for i2 = 1,7 do
- local part2= Instance.new("Part")
- part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
- part2.Size = Vector3.new(4,4,4)
- part2.Parent = game.Workspace
- part2.Anchored = true
- part2.Material = "Wood"
- part2.Color = Color3.new(105/255,64/255,40/255)
- part2.Material = "Ice"
- local Click = Instance.new("ClickDetector") Click.Parent = part2
- local HP = 4 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- local X2=0
- local Y2=0
- local Z2=0
- for i2 = 1,63 do
- X2 = X2 +1
- if X2>2 then
- X2 = 0
- Z2 = Z2 + 1
- end
- if Z2>2 then
- Z2 = 0
- Y2 = Y2 + 1
- end
- local part2= Instance.new("Part")
- print(X)
- TNS = math.random(0,100)
- if TNS>40 then
- part2.CFrame = CFrame.new(X*4+(-4+(X2*4)),part.Position.Y+16+(Y2*4),part.Position.Z+(-4+(Z2*4)))
- part2.Size = Vector3.new(4,4,4)
- part2.Parent = game.Workspace
- part2.Name = "leafes"
- part2.Anchored = true
- part2.Material = "Grass"
- part2.Color = Color3.new(72/255,108/255,79/255)
- local Click = Instance.new("ClickDetector") Click.Parent = part2
- local HP = 1 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- end
- end
- end
- end
- -- Layer2
- elseif Y<5 then
- for i = 1,Width do
- local part = Instance.new("Part")
- part.Parent = game.Workspace
- part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
- part.Anchored = true
- part.Size = Vector3.new(4,4,4)
- if Biome =="Grass" then
- part.Material = "Concrete"
- part.Color = Color3.new(117/255,0/255,0/255)
- elseif Biome == "Sand" then
- part.Material = "Slate"
- part.Color = Color3.new(211/255,190/255,150/255)
- elseif Biome == "OrangeSand" then
- part.Material = "Slate"
- part.Color = Color3.new(226/255,155/255,64/255)
- else
- part.Material = "Slate"
- part.Color = Color3.new(80/255,109/255,84/255)
- end
- -- Breacking Point
- local Click = Instance.new("ClickDetector") Click.Parent = part
- local HP = 5 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- --Layer3
- elseif Y<(L+H)-2 then
- for i = 1,Width do
- local Luck = math.random(0,50000)
- local part = Instance.new("Part")
- part.Parent = game.Workspace
- part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
- part.Anchored = true
- part.Size = Vector3.new(4,4,4)
- if Luck<50 then
- part.Material = "Ice"
- part.Color = Color3.new(0/255,143/255,156/255)
- elseif Luck<110 then
- part.Material = "Marble"
- part.Color = Color3.new(52/255,142/255,64/255)
- elseif Luck<222 then
- part.Material = "CorrodedMetal"
- part.Color = Color3.new(117/255,0/255,0/255)
- elseif Luck<366 then
- part.Material = "CorrodedMetal"
- part.Color = Color3.new(0/255,16/255,176/255)
- elseif Luck<555 then
- part.Material = "CorrodedMetal"
- part.Color = Color3.new(0/255,16/255,176/255)
- elseif Luck<950 then
- part.Material = "Foil"
- part.Color = Color3.new(255/255,176/255,0/255)
- elseif Luck<1600 then
- part.Material = "CorrodedMetal"
- part.Color = Color3.new(255/255,204/255,153/255)
- elseif Luck<2600 then
- part.Material = "Granite"
- part.Color = Color3.new(91/255,93/255,105/255)
- elseif Luck<5555 then
- part.Material = "Marble"
- part.Color = Color3.new(127/255,127/255,127/255)
- elseif Luck<12500 then
- part.Material = "Ice"
- part.Color = Color3.new(13/255,105/255,172/255)
- part.Transparency = 0.5
- else
- part.Material = "Slate"
- part.Color = Color3.new(127/255,127/255,127/255)
- end
- -- Breacking Point
- local Click = Instance.new("ClickDetector") Click.Parent = part
- local HP = 13 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- else
- for i = 1,Width do
- local part = Instance.new("Part")
- part.Parent = game.Workspace
- part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
- part.Anchored = true
- part.Size = Vector3.new(4,4,4)
- part.Material = "Slate"
- part.Color = Color3.new(33/255,33/255,33/255)
- -- Breacking Point
- local Click = Instance.new("ClickDetector") Click.Parent = part
- local HP = 999 local Tran = 1-(1/HP)
- Click.MouseClick:Connect(function()
- for i = 1,6 do
- 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()
- end
- end)
- -- End Breacking Point
- end
- end
- if Y>(L+H) then
- Y = 0
- X = X + 1
- BiomePassed = BiomePassed + 1
- if BiomePassed >= BiomeSize then
- BiomePassed= 0
- BiomeSelector = math.random(1,5)
- if BiomeSelector == 1 then
- Biome = "Grass"
- BiomeSize = math.random(15,60)
- elseif BiomeSelector == 2 then
- Biome = "Sand"
- BiomeSize = math.random(10,45)
- elseif BiomeSelector == 3 then
- Biome = "OrangeSand"
- BiomeSize = math.random(5,25)
- elseif BiomeSelector == 4 then
- Biome = "WasteLand"
- BiomeSize = math.random(5,25)
- elseif BiomeSelector == 5 then
- Biome = "Swamp"
- BiomeSize = math.random(10,45)
- end
- end
- L = math.random(15,19)
- GL = math.random(50,100)
- local G = math.random(1,GL)
- if G<33 then
- if C<0 then
- S = S -1
- H = H -1
- else
- H = H + 1
- S = S + 1
- end
- R = R + 1
- end
- end
- if R >= A then
- S = 0
- if H>10 then
- C = math.random(-11,2)
- else
- if H<-5 then
- C = math.random(-2,11)
- else
- C = math.random(-8,8)
- end
- end
- if C == 0 then
- C = 1
- end
- if C<0 then
- A=-(C)
- else
- A = 0
- end
- end
- Y = Y +1
- end
- wait()
- end
Add Comment
Please, Sign In to add comment