User:Buckethead101/Terrain Generators: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Buckethead101 No edit summary |
>Buckethead101 No edit summary |
||
Line 2: | Line 2: | ||
On this page I will be putting up terrain generators. They will be edited versions of [http://wiki.roblox.com/index.php/User:Mindraker/Terrain#Terrain_generator Mindraker's terrain generator,] unless I say otherwise. | On this page I will be putting up terrain generators. They will be edited versions of [http://wiki.roblox.com/index.php/User:Mindraker/Terrain#Terrain_generator Mindraker's terrain generator,] unless I say otherwise. | ||
== Grassy Fields == | == Grassy Terrain == | ||
This one generates small grassy | These scripts will generate grassy terrain. | ||
=== Fields === | |||
This one generates small grassy field terrain. | |||
<pre>x=1 | <pre>x=1 | ||
Line 42: | Line 46: | ||
end | end | ||
end </pre> | end </pre> | ||
This one will generate larger grassy field terrain. | |||
<pre>x=1 | |||
y=1 | |||
z=1 | |||
for i = 0, 100, 10 do | |||
for j = 0, 20, 1 do | |||
for k = 0, 100, 10 do | |||
a=math.random(1,4) | |||
x=i | |||
y=a | |||
z=i | |||
p = Instance.new("Part") | |||
p.CFrame = CFrame.new(Vector3.new(i,j,k)) | |||
p.Size = Vector3.new(10,a,10) | |||
p.Anchored = true | |||
p.Color = Color3.new(1) -- Please change the color to your own desire. | |||
p.Parent = game.Workspace | |||
if a == 1 then | |||
p.BrickColor = BrickColor.new("Bright blue") | |||
p.CanCollide = false | |||
elseif a == 2 then | |||
p.BrickColor = BrickColor.new("Bright green") | |||
elseif a == 3 then | |||
p.BrickColor = BrickColor.new("Dark green") | |||
elseif a == 4 then | |||
p.BrickColor = BrickColor.new("Earth green") | |||
--wait(1) | |||
end | |||
end | |||
end | |||
end </pre> | |||
=== Hills === | |||
This one generates small hills terrain. | |||
<pre>x=1 | |||
y=1 | |||
z=1 | |||
for i = 0, 50, 10 do | |||
for j = 0, 3, 1 do | |||
for k = 0, 50, 10 do | |||
a=math.random(1,20) | |||
x=i | |||
y=a | |||
z=i | |||
p = Instance.new("Part") | |||
p.CFrame = CFrame.new(Vector3.new(i,j,k)) | |||
p.Size = Vector3.new(10,a,10) | |||
p.Anchored = true | |||
p.Color = Color3.new(1) -- Please change the color to your own desire. | |||
p.Parent = game.Workspace | |||
if a <= 6 then | |||
p.BrickColor = BrickColor.new("Bright blue") | |||
p.CanCollide = false | |||
elseif a >= 5 and a <= 11 then | |||
p.BrickColor = BrickColor.new("Bright green") | |||
elseif a >= 10 and a <= 16 then | |||
p.BrickColor = BrickColor.new("Dark green") | |||
elseif a >= 15 and a <= 21 then | |||
p.BrickColor = BrickColor.new("Earth green") | |||
--wait(1) | |||
end | |||
end | |||
end | |||
end </pre> | |||
== Desert == | |||
This one will generate a small desert. | |||
<pre>x=1 | |||
y=1 | |||
z=1 | |||
for i = 0, 50, 10 do | |||
for j = 0, 3, 1 do | |||
for k = 0, 50, 10 do | |||
a=math.random(1,4) | |||
x=i | |||
y=a | |||
z=i | |||
p = Instance.new("Part") | |||
p.CFrame = CFrame.new(Vector3.new(i,j,k)) | |||
p.Size = Vector3.new(10,a,10) | |||
p.Anchored = true | |||
p.Color = Color3.new(1) -- Please change the color to your own desire. | |||
p.Parent = game.Workspace | |||
if a == 1 or a == 2 then | |||
p.BrickColor = BrickColor.new("Cool yellow") | |||
elseif a == 3 or a == 4 then | |||
p.BrickColor = BrickColor.new("Brick yellow") | |||
--wait(1) | |||
end | |||
end | |||
end | |||
end </pre> | |||
This one will generate a larger desert. | |||
<pre>x=1 | |||
y=1 | |||
z=1 | |||
for i = 0, 100, 10 do | |||
for j = 0, 3, 1 do | |||
for k = 0, 100, 10 do | |||
a=math.random(1,4) | |||
x=i | |||
y=a | |||
z=i | |||
p = Instance.new("Part") | |||
p.CFrame = CFrame.new(Vector3.new(i,j,k)) | |||
p.Size = Vector3.new(10,a,10) | |||
p.Anchored = true | |||
p.Color = Color3.new(1) -- Please change the color to your own desire. | |||
p.Parent = game.Workspace | |||
if a == 1 or a == 2 then | |||
p.BrickColor = BrickColor.new("Cool yellow") | |||
elseif a == 3 or a == 4 then | |||
p.BrickColor = BrickColor.new("Brick yellow") | |||
--wait(1) | |||
end | |||
end | |||
end | |||
end | |||
</pre> | |||
'''WARING: the large desert will cause major lag. It is highly suggested that you use a snap remover.''' |
Revision as of 02:13, 30 December 2008
What This Page is For
On this page I will be putting up terrain generators. They will be edited versions of Mindraker's terrain generator, unless I say otherwise.
Grassy Terrain
These scripts will generate grassy terrain.
Fields
This one generates small grassy field terrain.
x=1 y=1 z=1 for i = 0, 50, 10 do for j = 0, 10, 1 do for k = 0, 50, 10 do a=math.random(1,4) x=i y=a z=i p = Instance.new("Part") p.CFrame = CFrame.new(Vector3.new(i,j,k)) p.Size = Vector3.new(10,a,10) p.Anchored = true p.Color = Color3.new(1) -- Please change the color to your own desire. p.Parent = game.Workspace if a == 1 then p.BrickColor = BrickColor.new("Bright blue") p.CanCollide = false elseif a == 2 then p.BrickColor = BrickColor.new("Bright green") elseif a == 3 then p.BrickColor = BrickColor.new("Dark green") elseif a == 4 then p.BrickColor = BrickColor.new("Earth green") --wait(1) end end end end
This one will generate larger grassy field terrain.
x=1 y=1 z=1 for i = 0, 100, 10 do for j = 0, 20, 1 do for k = 0, 100, 10 do a=math.random(1,4) x=i y=a z=i p = Instance.new("Part") p.CFrame = CFrame.new(Vector3.new(i,j,k)) p.Size = Vector3.new(10,a,10) p.Anchored = true p.Color = Color3.new(1) -- Please change the color to your own desire. p.Parent = game.Workspace if a == 1 then p.BrickColor = BrickColor.new("Bright blue") p.CanCollide = false elseif a == 2 then p.BrickColor = BrickColor.new("Bright green") elseif a == 3 then p.BrickColor = BrickColor.new("Dark green") elseif a == 4 then p.BrickColor = BrickColor.new("Earth green") --wait(1) end end end end
Hills
This one generates small hills terrain.
x=1 y=1 z=1 for i = 0, 50, 10 do for j = 0, 3, 1 do for k = 0, 50, 10 do a=math.random(1,20) x=i y=a z=i p = Instance.new("Part") p.CFrame = CFrame.new(Vector3.new(i,j,k)) p.Size = Vector3.new(10,a,10) p.Anchored = true p.Color = Color3.new(1) -- Please change the color to your own desire. p.Parent = game.Workspace if a <= 6 then p.BrickColor = BrickColor.new("Bright blue") p.CanCollide = false elseif a >= 5 and a <= 11 then p.BrickColor = BrickColor.new("Bright green") elseif a >= 10 and a <= 16 then p.BrickColor = BrickColor.new("Dark green") elseif a >= 15 and a <= 21 then p.BrickColor = BrickColor.new("Earth green") --wait(1) end end end end
Desert
This one will generate a small desert.
x=1 y=1 z=1 for i = 0, 50, 10 do for j = 0, 3, 1 do for k = 0, 50, 10 do a=math.random(1,4) x=i y=a z=i p = Instance.new("Part") p.CFrame = CFrame.new(Vector3.new(i,j,k)) p.Size = Vector3.new(10,a,10) p.Anchored = true p.Color = Color3.new(1) -- Please change the color to your own desire. p.Parent = game.Workspace if a == 1 or a == 2 then p.BrickColor = BrickColor.new("Cool yellow") elseif a == 3 or a == 4 then p.BrickColor = BrickColor.new("Brick yellow") --wait(1) end end end end
This one will generate a larger desert.
x=1 y=1 z=1 for i = 0, 100, 10 do for j = 0, 3, 1 do for k = 0, 100, 10 do a=math.random(1,4) x=i y=a z=i p = Instance.new("Part") p.CFrame = CFrame.new(Vector3.new(i,j,k)) p.Size = Vector3.new(10,a,10) p.Anchored = true p.Color = Color3.new(1) -- Please change the color to your own desire. p.Parent = game.Workspace if a == 1 or a == 2 then p.BrickColor = BrickColor.new("Cool yellow") elseif a == 3 or a == 4 then p.BrickColor = BrickColor.new("Brick yellow") --wait(1) end end end end
WARING: the large desert will cause major lag. It is highly suggested that you use a snap remover.