Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.53 KB | None | 0 0
  1. local CordX = 0
  2. local CordY = 0
  3. local CordXMax = 100
  4. local CordYMax = 100
  5. local PlusY = 0
  6. local PlusYMax = 10
  7. local PlusYMin = -10
  8.  
  9. Rase = script.Parent.Base:Clone()
  10. Rase.Parent = script.Parent
  11. repeat
  12.    
  13.     script.Parent.Base:TranslateBy(Vector3.new(0, 0, -(CordXMax * 50)))
  14.     script.Parent.Base:TranslateBy(Vector3.new(50, 0, 0))
  15.     Rase = script.Parent.Base:Clone()
  16.     Rase.Parent = script.Parent
  17.     Rase.Name = "Rase"
  18.         Aleki = math.random(100)
  19.     if (Aleki >= 98) then
  20.         Aleki = math.random(125)
  21.         if (Aleki > 50) then
  22.             Rase.Spike.Union.Orientation = Vector3.new(0,90,0)
  23.             Rase.Spike.Union2.Orientation = Vector3.new(0,90,0)
  24.         end
  25.         if (Aleki > 75) then
  26.             Rase.Spike.Union.Orientation = Vector3.new(0,180,0)
  27.             Rase.Spike.Union2.Orientation = Vector3.new(0,180,0)
  28.         end
  29.         if (Aleki > 100) then
  30.             Rase.Spike.Union.Orientation = Vector3.new(0,270,0)
  31.             Rase.Spike.Union2.Orientation = Vector3.new(0,270,0)
  32.         end
  33.     else
  34.         Rase.Spike:Destroy()
  35.     end
  36.     CordY = CordY + 1
  37.     CordX = 0
  38.     PlusY = 0
  39.     repeat
  40.    
  41.         script.Parent.Base:TranslateBy(Vector3.new(0, 0, 50))
  42.         Rase = script.Parent.Base:Clone()
  43.         Rase.Parent = script.Parent
  44.         Rase.Name = "Rase"
  45.         Aleki = math.random(100)
  46.         if (Aleki >= 98) then
  47.             Aleki = math.random(125)
  48.             if (Aleki > 50) then
  49.                 Rase.Spike.Union.Orientation = Vector3.new(0,90,0)
  50.                 Rase.Spike.Union2.Orientation = Vector3.new(0,90,0)
  51.             end
  52.             if (Aleki > 75) then
  53.                 Rase.Spike.Union.Orientation = Vector3.new(0,180,0)
  54.                 Rase.Spike.Union2.Orientation = Vector3.new(0,180,0)
  55.             end
  56.             if (Aleki > 100) then
  57.                 Rase.Spike.Union.Orientation = Vector3.new(0,270,0)
  58.                 Rase.Spike.Union2.Orientation = Vector3.new(0,270,0)
  59.             end
  60.         else
  61.             Rase.Spike:Destroy()
  62.         end
  63.         Aleki = math.random(100)
  64.         if (Aleki >= 50) then
  65.             if (PlusY >= PlusYMax) then
  66.             else
  67.             PlusY = PlusY + 1
  68.             end
  69.         else
  70.             if (PlusY <= PlusYMin) then
  71.             else
  72.             PlusY = PlusY - 1
  73.             end
  74.         end
  75.         Rase:TranslateBy(Vector3.new(0,PlusY,0))
  76.         Aleki = math.random(125)
  77.         if (Aleki > 50) then
  78.             Rase.Union.Orientation = Vector3.new(0,90,0)
  79.         end
  80.         if (Aleki > 75) then
  81.             Rase.Union.Orientation = Vector3.new(0,180,0)
  82.         end
  83.         if (Aleki > 100) then
  84.             Rase.Union.Orientation = Vector3.new(0,270,0)
  85.         end
  86.         CordX = CordX + 1
  87.         if (CordY == (CordYMax / 2) and CordX == (CordXMax / 2)) then
  88.             Sspawn = script.Parent.SP:Clone()
  89.             Sspawn.Parent = Rase
  90.             Sspawn.Position = Vector3.new((CordYMax / 2) * 50,0,-((CordXMax / 2) * 50))
  91.             script.Parent.SP:Destroy()
  92.         end
  93.        
  94.     until CordX == CordXMax
  95.    
  96. until CordY == CordYMax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement