Scriptorz5

lantern map

May 5th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. mainc = BrickColor.new("Black")
  2. lightc = BrickColor.new("Bright yellow")
  3. posx = -210
  4. posz = -210
  5.  
  6.  
  7. for i = -960, 960, 40 do
  8. local o = Instance.new("Part")
  9. o.Parent = workspace
  10. o.formFactor = 0
  11. o.TopSurface = 0
  12. o.BottomSurface = 0
  13. o.Anchored = true
  14. o.Size = Vector3.new(4,3,4)
  15. o.CFrame = CFrame.new(posx,1.2,posz)
  16. o.BrickColor = mainc
  17. local cli = Instance.new("ClickDetector")
  18. cli.Parent = o
  19. cli.MaxActivationDistance = 20
  20. local o1 = Instance.new("SpecialMesh")
  21. o1.Parent = o
  22. o1.MeshType = "FileMesh"
  23. o1.MeshId = "http://www.roblox.com/asset/?id=1033714"
  24. o1.Scale = Vector3.new(1.9, 2.5, 1.9)
  25. local e = Instance.new("Part")
  26. e.Parent = workspace
  27. e.formFactor = 0
  28. e.TopSurface = 0
  29. e.BottomSurface = 0
  30. e.Anchored = true
  31. e.Size = Vector3.new(1,9,1)
  32. e.CFrame = CFrame.new(posx,5.5,posz)
  33. e.BrickColor = mainc
  34. local e1 = Instance.new("CylinderMesh")
  35. e1.Parent = e
  36. local g = Instance.new("Part")
  37. g.Parent = workspace
  38. g.formFactor = 0
  39. g.TopSurface = 0
  40. g.BottomSurface = 0
  41. g.Anchored = true
  42. g.Size = Vector3.new(4,1,4)
  43. g.CFrame = CFrame.new(posx,10.5,posz)
  44. g.BrickColor = mainc
  45. local g1 = Instance.new("CylinderMesh")
  46. g1.Parent = g
  47. local r = Instance.new("Part")
  48. r.Parent = workspace
  49. r.formFactor = 0
  50. r.TopSurface = 0
  51. r.BottomSurface = 0
  52. r.Anchored = true
  53. r.Size = Vector3.new(3,3,3)
  54. r.CFrame = CFrame.new(posx,12,posz)
  55. r.BrickColor = lightc
  56. r.Transparency = 0.1
  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. local tab = {}
  84. for o=1, 36, 2 do
  85. local bal1 = Instance.new("Part")
  86. bal1.Parent = workspace
  87. bal1.Shape = "Ball"
  88. bal1.TopSurface = 0
  89. bal1.BottomSurface = 0
  90. bal1.Anchored = true
  91. bal1.Size = Vector3.new(1,1,1)
  92. bal1.CFrame = CFrame.new(posx,12,posz)
  93. bal1.BrickColor = lightc
  94. bal1.Transparency = 0.94
  95. bal1.CanCollide = false
  96. local bh = Instance.new("SpecialMesh")
  97. bh.Parent = bal1
  98. bh.MeshType = "Sphere"
  99. bh.Scale = Vector3.new(o,o,o)
  100. table.insert(tab,bal1)
  101. end
  102. local mode = true
  103. cli.MouseClick:connect(function()
  104. if mode == true then
  105. r.Transparency = 0.6
  106. r.BrickColor = BrickColor.new("Medium grey")
  107. for i=1, #tab do
  108. wait()
  109. tab[i].Transparency = 1
  110. end
  111. mode = false
  112. else
  113. r.Transparency = 0.1
  114. r.BrickColor = lightc
  115. for i=1, #tab do
  116. wait()
  117. tab[i].Transparency = 0.94
  118. end
  119. mode = true
  120. end
  121. end)
  122. posx = posx + 70
  123. if posx >= 250 then
  124. posx = -210
  125. posz = posz + 70
  126. end
  127. end
Add Comment
Please, Sign In to add comment