Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Radius = 200
- local Parts = 30
- local CenterPos = (workspace:FindFirstChild("GenerationCenterPiece") and workspace:FindFirstChild("GenerationCenterPiece").Position) or Vector3.new(0,0,0)
- local YAdjustment = (workspace:FindFirstChild("GenerationCenterPiece") and workspace:FindFirstChild("GenerationCenterPiece").Size.Y) or 0
- for i = 1, Parts do
- local P = Instance.new("Part")
- P.Anchored = true
- P.BottomSurface, P.TopSurface = "Smooth", "Smooth"
- P.Size = Vector3.new(40,100,8)
- P.BrickColor = BrickColor.White()
- P.CFrame = CFrame.new(CenterPos) * (CFrame.Angles(0,math.rad(360/Parts) * i, 0) * CFrame.new(0,-YAdjustment/2 + P.Size.Y/2,Radius))
- P.Parent = workspace
- P.Name = "Wall"
- local Barring1 = P:Clone()
- Barring1.Size = Vector3.new(P.Size.X, 3, 1)
- Barring1.CFrame = P.CFrame * CFrame.new(0, P.Size.Y/2 + Barring1.Size.Y/2, P.Size.Z/2 - Barring1.Size.Z/2)
- Barring1.Parent = workspace
- Barring1.Name = "WallGuard1"
- local Barring2 = P:Clone()
- Barring2.Size = Vector3.new(P.Size.X, 3, 1)
- Barring2.CFrame = P.CFrame * CFrame.new(0, P.Size.Y/2 + Barring2.Size.Y/2, P.Size.Z/-2 + Barring2.Size.Z/2)
- Barring2.Parent = workspace
- Barring2.Name = "WallGuard2"
- local NextRotation = math.rad(360/Parts) * (i+1)
- local CurrentRotation = math.rad(360/Parts) * (i)
- local Difference = NextRotation - CurrentRotation
- local MidPoint = Difference/2
- local Buttress = P:Clone()
- Buttress.Size = Vector3.new(10, P.Size.Y + 5, P.Size.Z + 5)
- Buttress.CFrame = P.CFrame * CFrame.new(P.Size.X/2,(Buttress.Size.Y - P.Size.Y)/2,0) * CFrame.Angles(0,MidPoint,0)
- Buttress.Parent = workspace
- Buttress.Name = "Buttress"
- -- Generate platform to be unioned by studio guy (you/me)
- local Platform = P:Clone()
- Platform.Size = Vector3.new(P.Size.X, 1, Radius/2 + 5)
- Platform.CFrame = P.CFrame * CFrame.new(0, P.Size.Y/2 - 15, -P.Size.Z/2 - Platform.Size.Z/2 + 5)
- Platform.Parent = workspace
- Platform.Name = "PlatformPiece (Needs to be Unioned)"
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement