astronaut32

time lantern

Dec 13th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. mainc = BrickColor.new("Black")
  2. lightc = BrickColor.new("Bright yellow")
  3. posx = -210
  4. posz = -210
  5.  
  6. tab = {}
  7. thing = {}
  8.  
  9. for i = -960, 960, 40 do
  10. local o = Instance.new("Part")
  11. o.Parent = workspace
  12. o.formFactor = 0
  13. o.TopSurface = 0
  14. o.BottomSurface = 0
  15. o.Anchored = true
  16. o.Size = Vector3.new(4,3,4)
  17. o.CFrame = CFrame.new(posx,1.2,posz)
  18. o.BrickColor = mainc
  19. local o1 = Instance.new("SpecialMesh")
  20. o1.Parent = o
  21. o1.MeshType = "FileMesh"
  22. o1.MeshId = "http://www.roblox.com/asset/?id=1033714"
  23. o1.Scale = Vector3.new(1.9, 2.5, 1.9)
  24. local e = Instance.new("Part")
  25. e.Parent = workspace
  26. e.formFactor = 0
  27. e.TopSurface = 0
  28. e.BottomSurface = 0
  29. e.Anchored = true
  30. e.Size = Vector3.new(1,9,1)
  31. e.CFrame = CFrame.new(posx,5.5,posz)
  32. e.BrickColor = mainc
  33. local e1 = Instance.new("CylinderMesh")
  34. e1.Parent = e
  35. local g = Instance.new("Part")
  36. g.Parent = workspace
  37. g.formFactor = 0
  38. g.TopSurface = 0
  39. g.BottomSurface = 0
  40. g.Anchored = true
  41. g.Size = Vector3.new(4,1,4)
  42. g.CFrame = CFrame.new(posx,10.5,posz)
  43. g.BrickColor = mainc
  44. local g1 = Instance.new("CylinderMesh")
  45. g1.Parent = g
  46. local r = Instance.new("Part")
  47. r.Parent = workspace
  48. r.formFactor = 0
  49. r.TopSurface = 0
  50. r.BottomSurface = 0
  51. r.Anchored = true
  52. r.Size = Vector3.new(3,3,3)
  53. r.CFrame = CFrame.new(posx,12,posz)
  54. r.BrickColor = lightc
  55. r.Transparency = 0.1
  56. table.insert(thing,r)
  57. local r1 = Instance.new("CylinderMesh")
  58. r1.Parent = r
  59. local m = g:clone()
  60. m.Parent = workspace
  61. m.CFrame = CFrame.new(posx,14,posz)
  62. local k = Instance.new("Part")
  63. k.Parent = workspace
  64. k.formFactor = 0
  65. k.TopSurface = 0
  66. k.BottomSurface = 0
  67. k.Anchored = true
  68. k.Size = Vector3.new(1,3,1)
  69. k.CFrame = CFrame.new(posx+1.6,12,posz)
  70. k.BrickColor = mainc
  71. local k1 = Instance.new("CylinderMesh")
  72. k1.Parent = k
  73. k1.Scale = Vector3.new(0.35,1,0.35)
  74. local kj = k:clone()
  75. kj.Parent = workspace
  76. kj.CFrame = CFrame.new(posx-1.6,12,posz)
  77. local kf = k:clone()
  78. kf.Parent = workspace
  79. kf.CFrame = CFrame.new(posx,12,posz+1.6)
  80. local kt = k:clone()
  81. kt.Parent = workspace
  82. kt.CFrame = CFrame.new(posx,12,posz-1.6)
  83. for o=1, 36, 2 do
  84. local bal1 = Instance.new("Part")
  85. bal1.Parent = workspace
  86. bal1.Shape = "Ball"
  87. bal1.TopSurface = 0
  88. bal1.BottomSurface = 0
  89. bal1.Anchored = true
  90. bal1.Size = Vector3.new(1,1,1)
  91. bal1.CFrame = CFrame.new(posx,12,posz)
  92. bal1.BrickColor = lightc
  93. bal1.Transparency = 0.94
  94. bal1.CanCollide = false
  95. local bh = Instance.new("SpecialMesh")
  96. bh.Parent = bal1
  97. bh.MeshType = "Sphere"
  98. bh.Scale = Vector3.new(o,o,o)
  99. table.insert(tab,bal1)
  100. end
  101. posx = posx + 70
  102. if posx >= 250 then
  103. posx = -210
  104. posz = posz + 70
  105. end
  106. end
  107.  
  108. l = game:service("Lighting")
  109. coroutine.resume(coroutine.create(function()
  110. m = Instance.new("Hint")
  111. m.Parent = workspace
  112. while true do
  113. wait(0.04)
  114. l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+1)
  115. m.Text = l.TimeOfDay
  116. if l:GetMinutesAfterMidnight() >= 1045 or l:GetMinutesAfterMidnight() <= 410 then
  117. for i=1, #tab do
  118. tab[i].Transparency = 0.94
  119. end
  120. for i=1, #thing do
  121. thing[i].Transparency = 0.2
  122. thing[i].BrickColor = lightc
  123. end
  124. l.Brightness = 0.2
  125. l.Ambient = Color3.new(0.3,0.3,0.55)
  126. else
  127. l.Brightness = 0.6
  128. l.Ambient = Color3.new(0.56,0.56,0.56)
  129. for i=1, #tab do
  130. tab[i].Transparency = 1
  131. end
  132. for i=1, #thing do
  133. thing[i].Transparency = 0.6
  134. thing[i].BrickColor = BrickColor.new("Medium grey")
  135. end
  136. end
  137. end
  138. end))
Add Comment
Please, Sign In to add comment