Advertisement
lafur

Untitled

Mar 3rd, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  2. modelname = "xPentagonS"
  3. me = game.Players.timetodie23232223
  4. allowed = {{me.Name, 10}, {"Zewl", 9}, {"Fenrier", 9}}
  5. Pos = Vector3.new(-100,1,0)
  6.  
  7. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break, CF)
  8. local p = Instance.new("Part")
  9. p.formFactor = "Custom"
  10. p.Anchored = Anchor
  11. p.CanCollide = Collide
  12. p.Transparency = Tran
  13. p.Reflectance = Ref
  14. p.BrickColor = BrickColor.new(Color)
  15. for _, Surf in pairs(Surfaces) do
  16. p[Surf] = "Smooth"
  17. end
  18. p.Size = Vector3.new(X, Y, Z)
  19. p.CFrame = CF
  20. if Break then
  21. p:BreakJoints()
  22. else p:MakeJoints() end
  23. p.Parent = Parent
  24. return p
  25. end
  26.  
  27. function makehouse()
  28. local hmm = workspace:findFirstChild(modelname)
  29. if hmm ~= nil then hmm:remove() end
  30. local m = Instance.new("Model")
  31. m.Name = modelname
  32. for i = 0, math.pi, math.pi/3 do
  33. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 1, 200*0.85, true,
  34. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/6),0))
  35. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 1, 200*0.85, true,
  36. CFrame.new(Pos) * CFrame.new(0,39,0) * CFrame.Angles(0,i+(math.pi/6),0))
  37. end
  38. for i = 0, (math.pi*2)-(math.pi/3), math.pi/3 do
  39. if i ~= 0 then
  40. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 4, 2, true,
  41. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/2+math.pi),0) * CFrame.new(0,1.5,-(200*0.84)*0.5))
  42. Part(m, true, true, 0.4, 0.25, "Light blue", 115.5*0.85, 9, 0.7, true,
  43. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/2+math.pi),0) * CFrame.new(0,8,-(200*0.84)*0.5))
  44. Part(m, true, true, 0, 0, "Dark grey", 115.5*0.85, 26, 2, true,
  45. CFrame.new(Pos) * CFrame.Angles(0,i+(math.pi/2+math.pi),0) * CFrame.new(0,25.5,-(200*0.84)*0.5))
  46. end
  47. end
  48. m.Parent = workspace
  49. m.Locked = true
  50. end
  51. makehouse()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement