Skip to content

Instantly share code, notes, and snippets.

@compscitwilight
Created August 31, 2022 05:52
Show Gist options
  • Select an option

  • Save compscitwilight/a7b4030aa4ff3ad4fe36a5113d67d2df to your computer and use it in GitHub Desktop.

Select an option

Save compscitwilight/a7b4030aa4ff3ad4fe36a5113d67d2df to your computer and use it in GitHub Desktop.

Revisions

  1. compscitwilight created this gist Aug 31, 2022.
    16 changes: 16 additions & 0 deletions seed.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    local gen = 1000

    function generate(i)
    local num = math.random(0, i)
    local part = Instance.new("Part")

    part.BrickColor = BrickColor.random()
    part.Anchored = true
    part.Parent = workspace
    part.Position = Vector3.new(num * 2, 1, num * 3) * math.random(0, 200)
    part.Size = Vector3.new(num * 20, 50 + math.random(50), num * 20)
    end

    for i = 0, gen, 1 do
    generate(i)
    end