sroge445
|
  |
| Joined: 02 Jun 2008 |
| Total Posts: 5590 |
|
|
| 11 Nov 2008 03:41 PM |
function terrain() for i = 1, 500 do wait(0.1) local s = Instance.new("Part") s.Position = Vector3.new(math.random(-100, 100), 1, math.random(-100, 100)) s.Size = Vector3.new(math.random(1, 20), math.random(1, 20), math.random(1, 20)) s.Anchored = true s.Locked = true s.Name = "terrain" end end
its a terrain generator and the output says nothing |
|
|
| Report Abuse |
|
|
| |
|
sroge445
|
  |
| Joined: 02 Jun 2008 |
| Total Posts: 5590 |
|
|
| 11 Nov 2008 03:44 PM |
| WOW i cant believe i forgot that thx |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:47 PM |
it might work, just you need something other that function Terrain() you need like a while true do to make the terrain appear like:
while true do wait(300) Terrain() end |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:49 PM |
| Or just add Terrain() into the script after you type the function. |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:49 PM |
erm try this:
pos1,pos2,po3 = math.random(1,20),math.random(1,20),math.random(1,20) Length,Width,Height = math.random(-100,100),1,math.random(-100,100)
function terrain() for i = 1, 500 do wait(0.1) local s = Instance.new("Part") s.Parent = game.Workspace s.Position = Vector3.new(pos1,pos2,pos3) s.Size = Vector3.new(Length,Width,Height s.BrickColor = BrickColor.Random() --Whatever, dunno what color u wanted s.Anchored = true s.Locked = true s.Name = "terrain" end end
wait(0.1) function terrain() -- I think this is right end
Havent tested yet, dunno |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:50 PM |
PS your terrain would take 50 seconds to 'load'
Just to let you know... XD
I would use wait(.0001) instead. Then it would take .5 seconds to 'load' |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:51 PM |
| it will make it every .2 seconds, it will be laggy... lol change the time... |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:52 PM |
function terrain() for i = 1, 500 do wait(0.1) --takes 50 seconds XD local s = Instance.new("Part") s.Parent = workspace s.Position = Vector3.new(math.random(-100, 100), 1, math.random(-100, 100)) s.Size = Vector3.new(math.random(1, 20), math.random(1, 20), math.random(1, 20)) s.Anchored = true s.Locked = true s.Name = "terrain" end end
terrain()
--Note to kisame, Position moves the brick to the nearest point it can be without 'fusing' with other bricks. You are thinking about CFrame. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Nov 2008 03:55 PM |
| Once he had the script working, I'd remove the wait entirely, or simply have wait(). Theres no need for it to take ages, except maybe so people can 'oooh' as it grows. |
|
|
| Report Abuse |
|
|
sroge445
|
  |
| Joined: 02 Jun 2008 |
| Total Posts: 5590 |
|
|
| 11 Nov 2008 04:06 PM |
| look it works fire i wasnted to make it take 50 secs to see it build and i know i can do terrain() when i need it but i did s.Color = Color3.new(math.random(1, 250)) it just gives me a bunch of red bricks |
|
|
| Report Abuse |
|
|
| |
|
| |
|