Advertisement
firebudgy

Untitled

Jan 28th, 2018
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.96 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Model1 = Instance.new("Model")
  21. Model2 = Instance.new("Model")
  22. Model3 = Instance.new("Model")
  23. Part4 = Instance.new("Part")
  24. BlockMesh5 = Instance.new("BlockMesh")
  25. Part6 = Instance.new("Part")
  26. BlockMesh7 = Instance.new("BlockMesh")
  27. Part8 = Instance.new("Part")
  28. BlockMesh9 = Instance.new("BlockMesh")
  29. Part10 = Instance.new("Part")
  30. BlockMesh11 = Instance.new("BlockMesh")
  31. Part12 = Instance.new("Part")
  32. ClickDetector13 = Instance.new("ClickDetector")
  33. CylinderMesh14 = Instance.new("CylinderMesh")
  34. Part15 = Instance.new("Part")
  35. BlockMesh16 = Instance.new("BlockMesh")
  36. Part17 = Instance.new("Part")
  37. BlockMesh18 = Instance.new("BlockMesh")
  38. Model19 = Instance.new("Model")
  39. Part20 = Instance.new("Part")
  40. BlockMesh21 = Instance.new("BlockMesh")
  41. Part22 = Instance.new("Part")
  42. ClickDetector23 = Instance.new("ClickDetector")
  43. BlockMesh24 = Instance.new("BlockMesh")
  44. Decal25 = Instance.new("Decal")
  45. Script26 = Instance.new("Script")
  46. Part27 = Instance.new("Part")
  47. BlockMesh28 = Instance.new("BlockMesh")
  48. Part29 = Instance.new("Part")
  49. BlockMesh30 = Instance.new("BlockMesh")
  50. Part31 = Instance.new("Part")
  51. BlockMesh32 = Instance.new("BlockMesh")
  52. Part33 = Instance.new("Part")
  53. BlockMesh34 = Instance.new("BlockMesh")
  54. Script35 = Instance.new("Script")
  55. Script36 = Instance.new("Script")
  56. Script37 = Instance.new("Script")
  57. Model38 = Instance.new("Model")
  58. Part39 = Instance.new("Part")
  59. ClickDetector40 = Instance.new("ClickDetector")
  60. BlockMesh41 = Instance.new("BlockMesh")
  61. Decal42 = Instance.new("Decal")
  62. Part43 = Instance.new("Part")
  63. BlockMesh44 = Instance.new("BlockMesh")
  64. Part45 = Instance.new("Part")
  65. BlockMesh46 = Instance.new("BlockMesh")
  66. Part47 = Instance.new("Part")
  67. BlockMesh48 = Instance.new("BlockMesh")
  68. Part49 = Instance.new("Part")
  69. BlockMesh50 = Instance.new("BlockMesh")
  70. Part51 = Instance.new("Part")
  71. BlockMesh52 = Instance.new("BlockMesh")
  72. Decal53 = Instance.new("Decal")
  73. Part54 = Instance.new("Part")
  74. BlockMesh55 = Instance.new("BlockMesh")
  75. Decal56 = Instance.new("Decal")
  76. Part57 = Instance.new("Part")
  77. BlockMesh58 = Instance.new("BlockMesh")
  78. Part59 = Instance.new("Part")
  79. BlockMesh60 = Instance.new("BlockMesh")
  80. Part61 = Instance.new("Part")
  81. BlockMesh62 = Instance.new("BlockMesh")
  82. Part63 = Instance.new("Part")
  83. ClickDetector64 = Instance.new("ClickDetector")
  84. BlockMesh65 = Instance.new("BlockMesh")
  85. Decal66 = Instance.new("Decal")
  86. Script67 = Instance.new("Script")
  87. Script68 = Instance.new("Script")
  88. Script69 = Instance.new("Script")
  89. Script70 = Instance.new("Script")
  90. Script71 = Instance.new("Script")
  91. Script72 = Instance.new("Script")
  92. Script73 = Instance.new("Script")
  93. Script74 = Instance.new("Script")
  94. Script75 = Instance.new("Script")
  95. Script76 = Instance.new("Script")
  96. Script77 = Instance.new("Script")
  97. Script78 = Instance.new("Script")
  98. Script79 = Instance.new("Script")
  99. Script80 = Instance.new("Script")
  100. Script81 = Instance.new("Script")
  101. Script82 = Instance.new("Script")
  102. Part83 = Instance.new("Part")
  103. BlockMesh84 = Instance.new("BlockMesh")
  104. Model85 = Instance.new("Model")
  105. Part86 = Instance.new("Part")
  106. BlockMesh87 = Instance.new("BlockMesh")
  107. Part88 = Instance.new("Part")
  108. Script89 = Instance.new("Script")
  109. VelocityMotor90 = Instance.new("VelocityMotor")
  110. Part91 = Instance.new("Part")
  111. BlockMesh92 = Instance.new("BlockMesh")
  112. Part93 = Instance.new("Part")
  113. BlockMesh94 = Instance.new("BlockMesh")
  114. Part95 = Instance.new("Part")
  115. BlockMesh96 = Instance.new("BlockMesh")
  116. Part97 = Instance.new("Part")
  117. BlockMesh98 = Instance.new("BlockMesh")
  118. Part99 = Instance.new("Part")
  119. BlockMesh100 = Instance.new("BlockMesh")
  120. Part101 = Instance.new("Part")
  121. BlockMesh102 = Instance.new("BlockMesh")
  122. Part103 = Instance.new("Part")
  123. BlockMesh104 = Instance.new("BlockMesh")
  124. Part105 = Instance.new("Part")
  125. BlockMesh106 = Instance.new("BlockMesh")
  126. Part107 = Instance.new("Part")
  127. BlockMesh108 = Instance.new("BlockMesh")
  128. Part109 = Instance.new("Part")
  129. BlockMesh110 = Instance.new("BlockMesh")
  130. Part111 = Instance.new("Part")
  131. BlockMesh112 = Instance.new("BlockMesh")
  132. Part113 = Instance.new("Part")
  133. BlockMesh114 = Instance.new("BlockMesh")
  134. Part115 = Instance.new("Part")
  135. BlockMesh116 = Instance.new("BlockMesh")
  136. Part117 = Instance.new("Part")
  137. BlockMesh118 = Instance.new("BlockMesh")
  138. Part119 = Instance.new("Part")
  139. BlockMesh120 = Instance.new("BlockMesh")
  140. Part121 = Instance.new("Part")
  141. BlockMesh122 = Instance.new("BlockMesh")
  142. Part123 = Instance.new("Part")
  143. BlockMesh124 = Instance.new("BlockMesh")
  144. Model0.Name = "Rock v3 By eugenevorld"
  145. Model0.Parent = mas
  146. Model1.Parent = Model0
  147. Model2.Name = "rock"
  148. Model2.Parent = Model1
  149. Model3.Name = "FrontDoor"
  150. Model3.Parent = Model2
  151. Part4.Name = "Bar"
  152. Part4.Parent = Model3
  153. Part4.Rotation = Vector3.new(82.5, 89.8499985, -85.9399948)
  154. Part4.Anchored = true
  155. Part4.FormFactor = Enum.FormFactor.Plate
  156. Part4.Size = Vector3.new(1, 0.400000006, 8)
  157. Part4.CFrame = CFrame.new(-61.5252075, 20.6005478, -72.4999695, 2.31685551e-08, 3.26320588e-07, 0.999996603, 5.46410274e-06, 0.999996185, -4.15810604e-07, -0.999993742, 5.42251701e-06, 5.47766241e-08)
  158. Part4.BottomSurface = Enum.SurfaceType.Smooth
  159. Part4.TopSurface = Enum.SurfaceType.Smooth
  160. Part4.Position = Vector3.new(-61.5252075, 20.6005478, -72.4999695)
  161. Part4.Orientation = Vector3.new(0, 90, 0)
  162. BlockMesh5.Parent = Part4
  163. Part6.Name = "Bar1"
  164. Part6.Parent = Model3
  165. Part6.BrickColor = BrickColor.new("Deep blue")
  166. Part6.Transparency = 0.20000000298023
  167. Part6.Rotation = Vector3.new(-103.329994, -89.8499985, -101.579994)
  168. Part6.Anchored = true
  169. Part6.FormFactor = Enum.FormFactor.Symmetric
  170. Part6.Size = Vector3.new(1, 9, 8)
  171. Part6.CFrame = CFrame.new(-61.5252075, 15.899725, -72.5, -6.68797924e-08, 3.26320588e-07, -0.999996603, -5.46410274e-06, 0.999996185, 4.1581086e-07, 0.999993742, 5.42251701e-06, -9.8487746e-08)
  172. Part6.BottomSurface = Enum.SurfaceType.Smooth
  173. Part6.TopSurface = Enum.SurfaceType.Smooth
  174. Part6.Color = Color3.new(0.129412, 0.329412, 0.72549)
  175. Part6.Position = Vector3.new(-61.5252075, 15.899725, -72.5)
  176. Part6.Orientation = Vector3.new(0, -90, 0)
  177. Part6.Color = Color3.new(0.129412, 0.329412, 0.72549)
  178. BlockMesh7.Parent = Part6
  179. BlockMesh7.Scale = Vector3.new(0, 1, 1)
  180. BlockMesh7.Scale = Vector3.new(0, 1, 1)
  181. Part8.Name = "Bar2"
  182. Part8.Parent = Model3
  183. Part8.Rotation = Vector3.new(90, 0, -90)
  184. Part8.Anchored = true
  185. Part8.FormFactor = Enum.FormFactor.Plate
  186. Part8.Size = Vector3.new(1, 0.400000006, 9)
  187. Part8.CFrame = CFrame.new(-65.7253265, 15.4997063, -72.5, 1.19209268e-07, 1, -1.50995817e-07, -1.50995817e-07, -1.50995803e-07, -1, -1, 1.1920929e-07, 1.50995803e-07)
  188. Part8.BottomSurface = Enum.SurfaceType.Smooth
  189. Part8.TopSurface = Enum.SurfaceType.Smooth
  190. Part8.Position = Vector3.new(-65.7253265, 15.4997063, -72.5)
  191. Part8.Orientation = Vector3.new(90, 90, 0)
  192. BlockMesh9.Parent = Part8
  193. BlockMesh9.Offset = Vector3.new(0, 0, -0.409999996)
  194. BlockMesh9.Scale = Vector3.new(1, 1, 1.09000003)
  195. BlockMesh9.Scale = Vector3.new(1, 1, 1.09000003)
  196. Part10.Name = "Bar"
  197. Part10.Parent = Model3
  198. Part10.Rotation = Vector3.new(82.5, 89.8499985, -85.9399948)
  199. Part10.Anchored = true
  200. Part10.FormFactor = Enum.FormFactor.Plate
  201. Part10.Size = Vector3.new(1, 0.400000006, 8)
  202. Part10.CFrame = CFrame.new(-61.5252075, 11.1998711, -72.5000305, 2.31685551e-08, 3.26320588e-07, 0.999996603, 5.46410274e-06, 0.999996185, -4.15810604e-07, -0.999993742, 5.42251701e-06, 5.47766241e-08)
  203. Part10.BottomSurface = Enum.SurfaceType.Smooth
  204. Part10.TopSurface = Enum.SurfaceType.Smooth
  205. Part10.Position = Vector3.new(-61.5252075, 11.1998711, -72.5000305)
  206. Part10.Orientation = Vector3.new(0, 90, 0)
  207. BlockMesh11.Parent = Part10
  208. Part12.Name = "Button"
  209. Part12.Parent = Model3
  210. Part12.BrickColor = BrickColor.new("Bright blue")
  211. Part12.Rotation = Vector3.new(90, 0, -180)
  212. Part12.Anchored = true
  213. Part12.FormFactor = Enum.FormFactor.Plate
  214. Part12.Size = Vector3.new(1, 1.20000005, 1)
  215. Part12.CFrame = CFrame.new(-67.4502563, 15.9997292, -72.5, -1, 2.70205078e-07, -1.48090564e-07, 1.48090535e-07, -1.07284457e-07, -1, -2.70205078e-07, -1, 1.07284414e-07)
  216. Part12.BottomSurface = Enum.SurfaceType.Smooth
  217. Part12.TopSurface = Enum.SurfaceType.Smooth
  218. Part12.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  219. Part12.Position = Vector3.new(-67.4502563, 15.9997292, -72.5)
  220. Part12.Orientation = Vector3.new(90, 180, 0)
  221. Part12.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  222. ClickDetector13.Name = "Click"
  223. ClickDetector13.Parent = Part12
  224. CylinderMesh14.Parent = Part12
  225. Part15.Name = "Bar2"
  226. Part15.Parent = Model3
  227. Part15.Rotation = Vector3.new(90, 0, -90)
  228. Part15.Anchored = true
  229. Part15.FormFactor = Enum.FormFactor.Plate
  230. Part15.Size = Vector3.new(1, 0.400000006, 9)
  231. Part15.CFrame = CFrame.new(-57.3252716, 15.4997234, -72.5, -3.86616961e-07, 1, -5.01973318e-07, 5.50703317e-06, -5.01971158e-07, -1, -1, -3.86619718e-07, -5.50703317e-06)
  232. Part15.BottomSurface = Enum.SurfaceType.Smooth
  233. Part15.TopSurface = Enum.SurfaceType.Smooth
  234. Part15.Position = Vector3.new(-57.3252716, 15.4997234, -72.5)
  235. Part15.Orientation = Vector3.new(90, 90, 0)
  236. BlockMesh16.Parent = Part15
  237. BlockMesh16.Offset = Vector3.new(0, 0, -0.409999996)
  238. BlockMesh16.Scale = Vector3.new(1, 1, 1.09000003)
  239. BlockMesh16.Scale = Vector3.new(1, 1, 1.09000003)
  240. Part17.Parent = Model3
  241. Part17.Anchored = true
  242. Part17.FormFactor = Enum.FormFactor.Symmetric
  243. Part17.Size = Vector3.new(2, 3, 1)
  244. Part17.CFrame = CFrame.new(-67.4502411, 15.4997234, -72.5, 1, 1.50995817e-07, -1.19209268e-07, -1.50995803e-07, 1, 1.50995817e-07, 1.1920929e-07, -1.50995803e-07, 1)
  245. Part17.BottomSurface = Enum.SurfaceType.Smooth
  246. Part17.TopSurface = Enum.SurfaceType.Smooth
  247. Part17.Position = Vector3.new(-67.4502411, 15.4997234, -72.5)
  248. BlockMesh18.Parent = Part17
  249. BlockMesh18.Scale = Vector3.new(0.800000012, 0.800000012, 1.01999998)
  250. BlockMesh18.Scale = Vector3.new(0.800000012, 0.800000012, 1.01999998)
  251. Model19.Name = "Lock"
  252. Model19.Parent = Model3
  253. Part20.Name = "Bar"
  254. Part20.Parent = Model19
  255. Part20.BrickColor = BrickColor.new("Reddish brown")
  256. Part20.Rotation = Vector3.new(180, 0, 0)
  257. Part20.Anchored = true
  258. Part20.FormFactor = Enum.FormFactor.Plate
  259. Part20.Size = Vector3.new(3, 3.20000005, 1)
  260. Part20.CFrame = CFrame.new(-67.4502563, 15.899725, -72.5037842, 1, -1.55729288e-06, 1.85593748e-07, -1.55729288e-06, -1, -2.84217094e-14, 1.85593748e-07, -2.7000624e-13, -1)
  261. Part20.BottomSurface = Enum.SurfaceType.Smooth
  262. Part20.TopSurface = Enum.SurfaceType.Smooth
  263. Part20.Color = Color3.new(0.411765, 0.25098, 0.156863)
  264. Part20.Position = Vector3.new(-67.4502563, 15.899725, -72.5037842)
  265. Part20.Orientation = Vector3.new(0, 180, -180)
  266. Part20.Color = Color3.new(0.411765, 0.25098, 0.156863)
  267. BlockMesh21.Parent = Part20
  268. Part22.Name = "Button"
  269. Part22.Parent = Model19
  270. Part22.BrickColor = BrickColor.new("White")
  271. Part22.Rotation = Vector3.new(-90, 0, 0)
  272. Part22.Anchored = true
  273. Part22.FormFactor = Enum.FormFactor.Plate
  274. Part22.Size = Vector3.new(2, 1.20000005, 2)
  275. Part22.CFrame = CFrame.new(-69.4502411, 15.4996853, -72.2999878, 1, 1.19209261e-07, 1.50995817e-07, -1.50995803e-07, -1.94707212e-07, 1, 1.1920929e-07, -1, -1.94707184e-07)
  276. Part22.BottomSurface = Enum.SurfaceType.Smooth
  277. Part22.TopSurface = Enum.SurfaceType.Smooth
  278. Part22.Color = Color3.new(0.94902, 0.952941, 0.952941)
  279. Part22.Position = Vector3.new(-69.4502411, 15.4996853, -72.2999878)
  280. Part22.Orientation = Vector3.new(-90, 0, 0)
  281. Part22.Color = Color3.new(0.94902, 0.952941, 0.952941)
  282. ClickDetector23.Name = "Click"
  283. ClickDetector23.Parent = Part22
  284. BlockMesh24.Parent = Part22
  285. BlockMesh24.Scale = Vector3.new(0.75, 0.550000012, 0.75)
  286. BlockMesh24.Scale = Vector3.new(0.75, 0.550000012, 0.75)
  287. Decal25.Parent = Part22
  288. Decal25.Texture = "http://www.roblox.com/asset/?id=11344402"
  289. Decal25.Face = Enum.NormalId.Bottom
  290. Script26.Name = "Main"
  291. Script26.Parent = Model19
  292. table.insert(cors,sandbox(Script26,function()
  293. local _items = {}
  294.  
  295. local door = -1
  296. -- -1 = Unlocked
  297. -- 0 = Active
  298. -- 1 = Locked
  299.  
  300. function getItems()
  301. for _,v in pairs(script.Parent:GetChildren()) do
  302. if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
  303. table.insert(_items,v)
  304. end
  305. end
  306. end
  307.  
  308. function main()
  309. local d = door
  310. door = 0
  311. script.Parent.Button.Decal.Texture="http://www.roblox.com/asset/?id=41444153"
  312. script.Parent.Button.BrickColor = BrickColor.new("White")
  313. for i = 0,5,0.05 do
  314. for _,v in pairs(_items) do
  315. v.CFrame = v.CFrame * CFrame.new(0,0,(-0.002*(-d)))
  316. end
  317. wait()
  318. end
  319. if (d == (-1)) then
  320. script.Parent.Button.BrickColor = BrickColor.new("White")
  321. script.Parent.Button.Decal.Texture="http://www.roblox.com/asset/?id=11344402"
  322. elseif (d == 1) then
  323. script.Parent.Button.BrickColor = BrickColor.new("White")
  324. script.Parent.Button.Decal.Texture="http://www.roblox.com/asset/?id=7186733"
  325. end
  326. door = d
  327. end
  328.  
  329. script.Parent.Button.Click.MouseClick:connect(function()
  330. if (door == 0) then return end
  331. door = (door*(-1))
  332. main()
  333. end)
  334.  
  335. getItems()
  336. end))
  337. Part27.Parent = Model3
  338. Part27.BrickColor = BrickColor.new("Reddish brown")
  339. Part27.Anchored = true
  340. Part27.FormFactor = Enum.FormFactor.Symmetric
  341. Part27.Size = Vector3.new(9, 10, 1)
  342. Part27.CFrame = CFrame.new(-70.4502563, 15.9996986, -72.5, 1, 1.50995817e-07, -1.19209268e-07, -1.50995803e-07, 1, 1.50995817e-07, 1.1920929e-07, -1.50995803e-07, 1)
  343. Part27.BottomSurface = Enum.SurfaceType.Smooth
  344. Part27.TopSurface = Enum.SurfaceType.Smooth
  345. Part27.Color = Color3.new(0.411765, 0.25098, 0.156863)
  346. Part27.Position = Vector3.new(-70.4502563, 15.9996986, -72.5)
  347. Part27.Color = Color3.new(0.411765, 0.25098, 0.156863)
  348. BlockMesh28.Parent = Part27
  349. BlockMesh28.Scale = Vector3.new(1, 1, 1.00999999)
  350. BlockMesh28.Scale = Vector3.new(1, 1, 1.00999999)
  351. Part29.Parent = Model3
  352. Part29.BrickColor = BrickColor.new("Reddish brown")
  353. Part29.Anchored = true
  354. Part29.FormFactor = Enum.FormFactor.Custom
  355. Part29.Size = Vector3.new(9, 0.200000003, 1)
  356. Part29.CFrame = CFrame.new(-61.5502472, 20.9000912, -72.5, 1, 1.50995817e-07, -1.19209268e-07, -1.50995803e-07, 1, 1.50995817e-07, 1.1920929e-07, -1.50995803e-07, 1)
  357. Part29.BottomSurface = Enum.SurfaceType.Smooth
  358. Part29.TopSurface = Enum.SurfaceType.Smooth
  359. Part29.Color = Color3.new(0.411765, 0.25098, 0.156863)
  360. Part29.Position = Vector3.new(-61.5502472, 20.9000912, -72.5)
  361. Part29.Color = Color3.new(0.411765, 0.25098, 0.156863)
  362. BlockMesh30.Parent = Part29
  363. BlockMesh30.Scale = Vector3.new(1, 1, 1.00999999)
  364. BlockMesh30.Scale = Vector3.new(1, 1, 1.00999999)
  365. Part31.Parent = Model3
  366. Part31.BrickColor = BrickColor.new("Reddish brown")
  367. Part31.Anchored = true
  368. Part31.FormFactor = Enum.FormFactor.Symmetric
  369. Part31.Size = Vector3.new(1, 10, 1)
  370. Part31.CFrame = CFrame.new(-56.4502563, 15.9996986, -72.5, 1, 1.50995817e-07, -1.19209268e-07, -1.50995803e-07, 1, 1.50995817e-07, 1.1920929e-07, -1.50995803e-07, 1)
  371. Part31.BottomSurface = Enum.SurfaceType.Smooth
  372. Part31.TopSurface = Enum.SurfaceType.Smooth
  373. Part31.Color = Color3.new(0.411765, 0.25098, 0.156863)
  374. Part31.Position = Vector3.new(-56.4502563, 15.9996986, -72.5)
  375. Part31.Color = Color3.new(0.411765, 0.25098, 0.156863)
  376. BlockMesh32.Parent = Part31
  377. BlockMesh32.Scale = Vector3.new(1, 1, 1.00999999)
  378. BlockMesh32.Scale = Vector3.new(1, 1, 1.00999999)
  379. Part33.Parent = Model3
  380. Part33.BrickColor = BrickColor.new("Reddish brown")
  381. Part33.Anchored = true
  382. Part33.FormFactor = Enum.FormFactor.Symmetric
  383. Part33.Size = Vector3.new(1, 10, 1)
  384. Part33.CFrame = CFrame.new(-56.6502419, 15.9996071, -72.5, 1, 1.43537179e-07, -2.04890938e-07, -1.4353715e-07, 1, 1.50709937e-07, 2.04890966e-07, -1.50709909e-07, 1)
  385. Part33.BottomSurface = Enum.SurfaceType.Smooth
  386. Part33.TopSurface = Enum.SurfaceType.Smooth
  387. Part33.Color = Color3.new(0.411765, 0.25098, 0.156863)
  388. Part33.Position = Vector3.new(-56.6502419, 15.9996071, -72.5)
  389. Part33.Color = Color3.new(0.411765, 0.25098, 0.156863)
  390. BlockMesh34.Parent = Part33
  391. BlockMesh34.Scale = Vector3.new(1, 1, 1.00999999)
  392. BlockMesh34.Scale = Vector3.new(1, 1, 1.00999999)
  393. Script35.Name = "Main"
  394. Script35.Parent = Model3
  395. table.insert(cors,sandbox(Script35,function()
  396. local _items = {}
  397.  
  398. local door = -1
  399. -- -1 = Closed
  400. -- 0 = Active
  401. -- 1 = Open
  402.  
  403. function getItems()
  404. for _,v in pairs(script.Parent:GetChildren()) do
  405. if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
  406. table.insert(_items,v)
  407. end
  408. end
  409. end
  410.  
  411. function main()
  412. local d = door
  413. door = 0
  414. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  415. for i = 0,5,0.05 do
  416. for _,v in pairs(_items) do
  417. v.CFrame = v.CFrame * CFrame.new(0,0,(0.075*(-d)))
  418. end
  419. wait()
  420. end
  421. if (d == (-1)) then
  422. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  423. elseif (d == 1) then
  424. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  425. end
  426. door = d
  427. end
  428.  
  429. script.Parent.Button.Click.MouseClick:connect(function()
  430. if (door == 0) then return end
  431. door = (door*(-1))
  432. main()
  433. end)
  434.  
  435. getItems()
  436. end))
  437. Script36.Name = "Main1"
  438. Script36.Parent = Model3
  439. table.insert(cors,sandbox(Script36,function()
  440. local _items = {}
  441.  
  442. local door = -1
  443. -- -1 = Closed
  444. -- 0 = Active
  445. -- 1 = Open
  446.  
  447. function getItems()
  448. for _,v in pairs(script.Parent:GetChildren()) do
  449. if ((v:IsA("BasePart")) and (v.Name == "Bar1")) then
  450. table.insert(_items,v)
  451. end
  452. end
  453. end
  454.  
  455. function main()
  456. local d = door
  457. door = 0
  458. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  459. for i = 0,5,0.05 do
  460. for _,v in pairs(_items) do
  461. v.CFrame = v.CFrame * CFrame.new(0,0,(-0.075*(-d)))
  462. end
  463. wait()
  464. end
  465. if (d == (-1)) then
  466. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  467. elseif (d == 1) then
  468. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  469. end
  470. door = d
  471. end
  472.  
  473. script.Parent.Button.Click.MouseClick:connect(function()
  474. if (door == 0) then return end
  475. door = (door*(-1))
  476. main()
  477. end)
  478.  
  479. getItems()
  480. end))
  481. Script37.Name = "Main2"
  482. Script37.Parent = Model3
  483. table.insert(cors,sandbox(Script37,function()
  484. local _items = {}
  485.  
  486. local door = -1
  487. -- -1 = Closed
  488. -- 0 = Active
  489. -- 1 = Open
  490.  
  491. function getItems()
  492. for _,v in pairs(script.Parent:GetChildren()) do
  493. if ((v:IsA("BasePart")) and (v.Name == "Bar2")) then
  494. table.insert(_items,v)
  495. end
  496. end
  497. end
  498.  
  499. function main()
  500. local d = door
  501. door = 0
  502. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  503. for i = 0,5,0.05 do
  504. for _,v in pairs(_items) do
  505. v.CFrame = v.CFrame * CFrame.new(0,(0.075*(-d)),0)
  506. end
  507. wait()
  508. end
  509. if (d == (-1)) then
  510. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  511. elseif (d == 1) then
  512. script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
  513. end
  514. door = d
  515. end
  516.  
  517. script.Parent.Button.Click.MouseClick:connect(function()
  518. if (door == 0) then return end
  519. door = (door*(-1))
  520. main()
  521. end)
  522.  
  523. getItems()
  524. end))
  525. Model38.Name = "window"
  526. Model38.Parent = Model2
  527. Part39.Name = "Button"
  528. Part39.Parent = Model38
  529. Part39.BrickColor = BrickColor.new("White")
  530. Part39.Rotation = Vector3.new(-180, 90, 0)
  531. Part39.Anchored = true
  532. Part39.FormFactor = Enum.FormFactor.Plate
  533. Part39.Size = Vector3.new(1, 1.20000005, 1)
  534. Part39.CFrame = CFrame.new(-74.3502502, 17.3998489, -55.5, -1.62921467e-07, -1.50995177e-07, 1, -5.24520874e-06, -1, -1.50996044e-07, 1, -5.24520874e-06, 1.62920685e-07)
  535. Part39.BottomSurface = Enum.SurfaceType.Smooth
  536. Part39.TopSurface = Enum.SurfaceType.Smooth
  537. Part39.Color = Color3.new(0.94902, 0.952941, 0.952941)
  538. Part39.Position = Vector3.new(-74.3502502, 17.3998489, -55.5)
  539. Part39.Orientation = Vector3.new(0, 90, -180)
  540. Part39.Color = Color3.new(0.94902, 0.952941, 0.952941)
  541. ClickDetector40.Name = "Click"
  542. ClickDetector40.Parent = Part39
  543. BlockMesh41.Parent = Part39
  544. Decal42.Parent = Part39
  545. Decal42.Texture = "http://www.roblox.com/asset/?id=38186614"
  546. Decal42.Face = Enum.NormalId.Back
  547. Part43.Name = "Part1"
  548. Part43.Parent = Model38
  549. Part43.BrickColor = BrickColor.new("Reddish brown")
  550. Part43.Rotation = Vector3.new(180, 0, -180)
  551. Part43.Anchored = true
  552. Part43.FormFactor = Enum.FormFactor.Symmetric
  553. Part43.Size = Vector3.new(19, 3, 20)
  554. Part43.CFrame = CFrame.new(-65.4502563, 9.49967766, -63, -1, 1.50995803e-07, 1.19209268e-07, 1.50995788e-07, 1, -1.50995803e-07, -1.1920929e-07, -1.50995788e-07, -1)
  555. Part43.BottomSurface = Enum.SurfaceType.Smooth
  556. Part43.TopSurface = Enum.SurfaceType.Smooth
  557. Part43.Color = Color3.new(0.411765, 0.25098, 0.156863)
  558. Part43.Position = Vector3.new(-65.4502563, 9.49967766, -63)
  559. Part43.Orientation = Vector3.new(0, 180, 0)
  560. Part43.Color = Color3.new(0.411765, 0.25098, 0.156863)
  561. BlockMesh44.Parent = Part43
  562. Part45.Name = "Bar"
  563. Part45.Parent = Model38
  564. Part45.BrickColor = BrickColor.new("Reddish brown")
  565. Part45.Rotation = Vector3.new(0, 90, 0)
  566. Part45.Anchored = true
  567. Part45.FormFactor = Enum.FormFactor.Symmetric
  568. Part45.Size = Vector3.new(18, 10, 1)
  569. Part45.CFrame = CFrame.new(-56.4502563, 16.0000534, -63, 1.19209268e-07, 1.50995817e-07, 1, -1.50995817e-07, 1, -1.50995803e-07, -1, -1.50995803e-07, 1.1920929e-07)
  570. Part45.BottomSurface = Enum.SurfaceType.Smooth
  571. Part45.TopSurface = Enum.SurfaceType.Smooth
  572. Part45.Color = Color3.new(0.411765, 0.25098, 0.156863)
  573. Part45.Position = Vector3.new(-56.4502563, 16.0000534, -63)
  574. Part45.Orientation = Vector3.new(0, 90, 0)
  575. Part45.Color = Color3.new(0.411765, 0.25098, 0.156863)
  576. BlockMesh46.Parent = Part45
  577. BlockMesh46.Scale = Vector3.new(1.00999999, 1, 1.00999999)
  578. BlockMesh46.Scale = Vector3.new(1.00999999, 1, 1.00999999)
  579. Part47.Name = "Bar"
  580. Part47.Parent = Model38
  581. Part47.BrickColor = BrickColor.new("Reddish brown")
  582. Part47.Anchored = true
  583. Part47.FormFactor = Enum.FormFactor.Symmetric
  584. Part47.Size = Vector3.new(18, 10, 1)
  585. Part47.CFrame = CFrame.new(-64.9502563, 16.0000534, -53.5, 1, 1.50995817e-07, -1.19209268e-07, -1.50995803e-07, 1, 1.50995817e-07, 1.1920929e-07, -1.50995803e-07, 1)
  586. Part47.BottomSurface = Enum.SurfaceType.Smooth
  587. Part47.TopSurface = Enum.SurfaceType.Smooth
  588. Part47.Color = Color3.new(0.411765, 0.25098, 0.156863)
  589. Part47.Position = Vector3.new(-64.9502563, 16.0000534, -53.5)
  590. Part47.Color = Color3.new(0.411765, 0.25098, 0.156863)
  591. BlockMesh48.Parent = Part47
  592. BlockMesh48.Scale = Vector3.new(1.00999999, 1, 1.00999999)
  593. BlockMesh48.Scale = Vector3.new(1.00999999, 1, 1.00999999)
  594. Part49.Name = "Part1"
  595. Part49.Parent = Model38
  596. Part49.BrickColor = BrickColor.new("Reddish brown")
  597. Part49.Rotation = Vector3.new(0, 90, 0)
  598. Part49.Anchored = true
  599. Part49.FormFactor = Enum.FormFactor.Symmetric
  600. Part49.Size = Vector3.new(20, 9, 19)
  601. Part49.CFrame = CFrame.new(-65.4502563, 25.4998779, -63, 1.19209268e-07, 1.50995817e-07, 1, -1.50995817e-07, 1, -1.50995803e-07, -1, -1.50995803e-07, 1.1920929e-07)
  602. Part49.BottomSurface = Enum.SurfaceType.Smooth
  603. Part49.TopSurface = Enum.SurfaceType.Smooth
  604. Part49.Color = Color3.new(0.411765, 0.25098, 0.156863)
  605. Part49.Position = Vector3.new(-65.4502563, 25.4998779, -63)
  606. Part49.Orientation = Vector3.new(0, 90, 0)
  607. Part49.Color = Color3.new(0.411765, 0.25098, 0.156863)
  608. BlockMesh50.Parent = Part49
  609. Part51.Name = "Part1"
  610. Part51.Parent = Model38
  611. Part51.BrickColor = BrickColor.new("Institutional white")
  612. Part51.Reflectance = 0.10000000149012
  613. Part51.Transparency = 0.40000000596046
  614. Part51.Rotation = Vector3.new(180, 0, -180)
  615. Part51.Anchored = true
  616. Part51.FormFactor = Enum.FormFactor.Custom
  617. Part51.Size = Vector3.new(17, 6.5, 1)
  618. Part51.CFrame = CFrame.new(-65.4502563, 17.6348133, -53.5, -1, 1.50995817e-07, 1.19209268e-07, 1.50995803e-07, 1, -1.50995817e-07, -1.1920929e-07, -1.50995803e-07, -1)
  619. Part51.BottomSurface = Enum.SurfaceType.Smooth
  620. Part51.TopSurface = Enum.SurfaceType.Smooth
  621. Part51.Color = Color3.new(0.972549, 0.972549, 0.972549)
  622. Part51.Position = Vector3.new(-65.4502563, 17.6348133, -53.5)
  623. Part51.Orientation = Vector3.new(0, 180, 0)
  624. Part51.Color = Color3.new(0.972549, 0.972549, 0.972549)
  625. BlockMesh52.Parent = Part51
  626. BlockMesh52.Offset = Vector3.new(-0.150000006, 0, -0.49000001)
  627. BlockMesh52.Scale = Vector3.new(1.10000002, 1.10000002, 0)
  628. BlockMesh52.Scale = Vector3.new(1.10000002, 1.10000002, 0)
  629. Decal53.Parent = Part51
  630. Decal53.Texture = "http://www.roblox.com/asset/?id=28557449"
  631. Part54.Name = "Part1"
  632. Part54.Parent = Model38
  633. Part54.BrickColor = BrickColor.new("Institutional white")
  634. Part54.Reflectance = 0.10000000149012
  635. Part54.Transparency = 0.40000000596046
  636. Part54.Rotation = Vector3.new(0, 90, 0)
  637. Part54.Anchored = true
  638. Part54.FormFactor = Enum.FormFactor.Custom
  639. Part54.Size = Vector3.new(19, 6.5, 1)
  640. Part54.CFrame = CFrame.new(-56.4502563, 17.6348133, -62.5, 1.19209268e-07, 1.50995817e-07, 1, -1.50995817e-07, 1, -1.50995803e-07, -1, -1.50995803e-07, 1.1920929e-07)
  641. Part54.BottomSurface = Enum.SurfaceType.Smooth
  642. Part54.TopSurface = Enum.SurfaceType.Smooth
  643. Part54.Color = Color3.new(0.972549, 0.972549, 0.972549)
  644. Part54.Position = Vector3.new(-56.4502563, 17.6348133, -62.5)
  645. Part54.Orientation = Vector3.new(0, 90, 0)
  646. Part54.Color = Color3.new(0.972549, 0.972549, 0.972549)
  647. BlockMesh55.Parent = Part54
  648. BlockMesh55.Offset = Vector3.new(0.200000003, 0, 0.49000001)
  649. BlockMesh55.Scale = Vector3.new(1.02499998, 1.10000002, 0)
  650. BlockMesh55.Scale = Vector3.new(1.02499998, 1.10000002, 0)
  651. Decal56.Parent = Part54
  652. Decal56.Texture = "http://www.roblox.com/asset/?id=28557449"
  653. Decal56.Face = Enum.NormalId.Back
  654. Part57.Parent = Model38
  655. Part57.BrickColor = BrickColor.new("Reddish brown")
  656. Part57.Rotation = Vector3.new(0, -90, 0)
  657. Part57.Anchored = true
  658. Part57.FormFactor = Enum.FormFactor.Symmetric
  659. Part57.Size = Vector3.new(19, 10, 1)
  660. Part57.CFrame = CFrame.new(-74.4502563, 15.9996986, -62.5, -1.19209268e-07, 1.50995817e-07, -1, 1.50995817e-07, 1, 1.50995803e-07, 1, -1.50995803e-07, -1.1920929e-07)
  661. Part57.BottomSurface = Enum.SurfaceType.Smooth
  662. Part57.TopSurface = Enum.SurfaceType.Smooth
  663. Part57.Color = Color3.new(0.411765, 0.25098, 0.156863)
  664. Part57.Position = Vector3.new(-74.4502563, 15.9996986, -62.5)
  665. Part57.Orientation = Vector3.new(0, -90, 0)
  666. Part57.Color = Color3.new(0.411765, 0.25098, 0.156863)
  667. BlockMesh58.Parent = Part57
  668. BlockMesh58.Scale = Vector3.new(1, 1, 1.00999999)
  669. BlockMesh58.Scale = Vector3.new(1, 1, 1.00999999)
  670. Part59.Parent = Model38
  671. Part59.Anchored = true
  672. Part59.FormFactor = Enum.FormFactor.Symmetric
  673. Part59.Size = Vector3.new(2, 2, 1)
  674. Part59.CFrame = CFrame.new(-69.4502411, 15.4996853, -72.3999939, 1, 1.50995817e-07, -1.19209268e-07, -1.50995803e-07, 1, 1.50995817e-07, 1.1920929e-07, -1.50995803e-07, 1)
  675. Part59.BottomSurface = Enum.SurfaceType.Smooth
  676. Part59.TopSurface = Enum.SurfaceType.Smooth
  677. Part59.Position = Vector3.new(-69.4502411, 15.4996853, -72.3999939)
  678. BlockMesh60.Parent = Part59
  679. BlockMesh60.Scale = Vector3.new(0.899999976, 0.899999976, 0.850000024)
  680. BlockMesh60.Scale = Vector3.new(0.899999976, 0.899999976, 0.850000024)
  681. Part61.Parent = Model38
  682. Part61.BrickColor = BrickColor.new("Institutional white")
  683. Part61.Rotation = Vector3.new(0, 90, 0)
  684. Part61.Anchored = true
  685. Part61.FormFactor = Enum.FormFactor.Symmetric
  686. Part61.Size = Vector3.new(20, 1, 19)
  687. Part61.CFrame = CFrame.new(-65.4502563, 30.4998856, -63, 1.19209268e-07, 1.50995817e-07, 1, -1.50995817e-07, 1, -1.50995803e-07, -1, -1.50995803e-07, 1.1920929e-07)
  688. Part61.BottomSurface = Enum.SurfaceType.Smooth
  689. Part61.TopSurface = Enum.SurfaceType.Smooth
  690. Part61.Color = Color3.new(0.972549, 0.972549, 0.972549)
  691. Part61.Position = Vector3.new(-65.4502563, 30.4998856, -63)
  692. Part61.Orientation = Vector3.new(0, 90, 0)
  693. Part61.Color = Color3.new(0.972549, 0.972549, 0.972549)
  694. BlockMesh62.Parent = Part61
  695. Part63.Name = "Button1"
  696. Part63.Parent = Model38
  697. Part63.BrickColor = BrickColor.new("Bright blue")
  698. Part63.Rotation = Vector3.new(-90, 0, 180)
  699. Part63.Anchored = true
  700. Part63.FormFactor = Enum.FormFactor.Plate
  701. Part63.Size = Vector3.new(2, 1.20000005, 2)
  702. Part63.CFrame = CFrame.new(-71.7502518, 15.4997063, -72.3999939, -1, -2.70205078e-07, 1.08455353e-07, 1.08455296e-07, 1.94707226e-07, 1, -2.70205078e-07, 1, -1.94707198e-07)
  703. Part63.BottomSurface = Enum.SurfaceType.Smooth
  704. Part63.TopSurface = Enum.SurfaceType.Smooth
  705. Part63.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  706. Part63.Position = Vector3.new(-71.7502518, 15.4997063, -72.3999939)
  707. Part63.Orientation = Vector3.new(-90, 180, 0)
  708. Part63.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  709. ClickDetector64.Name = "Click"
  710. ClickDetector64.Parent = Part63
  711. BlockMesh65.Parent = Part63
  712. BlockMesh65.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  713. BlockMesh65.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  714. Decal66.Parent = Part63
  715. Decal66.Texture = "http://www.roblox.com/asset/?id=30473646"
  716. Decal66.Face = Enum.NormalId.Top
  717. Script67.Name = "MainP1"
  718. Script67.Parent = Model38
  719. table.insert(cors,sandbox(Script67,function()
  720. local _items = {}
  721.  
  722. local door = -1
  723. -- -1 = Closed
  724. -- 0 = Active
  725. -- 1 = Open
  726.  
  727. function getItems()
  728. for _,v in pairs(script.Parent:GetChildren()) do
  729. if ((v:IsA("BasePart")) and (v.Name == "Part1")) then
  730. table.insert(_items,v)
  731. end
  732. end
  733. end
  734.  
  735. function main()
  736. local d = door
  737. door = 0
  738. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  739. for i = 0,5,0.05 do
  740. for _,v in pairs(_items) do
  741. v.CFrame = v.CFrame * CFrame.new(0,(0.208*(-d)),0)
  742. end
  743. wait()
  744. end
  745. if (d == (-1)) then
  746. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  747. elseif (d == 1) then
  748. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  749. end
  750. door = d
  751. end
  752.  
  753. script.Parent.Button1.Click.MouseClick:connect(function()
  754. if (door == 0) then return end
  755. door = (door*(-1))
  756. main()
  757. end)
  758.  
  759. getItems()
  760. end))
  761. Script68.Name = "MainB"
  762. Script68.Parent = Model38
  763. table.insert(cors,sandbox(Script68,function()
  764. local _items = {}
  765.  
  766. local door = -1
  767. -- -1 = Closed
  768. -- 0 = Active
  769. -- 1 = Open
  770.  
  771. function getItems()
  772. for _,v in pairs(script.Parent:GetChildren()) do
  773. if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
  774. table.insert(_items,v)
  775. end
  776. end
  777. end
  778.  
  779. function main()
  780. local d = door
  781. door = 0
  782. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  783. for i = 0,5,0.05 do
  784. for _,v in pairs(_items) do
  785. v.CFrame = v.CFrame * CFrame.new(0,(0.208*(-d)),0)
  786. end
  787. wait()
  788. end
  789. if (d == (-1)) then
  790. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  791. elseif (d == 1) then
  792. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  793. end
  794. door = d
  795. end
  796.  
  797. script.Parent.Button1.Click.MouseClick:connect(function()
  798. if (door == 0) then return end
  799. door = (door*(-1))
  800. main()
  801. end)
  802.  
  803. getItems()
  804. end))
  805. Script69.Name = "MainP"
  806. Script69.Parent = Model38
  807. table.insert(cors,sandbox(Script69,function()
  808. local _items = {}
  809.  
  810. local door = -1
  811. -- -1 = Closed
  812. -- 0 = Active
  813. -- 1 = Open
  814.  
  815. function getItems()
  816. for _,v in pairs(script.Parent:GetChildren()) do
  817. if ((v:IsA("BasePart")) and (v.Name == "Part")) then
  818. table.insert(_items,v)
  819. end
  820. end
  821. end
  822.  
  823. function main()
  824. local d = door
  825. door = 0
  826. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  827. for i = 0,5,0.05 do
  828. for _,v in pairs(_items) do
  829. v.CFrame = v.CFrame * CFrame.new(0,(0.208*(-d)),0)
  830. end
  831. wait()
  832. end
  833. if (d == (-1)) then
  834. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  835. elseif (d == 1) then
  836. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  837. end
  838. door = d
  839. end
  840.  
  841. script.Parent.Button1.Click.MouseClick:connect(function()
  842. if (door == 0) then return end
  843. door = (door*(-1))
  844. main()
  845. end)
  846.  
  847. getItems()
  848. end))
  849. Script70.Name = "MainP3"
  850. Script70.Parent = Model38
  851. table.insert(cors,sandbox(Script70,function()
  852. local _items = {}
  853.  
  854. local door = -1
  855. -- -1 = Closed
  856. -- 0 = Active
  857. -- 1 = Open
  858.  
  859. function getItems()
  860. for _,v in pairs(script.Parent:GetChildren()) do
  861. if ((v:IsA("BasePart")) and (v.Name == "Part3")) then
  862. table.insert(_items,v)
  863. end
  864. end
  865. end
  866.  
  867. function main()
  868. local d = door
  869. door = 0
  870. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  871. for i = 0,5,0.05 do
  872. for _,v in pairs(_items) do
  873. v.CFrame = v.CFrame * CFrame.new(0,(0.208*(-d)),0)
  874. end
  875. wait()
  876. end
  877. if (d == (-1)) then
  878. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  879. elseif (d == 1) then
  880. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  881. end
  882. door = d
  883. end
  884.  
  885. script.Parent.Button1.Click.MouseClick:connect(function()
  886. if (door == 0) then return end
  887. door = (door*(-1))
  888. main()
  889. end)
  890.  
  891. getItems()
  892. end))
  893. Script71.Name = "Main"
  894. Script71.Parent = Model38
  895. table.insert(cors,sandbox(Script71,function()
  896. local _items = {}
  897.  
  898. local door = -1
  899. -- -1 = Closed
  900. -- 0 = Active
  901. -- 1 = Open
  902.  
  903. function getItems()
  904. for _,v in pairs(script.Parent:GetChildren()) do
  905. if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
  906. table.insert(_items,v)
  907. end
  908. end
  909. end
  910.  
  911. function main()
  912. local d = door
  913. door = 0
  914. script.Parent.Button.BrickColor = BrickColor.new("White")
  915. for i = 0,5,0.05 do
  916. for _,v in pairs(_items) do
  917. v.CFrame = v.CFrame * CFrame.new(0,(0.065*(-d)),0)
  918. end
  919. wait()
  920. end
  921. if (d == (-1)) then
  922. script.Parent.Button.BrickColor = BrickColor.new("White")
  923. script.Parent.Button.Decal.Texture="http://www.roblox.com/asset/?id=38186614"
  924. elseif (d == 1) then
  925. script.Parent.Button.BrickColor = BrickColor.new("White")
  926. script.Parent.Button.Decal.Texture="http://www.roblox.com/asset/?id=38186580"
  927. end
  928. door = d
  929. end
  930.  
  931. script.Parent.Button.Click.MouseClick:connect(function()
  932. if (door == 0) then return end
  933. door = (door*(-1))
  934. main()
  935. end)
  936.  
  937. getItems()
  938. end))
  939. Script72.Name = "MainButton"
  940. Script72.Parent = Model38
  941. table.insert(cors,sandbox(Script72,function()
  942. local _items = {}
  943.  
  944. local door = -1
  945. -- -1 = Closed
  946. -- 0 = Active
  947. -- 1 = Open
  948.  
  949. function getItems()
  950. for _,v in pairs(script.Parent:GetChildren()) do
  951. if ((v:IsA("BasePart")) and (v.Name == "Button")) then
  952. table.insert(_items,v)
  953. end
  954. end
  955. end
  956.  
  957. function main()
  958. local d = door
  959. door = 0
  960. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  961. for i = 0,5,0.05 do
  962. for _,v in pairs(_items) do
  963. v.CFrame = v.CFrame * CFrame.new(0,(-0.208*(-d)),0)
  964. end
  965. wait()
  966. end
  967. if (d == (-1)) then
  968. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  969. elseif (d == 1) then
  970. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  971. end
  972. door = d
  973. end
  974.  
  975. script.Parent.Button1.Click.MouseClick:connect(function()
  976. if (door == 0) then return end
  977. door = (door*(-1))
  978. main()
  979. end)
  980.  
  981. getItems()
  982. end))
  983. Script73.Name = "MainB(2)"
  984. Script73.Parent = Model38
  985. table.insert(cors,sandbox(Script73,function()
  986. local _items = {}
  987.  
  988. local door = -1
  989. -- -1 = Closed
  990. -- 0 = Active
  991. -- 1 = Open
  992.  
  993. function getItems()
  994. for _,v in pairs(script.Parent.Parent.FrontDoor:GetChildren()) do
  995. if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
  996. table.insert(_items,v)
  997. end
  998. end
  999. end
  1000.  
  1001. function main()
  1002. local d = door
  1003. door = 0
  1004. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1005. for i = 0,5,0.05 do
  1006. for _,v in pairs(_items) do
  1007. v.CFrame = v.CFrame * CFrame.new(0,(0.208*(-d)),0)
  1008. end
  1009. wait()
  1010. end
  1011. if (d == (-1)) then
  1012. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1013. elseif (d == 1) then
  1014. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1015. end
  1016. door = d
  1017. end
  1018.  
  1019. script.Parent.Button1.Click.MouseClick:connect(function()
  1020. if (door == 0) then return end
  1021. door = (door*(-1))
  1022. main()
  1023. end)
  1024.  
  1025. getItems()
  1026. end))
  1027. Script74.Name = "MainB2(3)"
  1028. Script74.Parent = Model38
  1029. table.insert(cors,sandbox(Script74,function()
  1030. local _items = {}
  1031.  
  1032. local door = -1
  1033. -- -1 = Closed
  1034. -- 0 = Active
  1035. -- 1 = Open
  1036.  
  1037. function getItems()
  1038. for _,v in pairs(script.Parent.Parent.FrontDoor:GetChildren()) do
  1039. if ((v:IsA("BasePart")) and (v.Name == "Bar2")) then
  1040. table.insert(_items,v)
  1041. end
  1042. end
  1043. end
  1044.  
  1045. function main()
  1046. local d = door
  1047. door = 0
  1048. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1049. for i = 0,5,0.05 do
  1050. for _,v in pairs(_items) do
  1051. v.CFrame = v.CFrame * CFrame.new(0,0,(-0.208*(-d)))
  1052. end
  1053. wait()
  1054. end
  1055. if (d == (-1)) then
  1056. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1057. elseif (d == 1) then
  1058. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1059. end
  1060. door = d
  1061. end
  1062.  
  1063. script.Parent.Button1.Click.MouseClick:connect(function()
  1064. if (door == 0) then return end
  1065. door = (door*(-1))
  1066. main()
  1067. end)
  1068.  
  1069. getItems()
  1070. end))
  1071. Script75.Name = "MainB1(2)"
  1072. Script75.Parent = Model38
  1073. table.insert(cors,sandbox(Script75,function()
  1074. local _items = {}
  1075.  
  1076. local door = -1
  1077. -- -1 = Closed
  1078. -- 0 = Active
  1079. -- 1 = Open
  1080.  
  1081. function getItems()
  1082. for _,v in pairs(script.Parent.Parent.FrontDoor:GetChildren()) do
  1083. if ((v:IsA("BasePart")) and (v.Name == "Bar1")) then
  1084. table.insert(_items,v)
  1085. end
  1086. end
  1087. end
  1088.  
  1089. function main()
  1090. local d = door
  1091. door = 0
  1092. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1093. for i = 0,5,0.05 do
  1094. for _,v in pairs(_items) do
  1095. v.CFrame = v.CFrame * CFrame.new(0,(0.208*(-d)),0)
  1096. end
  1097. wait()
  1098. end
  1099. if (d == (-1)) then
  1100. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1101. elseif (d == 1) then
  1102. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1103. end
  1104. door = d
  1105. end
  1106.  
  1107. script.Parent.Button1.Click.MouseClick:connect(function()
  1108. if (door == 0) then return end
  1109. door = (door*(-1))
  1110. main()
  1111. end)
  1112.  
  1113. getItems()
  1114. end))
  1115. Script76.Name = "MainButton(2)"
  1116. Script76.Parent = Model38
  1117. table.insert(cors,sandbox(Script76,function()
  1118. local _items = {}
  1119.  
  1120. local door = -1
  1121. -- -1 = Closed
  1122. -- 0 = Active
  1123. -- 1 = Open
  1124.  
  1125. function getItems()
  1126. for _,v in pairs(script.Parent.Parent.FrontDoor:GetChildren()) do
  1127. if ((v:IsA("BasePart")) and (v.Name == "Button")) then
  1128. table.insert(_items,v)
  1129. end
  1130. end
  1131. end
  1132.  
  1133. function main()
  1134. local d = door
  1135. door = 0
  1136. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1137. for i = 0,5,0.05 do
  1138. for _,v in pairs(_items) do
  1139. v.CFrame = v.CFrame * CFrame.new(0,0,(-0.208*(-d)))
  1140. end
  1141. wait()
  1142. end
  1143. if (d == (-1)) then
  1144. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1145. elseif (d == 1) then
  1146. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1147. end
  1148. door = d
  1149. end
  1150.  
  1151. script.Parent.Button1.Click.MouseClick:connect(function()
  1152. if (door == 0) then return end
  1153. door = (door*(-1))
  1154. main()
  1155. end)
  1156.  
  1157. getItems()
  1158. end))
  1159. Script77.Name = "MainP(2)"
  1160. Script77.Parent = Model38
  1161. table.insert(cors,sandbox(Script77,function()
  1162. local _items = {}
  1163.  
  1164. local door = -1
  1165. -- -1 = Closed
  1166. -- 0 = Active
  1167. -- 1 = Open
  1168.  
  1169. function getItems()
  1170. for _,v in pairs(script.Parent.Parent.FrontDoor:GetChildren()) do
  1171. if ((v:IsA("BasePart")) and (v.Name == "Part")) then
  1172. table.insert(_items,v)
  1173. end
  1174. end
  1175. end
  1176.  
  1177. function main()
  1178. local d = door
  1179. door = 0
  1180. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1181. for i = 0,5,0.05 do
  1182. for _,v in pairs(_items) do
  1183. v.CFrame = v.CFrame * CFrame.new(0,(0.208*(-d)),0)
  1184. end
  1185. wait()
  1186. end
  1187. if (d == (-1)) then
  1188. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1189. elseif (d == 1) then
  1190. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1191. end
  1192. door = d
  1193. end
  1194.  
  1195. script.Parent.Button1.Click.MouseClick:connect(function()
  1196. if (door == 0) then return end
  1197. door = (door*(-1))
  1198. main()
  1199. end)
  1200.  
  1201. getItems()
  1202. end))
  1203. Script78.Name = "MainB(Lock)"
  1204. Script78.Parent = Model38
  1205. table.insert(cors,sandbox(Script78,function()
  1206. local _items = {}
  1207.  
  1208. local door = -1
  1209. -- -1 = Closed
  1210. -- 0 = Active
  1211. -- 1 = Open
  1212.  
  1213. function getItems()
  1214. for _,v in pairs(script.Parent.Parent.FrontDoor.Lock:GetChildren()) do
  1215. if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
  1216. table.insert(_items,v)
  1217. end
  1218. end
  1219. end
  1220.  
  1221. function main()
  1222. local d = door
  1223. door = 0
  1224. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1225. for i = 0,5,0.05 do
  1226. for _,v in pairs(_items) do
  1227. v.CFrame = v.CFrame * CFrame.new(0,(-0.208*(-d)),0)
  1228. end
  1229. wait()
  1230. end
  1231. if (d == (-1)) then
  1232. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1233. elseif (d == 1) then
  1234. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1235. end
  1236. door = d
  1237. end
  1238.  
  1239. script.Parent.Button1.Click.MouseClick:connect(function()
  1240. if (door == 0) then return end
  1241. door = (door*(-1))
  1242. main()
  1243. end)
  1244.  
  1245. getItems()
  1246. end))
  1247. Script79.Name = "MainButton(Lock)"
  1248. Script79.Parent = Model38
  1249. table.insert(cors,sandbox(Script79,function()
  1250. local _items = {}
  1251.  
  1252. local door = -1
  1253. -- -1 = Closed
  1254. -- 0 = Active
  1255. -- 1 = Open
  1256.  
  1257. function getItems()
  1258. for _,v in pairs(script.Parent.Parent.FrontDoor.Lock:GetChildren()) do
  1259. if ((v:IsA("BasePart")) and (v.Name == "Button")) then
  1260. table.insert(_items,v)
  1261. end
  1262. end
  1263. end
  1264.  
  1265. function main()
  1266. local d = door
  1267. door = 0
  1268. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1269. for i = 0,5,0.05 do
  1270. for _,v in pairs(_items) do
  1271. v.CFrame = v.CFrame * CFrame.new(0,0,(0.208*(-d)))
  1272. end
  1273. wait()
  1274. end
  1275. if (d == (-1)) then
  1276. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1277. elseif (d == 1) then
  1278. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1279. end
  1280. door = d
  1281. end
  1282.  
  1283. script.Parent.Button1.Click.MouseClick:connect(function()
  1284. if (door == 0) then return end
  1285. door = (door*(-1))
  1286. main()
  1287. end)
  1288.  
  1289. getItems()
  1290. end))
  1291. Script80.Name = "MainButton1"
  1292. Script80.Parent = Model38
  1293. table.insert(cors,sandbox(Script80,function()
  1294. local _items = {}
  1295.  
  1296. local door = -1
  1297. -- -1 = Closed
  1298. -- 0 = Active
  1299. -- 1 = Open
  1300.  
  1301. function getItems()
  1302. for _,v in pairs(script.Parent:GetChildren()) do
  1303. if ((v:IsA("BasePart")) and (v.Name == "Button1")) then
  1304. table.insert(_items,v)
  1305. end
  1306. end
  1307. end
  1308.  
  1309. function main()
  1310. local d = door
  1311. door = 0
  1312. script.Parent.Parent.Doors.Button.CFrame = script.Parent.Parent.Doors.Button.CFrame * CFrame.new(0, -0.4, 0.1)
  1313. script.Parent.Parent.Doors.Door1.Transparency= 0
  1314. script.Parent.Parent.Doors.Door2.Transparency= 0
  1315. script.Parent.Parent.snow.Transparency= 1
  1316. script.Parent.Parent.snow.CanCollide= false
  1317. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1318. for i = 0,5,0.05 do
  1319. for _,v in pairs(_items) do
  1320. v.CFrame = v.CFrame * CFrame.new(0,0,(0.208*(-d)))
  1321. end
  1322. wait()
  1323. end
  1324. if (d == (-1)) then
  1325. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1326. script.Parent.Button1.Decal.Texture="http://www.roblox.com/asset/?id=30473646"
  1327. script.Parent.Parent.Doors.Door1.Transparency= 0
  1328. script.Parent.Parent.Doors.Door2.Transparency= 0
  1329. script.Parent.Parent.Doors.Button.CFrame = script.Parent.Parent.Doors.Button.CFrame * CFrame.new(0, 0.8, -0.1)
  1330. elseif (d == 1) then
  1331. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1332. script.Parent.Parent.Doors.Door1.Transparency= 0
  1333. script.Parent.Parent.Doors.Door2.Transparency= 0
  1334. script.Parent.Button1.Decal.Texture="http://www.roblox.com/asset/?id=19475881"
  1335. script.Parent.Parent.snow.Transparency= 0
  1336. script.Parent.Parent.snow.CanCollide= true
  1337. end
  1338. door = d
  1339. end
  1340.  
  1341. script.Parent.Button1.Click.MouseClick:connect(function()
  1342. if (door == 0) then return end
  1343. door = (door*(-1))
  1344. main()
  1345. end)
  1346.  
  1347. getItems()
  1348. end))
  1349. Script81.Name = "MainD"
  1350. Script81.Parent = Model38
  1351. table.insert(cors,sandbox(Script81,function()
  1352. local _items = {}
  1353.  
  1354. local door = -1
  1355. -- -1 = Closed
  1356. -- 0 = Active
  1357. -- 1 = Open
  1358.  
  1359. function getItems()
  1360. for _,v in pairs(script.Parent.Parent.Doors:GetChildren()) do
  1361. if ((v:IsA("BasePart")) and (v.Name == "Door1")) then
  1362. table.insert(_items,v)
  1363. end
  1364. end
  1365. end
  1366.  
  1367. function main()
  1368. local d = door
  1369. door = 0
  1370. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1371. for i = 0,5,0.05 do
  1372. for _,v in pairs(_items) do
  1373. v.CFrame = v.CFrame * CFrame.new(0,(0.458*(-d)),0)
  1374. end
  1375. wait()
  1376. end
  1377. if (d == (-1)) then
  1378. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1379. elseif (d == 1) then
  1380. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1381. end
  1382. door = d
  1383. end
  1384.  
  1385. script.Parent.Button1.Click.MouseClick:connect(function()
  1386. if (door == 0) then return end
  1387. door = (door*(-1))
  1388. main()
  1389. end)
  1390.  
  1391. getItems()
  1392. end))
  1393. Script82.Name = "MainD2"
  1394. Script82.Parent = Model38
  1395. table.insert(cors,sandbox(Script82,function()
  1396. local _items = {}
  1397.  
  1398. local door = -1
  1399. -- -1 = Closed
  1400. -- 0 = Active
  1401. -- 1 = Open
  1402.  
  1403. function getItems()
  1404. for _,v in pairs(script.Parent.Parent.Doors:GetChildren()) do
  1405. if ((v:IsA("BasePart")) and (v.Name == "Door2")) then
  1406. table.insert(_items,v)
  1407. end
  1408. end
  1409. end
  1410.  
  1411. function main()
  1412. local d = door
  1413. door = 0
  1414. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1415. for i = 0,5,0.05 do
  1416. for _,v in pairs(_items) do
  1417. v.CFrame = v.CFrame * CFrame.new(0,(0.458*(-d)),0)
  1418. end
  1419. wait()
  1420. end
  1421. if (d == (-1)) then
  1422. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1423. elseif (d == 1) then
  1424. script.Parent.Button1.BrickColor = BrickColor.new("Bright blue")
  1425. end
  1426. door = d
  1427. end
  1428.  
  1429. script.Parent.Button1.Click.MouseClick:connect(function()
  1430. if (door == 0) then return end
  1431. door = (door*(-1))
  1432. main()
  1433. end)
  1434.  
  1435. getItems()
  1436. end))
  1437. Part83.Name = "snow"
  1438. Part83.Parent = Model2
  1439. Part83.BrickColor = BrickColor.new("Institutional white")
  1440. Part83.Transparency = 1
  1441. Part83.Rotation = Vector3.new(0, 90, 0)
  1442. Part83.Anchored = true
  1443. Part83.CanCollide = false
  1444. Part83.FormFactor = Enum.FormFactor.Symmetric
  1445. Part83.Size = Vector3.new(20, 1, 19)
  1446. Part83.CFrame = CFrame.new(-65.4502563, 9.49967766, -63, 1.19209268e-07, 1.50995817e-07, 1, -1.50995817e-07, 1, -1.50995803e-07, -1, -1.50995803e-07, 1.1920929e-07)
  1447. Part83.BottomSurface = Enum.SurfaceType.Smooth
  1448. Part83.TopSurface = Enum.SurfaceType.Smooth
  1449. Part83.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1450. Part83.Position = Vector3.new(-65.4502563, 9.49967766, -63)
  1451. Part83.Orientation = Vector3.new(0, 90, 0)
  1452. Part83.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1453. BlockMesh84.Parent = Part83
  1454. BlockMesh84.Scale = Vector3.new(1, 1, 1.20000005)
  1455. BlockMesh84.Scale = Vector3.new(1, 1, 1.20000005)
  1456. Model85.Name = "Doors"
  1457. Model85.Parent = Model2
  1458. Part86.Name = "Door1"
  1459. Part86.Parent = Model85
  1460. Part86.BrickColor = BrickColor.new("Reddish brown")
  1461. Part86.Rotation = Vector3.new(-180, 0, -180)
  1462. Part86.Anchored = true
  1463. Part86.CanCollide = false
  1464. Part86.FormFactor = Enum.FormFactor.Symmetric
  1465. Part86.Size = Vector3.new(19, 1, 1)
  1466. Part86.CFrame = CFrame.new(-65.5, 10.6007786, -73.5, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1467. Part86.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1468. Part86.Position = Vector3.new(-65.5, 10.6007786, -73.5)
  1469. Part86.Orientation = Vector3.new(0, 180, 0)
  1470. Part86.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1471. BlockMesh87.Parent = Part86
  1472. BlockMesh87.Offset = Vector3.new(0, 9.39999962, 0)
  1473. BlockMesh87.Scale = Vector3.new(1, 20, 1)
  1474. BlockMesh87.Scale = Vector3.new(1, 20, 1)
  1475. Part88.Name = "Button"
  1476. Part88.Parent = Model85
  1477. Part88.BrickColor = BrickColor.new("Black")
  1478. Part88.Transparency = 1
  1479. Part88.Anchored = true
  1480. Part88.CanCollide = false
  1481. Part88.Size = Vector3.new(19, 1.20000005, 4)
  1482. Part88.CFrame = CFrame.new(-65.5000305, 9.60012627, -74.1998901, 1, -1.36252481e-06, 3.33714141e-08, 1.36252481e-06, 1, 1.08283755e-08, -3.33714283e-08, -1.08283302e-08, 1)
  1483. Part88.TopSurface = Enum.SurfaceType.Smooth
  1484. Part88.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1485. Part88.Position = Vector3.new(-65.5000305, 9.60012627, -74.1998901)
  1486. Part88.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1487. Script89.Parent = Part88
  1488. table.insert(cors,sandbox(Script89,function()
  1489. print("One Way Door Script Loaded")
  1490.  
  1491.  
  1492.  
  1493. Button = script.Parent
  1494.  
  1495. Door1 = script.Parent.Parent.Door1
  1496. Door2 = script.Parent.Parent.Door2
  1497.  
  1498.  
  1499.  
  1500. function onTouched(hit)
  1501.  
  1502.  
  1503.  
  1504. print("Door Hit")
  1505.  
  1506.  
  1507.  
  1508. Door1.Transparency = 0
  1509. Door2.Transparency = 0
  1510. wait(0.1)
  1511. Door1.Transparency = 0.1
  1512. Door2.Transparency = 0.1
  1513. wait(0.1)
  1514. Door1.Transparency = 0.2
  1515. Door2.Transparency = 0.2
  1516. wait(0.1)
  1517. Door1.Transparency = 0.3
  1518. Door2.Transparency = 0.3
  1519. wait(0.1)
  1520. Door1.Transparency = 0.4
  1521. Door2.Transparency = 0.4
  1522. wait(0.1)
  1523. Door1.Transparency = 0.5
  1524. Door2.Transparency = 0.5
  1525. wait(0.1)
  1526. Door1.Transparency = 0.6
  1527. Door2.Transparency = 0.6
  1528. wait(0.1)
  1529. Door1.Transparency = 0.7
  1530. Door2.Transparency = 0.7
  1531. wait(0.1)
  1532. Door1.Transparency = 0.8
  1533. Door2.Transparency = 0.8
  1534. wait(0.1)
  1535. Door1.Transparency = 0.9
  1536. Door2.Transparency = 0.9
  1537. wait(0.1)
  1538. Door1.Transparency = 1
  1539. Door2.Transparency = 1
  1540. wait(5.0)
  1541. Door1.Transparency = 0.9
  1542. Door2.Transparency = 0.9
  1543. wait(0.1)
  1544. Door1.Transparency = 0.8
  1545. Door2.Transparency = 0.8
  1546. wait(0.1)
  1547. Door1.Transparency = 0.7
  1548. Door2.Transparency = 0.7
  1549. wait(0.1)
  1550. Door1.Transparency = 0.6
  1551. Door2.Transparency = 0.6
  1552. wait(0.1)
  1553. Door1.Transparency = 0.5
  1554. Door2.Transparency = 0.5
  1555. wait(0.1)
  1556. Door1.Transparency = 0.4
  1557. Door2.Transparency = 0.4
  1558. wait(0.1)
  1559. Door1.Transparency = 0.3
  1560. Door2.Transparency = 0.3
  1561. wait(0.1)
  1562. Door1.Transparency = 0.2
  1563. Door2.Transparency = 0.2
  1564. wait(0.1)
  1565. Door1.Transparency = 0.1
  1566. Door2.Transparency = 0.1
  1567. wait(0.1)
  1568. Door1.Transparency = 0
  1569. Door2.Transparency = 0
  1570. end
  1571.  
  1572.  
  1573.  
  1574. script.Parent.Touched:connect(onTouched)
  1575.  
  1576.  
  1577. end))
  1578. VelocityMotor90.Name = "4D Being"
  1579. VelocityMotor90.Parent = Model85
  1580. Part91.Name = "Door2"
  1581. Part91.Parent = Model85
  1582. Part91.BrickColor = BrickColor.new("Institutional white")
  1583. Part91.Rotation = Vector3.new(-180, 0, -180)
  1584. Part91.Anchored = true
  1585. Part91.CanCollide = false
  1586. Part91.FormFactor = Enum.FormFactor.Symmetric
  1587. Part91.Size = Vector3.new(19, 1, 1)
  1588. Part91.CFrame = CFrame.new(-65.4502563, 30.4998856, -73.5, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1589. Part91.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1590. Part91.Position = Vector3.new(-65.4502563, 30.4998856, -73.5)
  1591. Part91.Orientation = Vector3.new(0, 180, 0)
  1592. Part91.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1593. BlockMesh92.Parent = Part91
  1594. Part93.Parent = Model1
  1595. Part93.BrickColor = BrickColor.new("Reddish brown")
  1596. Part93.Rotation = Vector3.new(0, -90, 0)
  1597. Part93.Anchored = true
  1598. Part93.FormFactor = Enum.FormFactor.Symmetric
  1599. Part93.Size = Vector3.new(11, 10, 13)
  1600. Part93.CFrame = CFrame.new(-81.4502563, 14.9997063, -58.5, -1.19209268e-07, 1.50995817e-07, -1, 1.50995817e-07, 1, 1.50995803e-07, 1, -1.50995803e-07, -1.1920929e-07)
  1601. Part93.BottomSurface = Enum.SurfaceType.Smooth
  1602. Part93.TopSurface = Enum.SurfaceType.Smooth
  1603. Part93.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1604. Part93.Position = Vector3.new(-81.4502563, 14.9997063, -58.5)
  1605. Part93.Orientation = Vector3.new(0, -90, 0)
  1606. Part93.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1607. BlockMesh94.Parent = Part93
  1608. BlockMesh94.Scale = Vector3.new(1, 1, 1.00999999)
  1609. BlockMesh94.Scale = Vector3.new(1, 1, 1.00999999)
  1610. Part95.Parent = Model1
  1611. Part95.BrickColor = BrickColor.new("Institutional white")
  1612. Part95.Rotation = Vector3.new(0, 90, 0)
  1613. Part95.Anchored = true
  1614. Part95.FormFactor = Enum.FormFactor.Symmetric
  1615. Part95.Size = Vector3.new(11, 1, 13)
  1616. Part95.CFrame = CFrame.new(-81.4502563, 20.4998608, -58.5, 1.19209268e-07, 1.50995817e-07, 1, -1.50995817e-07, 1, -1.50995803e-07, -1, -1.50995803e-07, 1.1920929e-07)
  1617. Part95.BottomSurface = Enum.SurfaceType.Smooth
  1618. Part95.TopSurface = Enum.SurfaceType.Smooth
  1619. Part95.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1620. Part95.Position = Vector3.new(-81.4502563, 20.4998608, -58.5)
  1621. Part95.Orientation = Vector3.new(0, 90, 0)
  1622. Part95.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1623. BlockMesh96.Parent = Part95
  1624. Part97.Parent = Model1
  1625. Part97.BrickColor = BrickColor.new("Reddish brown")
  1626. Part97.Rotation = Vector3.new(0, -90, 0)
  1627. Part97.Anchored = true
  1628. Part97.FormFactor = Enum.FormFactor.Symmetric
  1629. Part97.Size = Vector3.new(6, 4, 10)
  1630. Part97.CFrame = CFrame.new(-80, 12.0007801, -67, 2.98023224e-08, 1.58753366e-09, -1, 3.60566297e-08, 1.00000012, -8.8817842e-16, 1, -3.58955994e-08, -5.96046448e-08)
  1631. Part97.BottomSurface = Enum.SurfaceType.Smooth
  1632. Part97.TopSurface = Enum.SurfaceType.Smooth
  1633. Part97.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1634. Part97.Position = Vector3.new(-80, 12.0007801, -67)
  1635. Part97.Orientation = Vector3.new(0, -90, 0)
  1636. Part97.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1637. BlockMesh98.Parent = Part97
  1638. BlockMesh98.Scale = Vector3.new(1, 1, 1.00999999)
  1639. BlockMesh98.Scale = Vector3.new(1, 1, 1.00999999)
  1640. Part99.Parent = Model1
  1641. Part99.BrickColor = BrickColor.new("Institutional white")
  1642. Part99.Rotation = Vector3.new(0, 90, 0)
  1643. Part99.Anchored = true
  1644. Part99.FormFactor = Enum.FormFactor.Symmetric
  1645. Part99.Size = Vector3.new(6, 1, 10)
  1646. Part99.CFrame = CFrame.new(-80, 14.5007801, -67, 1.19209268e-07, 1.50995817e-07, 1, -1.50995817e-07, 1, -1.50995803e-07, -1, -1.50995803e-07, 1.1920929e-07)
  1647. Part99.BottomSurface = Enum.SurfaceType.Smooth
  1648. Part99.TopSurface = Enum.SurfaceType.Smooth
  1649. Part99.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1650. Part99.Position = Vector3.new(-80, 14.5007801, -67)
  1651. Part99.Orientation = Vector3.new(0, 90, 0)
  1652. Part99.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1653. BlockMesh100.Parent = Part99
  1654. Part101.Parent = Model1
  1655. Part101.BrickColor = BrickColor.new("Reddish brown")
  1656. Part101.Rotation = Vector3.new(0, 0, -180)
  1657. Part101.Anchored = true
  1658. Part101.FormFactor = Enum.FormFactor.Symmetric
  1659. Part101.Size = Vector3.new(41, 5, 4)
  1660. Part101.CFrame = CFrame.new(-80.5, 2.50010204, -80.0000305, -1, 2.05834453e-06, -7.40334606e-13, -2.05834453e-06, -1, 1.26295927e-05, 2.52557177e-11, 1.26295927e-05, 1)
  1661. Part101.BottomSurface = Enum.SurfaceType.Smooth
  1662. Part101.TopSurface = Enum.SurfaceType.Smooth
  1663. Part101.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1664. Part101.Position = Vector3.new(-80.5, 2.50010204, -80.0000305)
  1665. Part101.Orientation = Vector3.new(0, 0, -180)
  1666. Part101.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1667. BlockMesh102.Parent = Part101
  1668. Part103.Parent = Model1
  1669. Part103.BrickColor = BrickColor.new("Institutional white")
  1670. Part103.Rotation = Vector3.new(0, 0, 180)
  1671. Part103.Anchored = true
  1672. Part103.FormFactor = Enum.FormFactor.Symmetric
  1673. Part103.Size = Vector3.new(19, 1, 11)
  1674. Part103.CFrame = CFrame.new(-65.5, 9.50076675, -47.5, -1, -0, 0, -0, -1, 0, -0, -0, 1)
  1675. Part103.BottomSurface = Enum.SurfaceType.Smooth
  1676. Part103.TopSurface = Enum.SurfaceType.Smooth
  1677. Part103.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1678. Part103.Position = Vector3.new(-65.5, 9.50076675, -47.5)
  1679. Part103.Orientation = Vector3.new(0, 0, -180)
  1680. Part103.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1681. BlockMesh104.Parent = Part103
  1682. Part105.Parent = Model1
  1683. Part105.BrickColor = BrickColor.new("Reddish brown")
  1684. Part105.Rotation = Vector3.new(0, 0, 180)
  1685. Part105.Anchored = true
  1686. Part105.FormFactor = Enum.FormFactor.Symmetric
  1687. Part105.Size = Vector3.new(19, 9, 11)
  1688. Part105.CFrame = CFrame.new(-65.5, 4.50085258, -47.5, -1, -0, 0, -0, -1, 0, -0, -0, 1)
  1689. Part105.BottomSurface = Enum.SurfaceType.Smooth
  1690. Part105.TopSurface = Enum.SurfaceType.Smooth
  1691. Part105.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1692. Part105.Position = Vector3.new(-65.5, 4.50085258, -47.5)
  1693. Part105.Orientation = Vector3.new(0, 0, -180)
  1694. Part105.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1695. BlockMesh106.Parent = Part105
  1696. Part107.Parent = Model1
  1697. Part107.BrickColor = BrickColor.new("Institutional white")
  1698. Part107.Rotation = Vector3.new(0, 90, 0)
  1699. Part107.Anchored = true
  1700. Part107.FormFactor = Enum.FormFactor.Symmetric
  1701. Part107.Size = Vector3.new(36, 1, 19)
  1702. Part107.CFrame = CFrame.new(-84.5, 9.50076675, -60, -0, 0, 1, -0, 1, 0, -1, 0, 0)
  1703. Part107.BottomSurface = Enum.SurfaceType.Smooth
  1704. Part107.TopSurface = Enum.SurfaceType.Smooth
  1705. Part107.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1706. Part107.Position = Vector3.new(-84.5, 9.50076675, -60)
  1707. Part107.Orientation = Vector3.new(0, 90, 0)
  1708. Part107.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1709. BlockMesh108.Parent = Part107
  1710. Part109.Parent = Model1
  1711. Part109.BrickColor = BrickColor.new("Reddish brown")
  1712. Part109.Rotation = Vector3.new(180, -90, 0)
  1713. Part109.Anchored = true
  1714. Part109.FormFactor = Enum.FormFactor.Symmetric
  1715. Part109.Size = Vector3.new(36, 9, 19)
  1716. Part109.CFrame = CFrame.new(-84.5, 4.50085258, -60, -0, -0, -1, -0, -1, -0, -1, -0, -0)
  1717. Part109.BottomSurface = Enum.SurfaceType.Smooth
  1718. Part109.TopSurface = Enum.SurfaceType.Smooth
  1719. Part109.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1720. Part109.Position = Vector3.new(-84.5, 4.50085258, -60)
  1721. Part109.Orientation = Vector3.new(0, -90, -180)
  1722. Part109.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1723. BlockMesh110.Parent = Part109
  1724. Part111.Parent = Model1
  1725. Part111.BrickColor = BrickColor.new("Reddish brown")
  1726. Part111.Rotation = Vector3.new(180, 90, 0)
  1727. Part111.Anchored = true
  1728. Part111.FormFactor = Enum.FormFactor.Symmetric
  1729. Part111.Size = Vector3.new(36, 9, 11)
  1730. Part111.CFrame = CFrame.new(-50.5, 4.50085258, -60, 0, -0, 1, 0, -1, 0, 1, -0, 0)
  1731. Part111.BottomSurface = Enum.SurfaceType.Smooth
  1732. Part111.TopSurface = Enum.SurfaceType.Smooth
  1733. Part111.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1734. Part111.Position = Vector3.new(-50.5, 4.50085258, -60)
  1735. Part111.Orientation = Vector3.new(0, 90, 180)
  1736. Part111.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1737. BlockMesh112.Parent = Part111
  1738. Part113.Parent = Model1
  1739. Part113.BrickColor = BrickColor.new("Institutional white")
  1740. Part113.Rotation = Vector3.new(180, 90, 0)
  1741. Part113.Anchored = true
  1742. Part113.FormFactor = Enum.FormFactor.Symmetric
  1743. Part113.Size = Vector3.new(36, 1, 11)
  1744. Part113.CFrame = CFrame.new(-50.5, 9.50076675, -60, 0, -0, 1, 0, -1, 0, 1, -0, 0)
  1745. Part113.BottomSurface = Enum.SurfaceType.Smooth
  1746. Part113.TopSurface = Enum.SurfaceType.Smooth
  1747. Part113.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1748. Part113.Position = Vector3.new(-50.5, 9.50076675, -60)
  1749. Part113.Orientation = Vector3.new(0, 90, 180)
  1750. Part113.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1751. BlockMesh114.Parent = Part113
  1752. Part115.Parent = Model1
  1753. Part115.BrickColor = BrickColor.new("Institutional white")
  1754. Part115.Rotation = Vector3.new(180, 90, 0)
  1755. Part115.Anchored = true
  1756. Part115.FormFactor = Enum.FormFactor.Symmetric
  1757. Part115.Size = Vector3.new(5, 1, 19)
  1758. Part115.CFrame = CFrame.new(-65.5, 9.50076675, -75.5, 0, -0, 1, 0, -1, 0, 1, -0, 0)
  1759. Part115.BottomSurface = Enum.SurfaceType.Smooth
  1760. Part115.TopSurface = Enum.SurfaceType.Smooth
  1761. Part115.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1762. Part115.Position = Vector3.new(-65.5, 9.50076675, -75.5)
  1763. Part115.Orientation = Vector3.new(0, 90, 180)
  1764. Part115.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1765. BlockMesh116.Parent = Part115
  1766. Part117.Parent = Model1
  1767. Part117.BrickColor = BrickColor.new("Institutional white")
  1768. Part117.Rotation = Vector3.new(180, -90, 0)
  1769. Part117.Anchored = true
  1770. Part117.FormFactor = Enum.FormFactor.Symmetric
  1771. Part117.Size = Vector3.new(28, 1, 14)
  1772. Part117.CFrame = CFrame.new(-101, 6.50084591, -64, -0, -0, -1, -0, -1, -0, -1, -0, -0)
  1773. Part117.BottomSurface = Enum.SurfaceType.Smooth
  1774. Part117.TopSurface = Enum.SurfaceType.Smooth
  1775. Part117.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1776. Part117.Position = Vector3.new(-101, 6.50084591, -64)
  1777. Part117.Orientation = Vector3.new(0, -90, -180)
  1778. Part117.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1779. BlockMesh118.Parent = Part117
  1780. Part119.Parent = Model1
  1781. Part119.BrickColor = BrickColor.new("Reddish brown")
  1782. Part119.Rotation = Vector3.new(180, -90, 0)
  1783. Part119.Anchored = true
  1784. Part119.FormFactor = Enum.FormFactor.Symmetric
  1785. Part119.Size = Vector3.new(28, 6, 14)
  1786. Part119.CFrame = CFrame.new(-101, 3.00090694, -64, -0, -0, -1, -0, -1, -0, -1, -0, -0)
  1787. Part119.BottomSurface = Enum.SurfaceType.Smooth
  1788. Part119.TopSurface = Enum.SurfaceType.Smooth
  1789. Part119.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1790. Part119.Position = Vector3.new(-101, 3.00090694, -64)
  1791. Part119.Orientation = Vector3.new(0, -90, -180)
  1792. Part119.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1793. BlockMesh120.Parent = Part119
  1794. Part121.Parent = Model1
  1795. Part121.BrickColor = BrickColor.new("Reddish brown")
  1796. Part121.Rotation = Vector3.new(180, 90, 0)
  1797. Part121.Anchored = true
  1798. Part121.FormFactor = Enum.FormFactor.Symmetric
  1799. Part121.Size = Vector3.new(5, 9, 19)
  1800. Part121.CFrame = CFrame.new(-65.5, 4.50085258, -75.5, 0, -0, 1, 0, -1, 0, 1, -0, 0)
  1801. Part121.BottomSurface = Enum.SurfaceType.Smooth
  1802. Part121.TopSurface = Enum.SurfaceType.Smooth
  1803. Part121.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1804. Part121.Position = Vector3.new(-65.5, 4.50085258, -75.5)
  1805. Part121.Orientation = Vector3.new(0, 90, 180)
  1806. Part121.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1807. BlockMesh122.Parent = Part121
  1808. Part123.Parent = Model1
  1809. Part123.BrickColor = BrickColor.new("Institutional white")
  1810. Part123.Rotation = Vector3.new(180, -90, 0)
  1811. Part123.Anchored = true
  1812. Part123.FormFactor = Enum.FormFactor.Symmetric
  1813. Part123.Size = Vector3.new(4, 1, 41)
  1814. Part123.CFrame = CFrame.new(-80.5, 5.50085449, -80, -0, -0, -1, -0, -1, -0, -1, -0, -0)
  1815. Part123.BottomSurface = Enum.SurfaceType.Smooth
  1816. Part123.TopSurface = Enum.SurfaceType.Smooth
  1817. Part123.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1818. Part123.Position = Vector3.new(-80.5, 5.50085449, -80)
  1819. Part123.Orientation = Vector3.new(0, -90, -180)
  1820. Part123.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1821. BlockMesh124.Parent = Part123
  1822. for i,v in pairs(mas:GetChildren()) do
  1823. v.Parent = workspace
  1824. pcall(function() v:MakeJoints() end)
  1825. end
  1826. mas:Destroy()
  1827. for i,v in pairs(cors) do
  1828. spawn(function()
  1829. pcall(v)
  1830. end)
  1831. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement