Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CordX = 0
- local CordY = 0
- local CordXMax = 100
- local CordYMax = 100
- local PlusY = 0
- local PlusYMax = 10
- local PlusYMin = -10
- Rase = script.Parent.Base:Clone()
- Rase.Parent = script.Parent
- repeat
- script.Parent.Base:TranslateBy(Vector3.new(0, 0, -(CordXMax * 50)))
- script.Parent.Base:TranslateBy(Vector3.new(50, 0, 0))
- Rase = script.Parent.Base:Clone()
- Rase.Parent = script.Parent
- Rase.Name = "Rase"
- Aleki = math.random(100)
- if (Aleki >= 98) then
- Aleki = math.random(125)
- if (Aleki > 50) then
- Rase.Spike.Union.Orientation = Vector3.new(0,90,0)
- Rase.Spike.Union2.Orientation = Vector3.new(0,90,0)
- end
- if (Aleki > 75) then
- Rase.Spike.Union.Orientation = Vector3.new(0,180,0)
- Rase.Spike.Union2.Orientation = Vector3.new(0,180,0)
- end
- if (Aleki > 100) then
- Rase.Spike.Union.Orientation = Vector3.new(0,270,0)
- Rase.Spike.Union2.Orientation = Vector3.new(0,270,0)
- end
- else
- Rase.Spike:Destroy()
- end
- CordY = CordY + 1
- CordX = 0
- PlusY = 0
- repeat
- script.Parent.Base:TranslateBy(Vector3.new(0, 0, 50))
- Rase = script.Parent.Base:Clone()
- Rase.Parent = script.Parent
- Rase.Name = "Rase"
- Aleki = math.random(100)
- if (Aleki >= 98) then
- Aleki = math.random(125)
- if (Aleki > 50) then
- Rase.Spike.Union.Orientation = Vector3.new(0,90,0)
- Rase.Spike.Union2.Orientation = Vector3.new(0,90,0)
- end
- if (Aleki > 75) then
- Rase.Spike.Union.Orientation = Vector3.new(0,180,0)
- Rase.Spike.Union2.Orientation = Vector3.new(0,180,0)
- end
- if (Aleki > 100) then
- Rase.Spike.Union.Orientation = Vector3.new(0,270,0)
- Rase.Spike.Union2.Orientation = Vector3.new(0,270,0)
- end
- else
- Rase.Spike:Destroy()
- end
- Aleki = math.random(100)
- if (Aleki >= 50) then
- if (PlusY >= PlusYMax) then
- else
- PlusY = PlusY + 1
- end
- else
- if (PlusY <= PlusYMin) then
- else
- PlusY = PlusY - 1
- end
- end
- Rase:TranslateBy(Vector3.new(0,PlusY,0))
- Aleki = math.random(125)
- if (Aleki > 50) then
- Rase.Union.Orientation = Vector3.new(0,90,0)
- end
- if (Aleki > 75) then
- Rase.Union.Orientation = Vector3.new(0,180,0)
- end
- if (Aleki > 100) then
- Rase.Union.Orientation = Vector3.new(0,270,0)
- end
- CordX = CordX + 1
- if (CordY == (CordYMax / 2) and CordX == (CordXMax / 2)) then
- Sspawn = script.Parent.SP:Clone()
- Sspawn.Parent = Rase
- Sspawn.Position = Vector3.new((CordYMax / 2) * 50,0,-((CordXMax / 2) * 50))
- script.Parent.SP:Destroy()
- end
- until CordX == CordXMax
- until CordY == CordYMax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement