Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- landsize = 5
- terrainsize = 100
- spawnmade = 0
- treeontile = 0
- se = Instance.new("Part")
- se.Parent = game.Workspace
- se.Position = Vector3.new(-256, -5, -256)
- se.Size = Vector3.new(25, 5, 25)
- se.CanCollide = false
- se.Anchored = true
- for I=1,terrainsize do
- for l=1,terrainsize do
- se.Position = se.Position + Vector3.new(0,0,landsize)
- p = se:Clone()
- p.BrickColor = BrickColor.new("Bright green")
- p.Material = ("Grass")
- p.Name = ("GroundTileDirt")
- p.CanCollide = false
- p.Parent = game.Workspace
- p.Anchored = true
- r = math.random(-1,1)
- p.Position = p.Position + Vector3.new(0, r, 0)
- p.Size = Vector3.new(landsize, 5 ,landsize)
- p.CanCollide = true
- treeontile = (0)
- r2 = math.random(1,25)
- if r2 == (1) then
- if spawnmade == (0) then
- local spawn = Instance.new("SpawnLocation")
- spawn.Anchored = true
- spawn.TopSurface = ("Smooth")
- spawn.Position = p.Position + Vector3.new(0,1,0)
- spawn.Size = Vector3.new(4,1,4)
- spawndecal = Instance.new("Decal")
- spawndecal.Texture = ("rbxasset://textures/SpawnLocation.png")
- spawndecal.Face = ("Top")
- spawndecal.Parent = spawn
- spawn.Parent = game.Workspace.Camera
- spawnmade = (1)
- end
- end
- r3 = math.random(1,250)
- if r3 == (1) then
- treeontile = (1)
- tree = Instance.new("Model")
- tree.Name = ("Tree")
- health = Instance.new("IntValue")
- health.Parent = tree
- health.Value = 0
- health.Name = ("Duration")
- tree1 = Instance.new("Part")
- tree.Parent = game.Workspace
- tree2 = Instance.new("Part")
- tree1.Name = ("Log")
- tree2.Name = ("Leaves")
- tree1.Anchored = true
- tree2.Anchored = true
- tree1.Parent = tree
- tree2.Parent = tree
- tree1.CanCollide = false
- treeheight = math.random(12,18)
- tree1.Size = Vector3.new(2,treeheight,2)
- tree2.Size = Vector3.new(8,8,8)
- tree1.Position = p.Position + Vector3.new(0, -2, 0)
- tree2.Position = tree1.Position
- tree2.CanCollide = false
- tree2.Position = tree2.Position + Vector3.new(0, -2, 0)
- tree1.Position = tree1.Position + Vector3.new(0, 0, 0)
- tree2.Position = tree2.Position + Vector3.new(0, -2, 0)
- tree2.Shape = ("Ball")
- tree1.BrickColor = BrickColor.new("Dirt brown")
- tree2.BrickColor = BrickColor.new("Bright green")
- tree1.TopSurface = ("Smooth")
- tree1.BottomSurface = ("Smooth")
- tree2.TopSurface = ("Smooth")
- tree2.BottomSurface = ("Smooth")
- end
- local r4 = math.random(1,5000)
- if r4 == (1) then
- --structure = game.Lighting.CampFire:Clone()
- --structure:TranslateBy(Vector3.new(p.Position.X, -5, p.Position.Z))
- --structure.Parent = game.Workspace
- end
- local r5 = math.random(1,50)
- if r5 == (1) then
- if treeontile == (0) then
- rock = Instance.new("Part")
- rock.Parent = game.Workspace
- rock.Name = ("Rock")
- rock.CanCollide = false
- rock.Position = p.Position + Vector3.new(0,3,0)
- rock.TopSurface = ("Smooth")
- rock.BottomSurface = ("Smooth")
- rock.Size = Vector3.new(4,2,4)
- rock.Anchored = true
- rock.CanCollide = true
- rock.Material = ("Slate")
- end
- end
- end
- terrainsize2 = terrainsize * landsize
- se.Position = se.Position + Vector3.new(landsize,0,-terrainsize2)
- wait(0.01)
- end
- local player = game.Players.LocalPlayer
- player.Chatted:connect(function(message)
- if message == ("cleart") then
- game.Workspace.Camera:ClearAllChildren()
- end
- end)
- while true do
- game.Workspace.Base.CanCollide = false
- game.Workspace.Base.Transparency = 1
- wait(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement