Advertisement
Andreas12

Youtube 3D Similar 2010 One

Apr 20th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.54 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://1192813052"
  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.  
  23.     Width = 10
  24.     Speed = 5
  25.     local Y = 0
  26.     local X = 0
  27.     -- Height
  28.     local L = 16
  29.     local E = 0
  30.     local C = 0
  31.     local G = 0
  32.     local H = 15
  33.     local A = 0
  34.     local R = 0
  35.     local S = 0
  36.     -- SurfaceThings
  37.     local TS = 0
  38.     local CS = 0
  39.     local TNS = 0
  40.     -- Others
  41.     local CS = 0
  42.     local GL = 100
  43.     local Biome = "Grass"
  44.     -- Biome
  45.     local BiomeSize = 25
  46.     local BiomePassed = 0
  47.     local BiomeSelector = 1
  48.     -- Spawns
  49.     local Lava = 0
  50.     local Luck = 0
  51. while true do
  52.     E = math.random(1,100)
  53.     for i = 1,5 do
  54.     if Y == 1 then
  55.     if H<0 then
  56.         local C = -(H)
  57.         for i = 1,C do
  58.             for i2 = 1,Width do
  59.                             local part = Instance.new("Part")
  60.             part.Color = Color3.new(13/255,105/255,172/255)
  61.             part.Transparency = 0.5
  62.     part.Parent = game.Workspace
  63.     part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+i*4,i2*4)
  64.     part.Anchored = true
  65.     part.Size = Vector3.new(4,4,4)
  66.         part.CanCollide = false
  67.             end
  68.         end
  69.     end
  70.     end
  71.  
  72.         -- Surface
  73.         if Y<2 then
  74.     for i = 1,Width do
  75.     local part = Instance.new("Part")
  76.     part.Parent = game.Workspace
  77.     part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  78.     part.Anchored = true
  79.     part.Size = Vector3.new(4,4,4)
  80.     if Biome == "Grass" then
  81.     part.Material = "Grass"
  82.     part.Color = Color3.new(91/255,154/255,76/255)
  83.    
  84.    
  85.     local TS = math.random(0,1000)
  86.     if TS<10 then
  87.         for i2 = 1,3 do
  88.             local part2=  Instance.new("Part")
  89.             part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  90.             part2.Size = Vector3.new(4,4,4)
  91.             part2.Parent = game.Workspace
  92.             part2.Anchored = true
  93.             part2.Material = "Wood"
  94.             part2.Color = Color3.new(105/255,64/255,40/255)
  95.             part2.Material = "Ice"
  96.         end
  97.         local X2=0
  98.         local Y2=0
  99.         local Z2=0
  100.         for i2 = 1,36 do
  101.             X2 = X2 +1
  102.             if X2>2 then
  103.                 X2 = 0
  104.                 Z2 = Z2 + 1
  105.             end
  106.             if Z2>2 then
  107.                 Z2 = 0
  108.                 Y2 = Y2 + 1
  109.             end
  110.             local part2=  Instance.new("Part")
  111.             print(X)
  112.             TNS = math.random(0,100)
  113.             if TNS>33 then
  114.             part2.CFrame = CFrame.new(X*4+(-4+(X2*4)),part.Position.Y+16+(Y2*4),part.Position.Z+(-4+(Z2*4)))
  115.             part2.Size = Vector3.new(4,4,4)
  116.             part2.Parent = game.Workspace
  117.             part2.Name = "leafes"
  118.             part2.Anchored = true
  119.             part2.Material = "Grass"
  120.             part2.Color = Color3.new(91/255,154/255,76/255)
  121.             end
  122.         end
  123.     end
  124.    
  125.    
  126.     elseif Biome == "Sand" then
  127.         part.Material = "Sand"
  128.         part.Color = Color3.new(239/255,184/255,56/255)
  129.         local CS = math.random(0,1000)
  130.         if CS < 25 then
  131.         for i2 = 1,math.random(1,4) do
  132.             local part2=  Instance.new("Part")
  133.             part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  134.             part2.Size = Vector3.new(4,4,4)
  135.             part2.Parent = game.Workspace
  136.             part2.Anchored = true
  137.             part2.Material = "Granite"
  138.             part2.Color = Color3.new(91/255,154/255,76/255)
  139.         end
  140.         end
  141.     elseif Biome == "OrangeSand" then
  142.         part.Material = "Sand"
  143.         part.Color = Color3.new(170/255,85/255,0/255)
  144.             local CS = math.random(0,1000)
  145.         if CS < 50 then
  146.         for i2 = 1,math.random(1,4) do
  147.             local part2=  Instance.new("Part")
  148.             part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  149.             part2.Size = Vector3.new(4,4,4)
  150.             part2.Parent = game.Workspace
  151.             part2.Anchored = true
  152.             part2.Material = "Granite"
  153.             part2.Color = Color3.new(91/255,154/255,76/255)
  154.         end
  155.         end
  156.     elseif Biome == "WasteLand" then
  157.         part.Material = "Granite"
  158.         part.Color = Color3.new(95/255,109/255,95/255)
  159.     elseif Biome == "Swamp" then
  160.         part.Material = "Grass"
  161.         part.Color = Color3.new(97/255,109/255,95/255)
  162.        
  163.             local TS = math.random(0,1000)
  164.     if TS<15 then
  165.         for i2 = 1,7 do
  166.             local part2=  Instance.new("Part")
  167.             part2.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4)+(i2*4),i*4)
  168.             part2.Size = Vector3.new(4,4,4)
  169.             part2.Parent = game.Workspace
  170.             part2.Anchored = true
  171.             part2.Material = "Wood"
  172.             part2.Color = Color3.new(105/255,64/255,40/255)
  173.             part2.Material = "Ice"
  174.         end
  175.         local X2=0
  176.         local Y2=0
  177.         local Z2=0
  178.         for i2 = 1,63 do
  179.             X2 = X2 +1
  180.             if X2>2 then
  181.                 X2 = 0
  182.                 Z2 = Z2 + 1
  183.             end
  184.             if Z2>2 then
  185.                 Z2 = 0
  186.                 Y2 = Y2 + 1
  187.             end
  188.             local part2=  Instance.new("Part")
  189.             print(X)
  190.             TNS = math.random(0,100)
  191.             if TNS>40 then
  192.             part2.CFrame = CFrame.new(X*4+(-4+(X2*4)),part.Position.Y+16+(Y2*4),part.Position.Z+(-4+(Z2*4)))
  193.             part2.Size = Vector3.new(4,4,4)
  194.             part2.Parent = game.Workspace
  195.             part2.Name = "leafes"
  196.             part2.Anchored = true
  197.             part2.Material = "Grass"
  198.             part2.Color = Color3.new(72/255,108/255,79/255)
  199.             end
  200.         end
  201.     end
  202.    
  203.    
  204.         end
  205. end
  206.      -- Layer2
  207.         elseif Y<5 then
  208.         for i = 1,Width do
  209.     local part = Instance.new("Part")
  210.     part.Parent = game.Workspace
  211.     part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  212.     part.Anchored = true
  213.     part.Size = Vector3.new(4,4,4)
  214.     if Biome =="Grass" then
  215.     part.Material = "Concrete"
  216.     part.Color = Color3.new(117/255,0/255,0/255)
  217.     elseif Biome == "Sand" then
  218.             part.Material = "Slate"
  219.     part.Color = Color3.new(211/255,190/255,150/255)
  220.     elseif Biome == "OrangeSand" then
  221.             part.Material = "Slate"
  222.     part.Color = Color3.new(226/255,155/255,64/255)
  223.         else
  224.                 part.Material = "Slate"
  225.     part.Color = Color3.new(80/255,109/255,84/255)
  226.         end
  227.     end    
  228.     --Layer3
  229.         elseif Y<(L+H)-2 then
  230.             for i = 1,Width do
  231.             local Luck = math.random(0,50000)
  232.     local part = Instance.new("Part")
  233.     part.Parent = game.Workspace
  234.     part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  235.     part.Anchored = true
  236.     part.Size = Vector3.new(4,4,4)
  237.     if Luck<50 then
  238.     part.Material = "Ice"
  239.     part.Color = Color3.new(0/255,143/255,156/255)
  240.     elseif Luck<110 then
  241.     part.Material = "Marble"
  242.     part.Color = Color3.new(52/255,142/255,64/255)
  243.     elseif Luck<222 then
  244.     part.Material = "CorrodedMetal"
  245.     part.Color = Color3.new(117/255,0/255,0/255)
  246.     elseif Luck<366 then
  247.     part.Material = "CorrodedMetal"
  248.     part.Color = Color3.new(0/255,16/255,176/255)
  249.     elseif Luck<555 then
  250.     part.Material = "CorrodedMetal"
  251.     part.Color = Color3.new(0/255,16/255,176/255)
  252.     elseif Luck<950 then
  253.     part.Material = "Foil"
  254.     part.Color = Color3.new(255/255,176/255,0/255)
  255.     elseif Luck<1600 then
  256.     part.Material = "CorrodedMetal"
  257.     part.Color = Color3.new(255/255,204/255,153/255)
  258.     elseif Luck<2600 then
  259.     part.Material = "Granite"
  260.     part.Color = Color3.new(91/255,93/255,105/255)
  261.     elseif Luck<5555 then
  262.     part.Material = "Marble"
  263.     part.Color = Color3.new(127/255,127/255,127/255)
  264.     elseif Luck<12500 then
  265.     part.Material = "Ice"
  266.     part.Color = Color3.new(13/255,105/255,172/255)
  267.     part.Transparency = 0.5
  268.     else
  269.         part.Material = "Slate"
  270.     part.Color = Color3.new(127/255,127/255,127/255)
  271.     end
  272. end
  273.         else
  274.             for i = 1,Width do
  275.     local part = Instance.new("Part")
  276.     part.Parent = game.Workspace
  277.     part.CFrame = CFrame.new(X*4,(H*4)+80-(Y*4),i*4)
  278.     part.Anchored = true
  279.     part.Size = Vector3.new(4,4,4)
  280.     part.Material = "Slate"
  281.     part.Color = Color3.new(33/255,33/255,33/255)
  282. end
  283. end
  284.     if Y>(L+H) then
  285.     Y = 0
  286.     X = X + 1
  287.     BiomePassed = BiomePassed + 1
  288.     if BiomePassed >= BiomeSize then
  289.         BiomePassed= 0
  290.         BiomeSelector = math.random(1,5)
  291.         if BiomeSelector == 1 then
  292.             Biome = "Grass"
  293.             BiomeSize = math.random(15,60)
  294.         elseif BiomeSelector == 2 then
  295.             Biome = "Sand"
  296.             BiomeSize = math.random(10,45)
  297.         elseif BiomeSelector == 3 then
  298.             Biome = "OrangeSand"
  299.             BiomeSize = math.random(5,25)
  300.         elseif BiomeSelector == 4 then
  301.             Biome = "WasteLand"
  302.             BiomeSize = math.random(5,25)
  303.         elseif BiomeSelector == 5 then
  304.             Biome = "Swamp"
  305.             BiomeSize = math.random(10,45)
  306.         end
  307.     end
  308.     L = math.random(15,19)
  309.     GL = math.random(50,100)
  310.     local G = math.random(1,GL)
  311. if G<33 then
  312.     if C<0 then
  313.     S = S -1
  314.     H = H -1
  315.     else
  316.     H = H + 1
  317.     S = S + 1
  318.     end
  319.     R = R + 1
  320. end
  321. end
  322.     if R >= A then
  323.     S = 0
  324.     if H>10 then
  325.         C = math.random(-11,2)
  326.     else
  327.         if H<-5 then
  328.     C = math.random(-2,11)
  329.         else
  330.             C = math.random(-8,8)
  331.         end
  332.     end
  333.     if C == 0 then
  334.         C = 1
  335.     end
  336.     if C<0 then
  337.         A=-(C)
  338.     else
  339.         A = 0
  340.     end
  341. end
  342.     Y = Y +1
  343.     end
  344.     wait()
  345. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement