SebTDZ

:D

Jul 7th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.24 KB | None | 0 0
  1. local F = {}
  2. local Part = Instance.new("Part",workspace)
  3. Part.Name = "84829348829438327438"
  4. Part.Reflectance = 1
  5. Part.TopSurface = "Smooth"
  6. Part.BottomSurface = "Smooth"
  7. Part.Material = "SmoothPlastic"
  8. Part.Anchored = true
  9. Part.Position = Vector3.new(-250,250,-250)
  10. Part.Size = Vector3.new(100,1,100)
  11. owner.Character.HumanoidRootPart.CFrame = Part.CFrame + Vector3.new(0,3,0)
  12.  
  13. local Part2 = Instance.new("Part",workspace)
  14. Part2.Name = "84829348829438327438"
  15. Part2.Reflectance = 1
  16. Part2.TopSurface = "Smooth"
  17. Part2.BottomSurface = "Smooth"
  18. Part2.Material = "SmoothPlastic"
  19. Part2.Anchored = false
  20. Part2.CanCollide = false
  21. Part2.Position = Part.Position + Vector3.new(50,50,0)
  22. Part2.Size = Vector3.new(1,100,100)
  23. local Body1 = Instance.new("BodyPosition")
  24. Body1.Parent = Part2
  25. Body1.Position = Part2.Position
  26. Body1.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  27. table.insert(F,Body1)
  28.  
  29.  
  30. local Part3 = Instance.new("Part",workspace)
  31. Part3.Name = "84829348829438327438"
  32. Part3.Reflectance = 1
  33. Part3.TopSurface = "Smooth"
  34. Part3.BottomSurface = "Smooth"
  35. Part3.Material = "SmoothPlastic"
  36. Part3.Anchored = false
  37. Part3.CanCollide = false
  38. Part3.Position = Part.Position + Vector3.new(-50,50,0)
  39. Part3.Size = Vector3.new(1,100,100)
  40. local Body2 = Instance.new("BodyPosition")
  41. Body2.Parent = Part3
  42. Body2.Position = Part3.Position
  43. Body2.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  44. table.insert(F,Body2)
  45.  
  46. local Part4 = Instance.new("Part",workspace)
  47. Part4.Name = "84829348829438327438"
  48. Part4.Reflectance = 1
  49. Part4.TopSurface = "Smooth"
  50. Part4.BottomSurface = "Smooth"
  51. Part4.Material = "SmoothPlastic"
  52. Part4.Anchored = false
  53. Part4.CanCollide = false
  54. Part4.Position = Part.Position + Vector3.new(0,100,0)
  55. Part4.Size = Vector3.new(100,1,100)
  56. local Body3 = Instance.new("BodyPosition")
  57. Body3.Parent = Part4
  58. Body3.Position = Part4.Position
  59. Body3.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  60. table.insert(F,Body3)
  61.  
  62. local Part5 = Instance.new("Part",workspace)
  63. Part5.Name = "84829348829438327438"
  64. Part5.Reflectance = 1
  65. Part5.TopSurface = "Smooth"
  66. Part5.BottomSurface = "Smooth"
  67. Part5.Material = "SmoothPlastic"
  68. Part5.Anchored = false
  69. Part5.CanCollide = false
  70. Part5.Position = Part.Position + Vector3.new(0,50,50)
  71. Part5.Size = Vector3.new(100,100,1)
  72. local Body4 = Instance.new("BodyPosition")
  73. Body4.Parent = Part5
  74. Body4.Position = Part5.Position
  75. Body4.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  76. table.insert(F,Body4)
  77.  
  78. local Part6 = Instance.new("Part",workspace)
  79. Part6.Name = "84829348829438327438"
  80. Part6.Reflectance = 1
  81. Part6.TopSurface = "Smooth"
  82. Part6.BottomSurface = "Smooth"
  83. Part6.Material = "SmoothPlastic"
  84. Part6.Anchored = false
  85. Part6.CanCollide = false
  86. Part6.Position = Part.Position + Vector3.new(0,50,-50)
  87. Part6.Size = Vector3.new(100,100,1)
  88. local Body5 = Instance.new("BodyPosition")
  89. Body5.Parent = Part6
  90. Body5.Position = Part6.Position
  91. Body5.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  92. table.insert(F,Body5)
  93.  
  94. --Inside
  95.  
  96. local Part7 = Instance.new("Part",workspace)
  97. Part7.Name = "84829348829438327438"
  98. Part7.Reflectance = 0
  99. Part7.TopSurface = "Smooth"
  100. Part7.BottomSurface = "Smooth"
  101. Part7.Material = "SmoothPlastic"
  102. Part7.Anchored = true
  103. Part7.Position = Part.Position + Vector3.new(0,1,0)
  104. Part7.Size = Vector3.new(99,1,99)
  105.  
  106. local Part8 = Instance.new("Part",workspace)
  107. Part8.Name = "84829348829438327438"
  108. Part8.Reflectance = 0
  109. Part8.TopSurface = "Smooth"
  110. Part8.BottomSurface = "Smooth"
  111. Part8.Material = "SmoothPlastic"
  112. Part8.Anchored = false
  113. Part8.CanCollide = false
  114. Part8.Position = Part.Position + Vector3.new(0,99,0)
  115. Part8.Size = Vector3.new(99,1,99)
  116. local Body6 = Instance.new("BodyPosition")
  117. Body6.Parent = Part8
  118. Body6.Position = Part8.Position
  119. Body6.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  120. table.insert(F,Body6)
  121.  
  122. local Part9 = Instance.new("Part",workspace)
  123. Part9.Name = "84829348829438327438"
  124. Part9.Reflectance = 0
  125. Part9.TopSurface = "Smooth"
  126. Part9.BottomSurface = "Smooth"
  127. Part9.Material = "SmoothPlastic"
  128. Part9.Anchored = false
  129. Part9.CanCollide = false
  130. Part9.Position = Part.Position + Vector3.new(49,50,0)
  131. Part9.Size = Vector3.new(1,99,99)
  132. local Body7 = Instance.new("BodyPosition")
  133. Body7.Parent = Part9
  134. Body7.Position = Part9.Position
  135. Body7.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  136. table.insert(F,Body7)
  137.  
  138. local Part10 = Instance.new("Part",workspace)
  139. Part10.Name = "84829348829438327438"
  140. Part10.Reflectance = 0
  141. Part10.TopSurface = "Smooth"
  142. Part10.BottomSurface = "Smooth"
  143. Part10.Material = "SmoothPlastic"
  144. Part10.Anchored = false
  145. Part10.CanCollide = false
  146. Part10.Position = Part.Position + Vector3.new(-49,50,0)
  147. Part10.Size = Vector3.new(1,99,99)
  148. local Body8 = Instance.new("BodyPosition")
  149. Body8.Parent = Part10
  150. Body8.Position = Part10.Position
  151. Body8.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  152. table.insert(F,Body8)
  153.  
  154. local Part11 = Instance.new("Part",workspace)
  155. Part11.Name = "84829348829438327438"
  156. Part11.Reflectance = 0
  157. Part11.TopSurface = "Smooth"
  158. Part11.BottomSurface = "Smooth"
  159. Part11.Material = "SmoothPlastic"
  160. Part11.Anchored = false
  161. Part11.CanCollide = false
  162. Part11.Position = Part.Position + Vector3.new(0,50,49)
  163. Part11.Size = Vector3.new(99,99,1)
  164. local Body9 = Instance.new("BodyPosition")
  165. Body9.Parent = Part11
  166. Body9.Position = Part11.Position
  167. Body9.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  168. table.insert(F,Body9)
  169.  
  170. local Part12 = Instance.new("Part",workspace)
  171. Part12.Name = "84829348829438327438"
  172. Part12.Reflectance = 0
  173. Part12.TopSurface = "Smooth"
  174. Part12.BottomSurface = "Smooth"
  175. Part12.Material = "SmoothPlastic"
  176. Part12.Anchored = false
  177. Part12.CanCollide = false
  178. Part12.Position = Part.Position + Vector3.new(0,50,-49)
  179. Part12.Size = Vector3.new(99,99,1)
  180. local Body10 = Instance.new("BodyPosition")
  181. Body10.Parent = Part12
  182. Body10.Position = Part12.Position
  183. Body10.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  184. table.insert(F,Body10)
  185.  
  186. local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
  187. ScreenGui.Name = "Walls"
  188. local asd = Instance.new("TextButton",ScreenGui)
  189. asd.BackgroundColor3 = Color3.new(0,0,0)
  190. asd.BorderColor3 = Color3.new(0,0,0)
  191. asd.Name = "Walls"
  192. asd.Position = UDim2.new(1,-150,1,-190)
  193. asd.Size = UDim2.new(0,150,0,45)
  194. asd.Font = "SourceSansBold"
  195. asd.FontSize = "Size32"
  196. asd.Text = "Open"
  197. asd.TextColor3 = Color3.new(255,255,255)
  198. asd.MouseButton1Down:connect(function()
  199.     if asd.Text == "Open" then
  200.         for i,b in pairs(F) do
  201.             b.Position = b.Position + Vector3.new(0,25,0)
  202.         end
  203.         asd.Text = "Close"
  204.     else
  205.         for i,b in pairs(F) do
  206.             b.Position = b.Position - Vector3.new(0,25,0)
  207.         end
  208.         asd.Text = "Open"
  209.     end
  210. end)
  211.  
  212. while game.Workspace:FindFirstChild("84829348829438327438") do
  213.     game.Lighting:SetMinutesAfterMidnight(0)
  214.     wait(0.5)
  215. end
  216. game.Lighting:SetMinutesAfterMidnight(1000)
  217. ScreenGui:Remove()
Add Comment
Please, Sign In to add comment