Advertisement
popster12345

Untitled

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