User:Buckethead101/Terrain Generators

From Legacy Roblox Wiki
Revision as of 01:50, 30 December 2008 by >Buckethead101
Jump to navigationJump to search

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 Fields

This one generates small grassy-field like 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