Advertisement
Hebablazin

Pentagon

May 30th, 2016
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. --Pentagon Gifted by machontz, Regular Script!
  2.  
  3. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  4.  
  5. modelname = "pips"
  6.  
  7. me = game.Players.TheMoonlightGlows
  8.  
  9. allowed = {{me.Name, 10}, {"Zewl", 9}, {"Fenrier", 9}}
  10.  
  11. Pos = Vector3.new(-100,1,0)
  12.  
  13.  
  14.  
  15. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break, CF)
  16.  
  17. local p = Instance.new("Part")
  18.  
  19. p.formFactor = "Custom"
  20.  
  21. p.Anchored = Anchor
  22.  
  23. p.CanCollide = Collide
  24.  
  25. p.Transparency = Tran
  26.  
  27. p.Reflectance = Ref
  28.  
  29. p.BrickColor = BrickColor.new(Color)
  30.  
  31. for _, Surf in pairs(Surfaces) do
  32.  
  33. p[Surf] = "Smooth"
  34.  
  35. end
  36.  
  37. p.Size = Vector3.new(X, Y, Z)
  38.  
  39. p.CFrame = CF
  40.  
  41. if Break then
  42.  
  43. p:BreakJoints()
  44.  
  45. else p:MakeJoints() end
  46.  
  47. p.Parent = Parent
  48.  
  49. return p
  50.  
  51. end
  52.  
  53.  
  54.  
  55. function makehouse()
  56.  
  57. local hmm = workspace:findFirstChild(modelname)
  58.  
  59. if hmm ~= nil then hmm:remove() end
  60.  
  61. local m = Instance.new("Model")
  62.  
  63. m.Name = modelname
  64.  
  65. for i = 0, math.pi, math.pi/3 do
  66.  
  67. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 1, 200*0.85, true,
  68.  
  69. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/6),0))
  70.  
  71. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 1, 200*0.85, true,
  72.  
  73. CFrame.new(Pos) * CFrame.new(0,39,0) * CFrame.Angles(0,i+(math.pi/6),0))
  74.  
  75. end
  76.  
  77. for i = 0, (math.pi*2)-(math.pi/3), math.pi/3 do
  78.  
  79. if i ~= 0 then
  80.  
  81. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 4, 2, true,
  82.  
  83. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/2+math.pi),0) * CFrame.new(0,1.5,-(200*0.84)*0.5))
  84.  
  85. Part(m, true, true, 0.4, 0.25, "Light blue", 115.5*0.85, 9, 0.7, true,
  86.  
  87. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/2+math.pi),0) * CFrame.new(0,8,-(200*0.84)*0.5))
  88.  
  89. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 26, 2, true,
  90.  
  91. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/2+math.pi),0) * CFrame.new(0,25.5,-(200*0.84)*0.5))
  92.  
  93. end
  94.  
  95. end
  96.  
  97. m.Parent = workspace
  98.  
  99. end
  100.  
  101. makehouse()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement