Advertisement
Shyvha

Bunker/Prison

Sep 2nd, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.03 KB | None | 0 0
  1. print("Made by shyvha. Converted by ttyyuu12345. Thank shyvha or ttyyuu12345 if you see them on your SB server ;)")
  2. --Thanks to ttyyuu12345's Model > Script plugin! It helped me.
  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. Part1 = Instance.new("Part")
  21. Part2 = Instance.new("Part")
  22. Part3 = Instance.new("Part")
  23. Part4 = Instance.new("Part")
  24. Part5 = Instance.new("Part")
  25. Model6 = Instance.new("Model")
  26. Part7 = Instance.new("Part")
  27. Script8 = Instance.new("Script")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Part11 = Instance.new("Part")
  31. Part12 = Instance.new("Part")
  32. Part13 = Instance.new("Part")
  33. Part14 = Instance.new("Part")
  34. Part15 = Instance.new("Part")
  35. Part16 = Instance.new("Part")
  36. Part17 = Instance.new("Part")
  37. Model0.Name = "Bunker by shyvha"
  38. Model0.Parent = mas
  39. Part1.Parent = Model0
  40. Part1.Material = Enum.Material.DiamondPlate
  41. Part1.Rotation = Vector3.new(0, 0, -180)
  42. Part1.Anchored = true
  43. Part1.Size = Vector3.new(0.600002646, 8.6999979, 10.8000021)
  44. Part1.CFrame = CFrame.new(2.09719658, 4.14999866, 17.0999985, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  45. Part1.Position = Vector3.new(2.09719658, 4.14999866, 17.0999985)
  46. Part1.Orientation = Vector3.new(0, 0, 180)
  47. Part2.Parent = Model0
  48. Part2.Material = Enum.Material.Concrete
  49. Part2.Rotation = Vector3.new(0, 0, -180)
  50. Part2.Anchored = true
  51. Part2.Size = Vector3.new(0.600002646, 8.49999714, 10.8000021)
  52. Part2.CFrame = CFrame.new(2.59718895, 4.25000095, 17.1999969, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  53. Part2.Position = Vector3.new(2.59718895, 4.25000095, 17.1999969)
  54. Part2.Orientation = Vector3.new(0, 0, 180)
  55. Part3.Parent = Model0
  56. Part3.Material = Enum.Material.DiamondPlate
  57. Part3.Rotation = Vector3.new(0, 0, -180)
  58. Part3.Anchored = true
  59. Part3.Size = Vector3.new(5.10282135, 8.26056099, 0.777464807)
  60. Part3.CFrame = CFrame.new(13.6486025, 4.34999943, 12.1591606, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  61. Part3.Position = Vector3.new(13.6486025, 4.34999943, 12.1591606)
  62. Part3.Orientation = Vector3.new(0, 0, 180)
  63. Part4.Parent = Model0
  64. Part4.Material = Enum.Material.DiamondPlate
  65. Part4.Rotation = Vector3.new(0, 0, -180)
  66. Part4.Anchored = true
  67. Part4.Size = Vector3.new(5.10282803, 8.26056099, 0.777464807)
  68. Part4.CFrame = CFrame.new(5.04859161, 4.34999943, 12.1591606, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  69. Part4.Position = Vector3.new(5.04859161, 4.34999943, 12.1591606)
  70. Part4.Orientation = Vector3.new(0, 0, 180)
  71. Part5.Parent = Model0
  72. Part5.Material = Enum.Material.DiamondPlate
  73. Part5.Rotation = Vector3.new(0, 0, -180)
  74. Part5.Anchored = true
  75. Part5.Size = Vector3.new(15.302824, 0.760560393, 11.4774694)
  76. Part5.CFrame = CFrame.new(9.34859562, 8.70000172, 17.4091492, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  77. Part5.Position = Vector3.new(9.34859562, 8.70000172, 17.4091492)
  78. Part5.Orientation = Vector3.new(0, 0, 180)
  79. Model6.Parent = Model0
  80. Part7.Name = "Door"
  81. Part7.Parent = Model6
  82. Part7.Material = Enum.Material.DiamondPlate
  83. Part7.BrickColor = BrickColor.new("Institutional white")
  84. Part7.Transparency = 1
  85. Part7.Rotation = Vector3.new(0, 0, -180)
  86. Part7.Anchored = true
  87. Part7.CanCollide = false
  88. Part7.Size = Vector3.new(3.66666722, 8.8000021, 1.83333361)
  89. Part7.CFrame = CFrame.new(9.29719543, 4.10000324, 10.6833305, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  90. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  91. Part7.Position = Vector3.new(9.29719543, 4.10000324, 10.6833305)
  92. Part7.Orientation = Vector3.new(0, 0, 180)
  93. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  94. Script8.Parent = Part7
  95. table.insert(cors,sandbox(Script8,function()
  96. door = script.Parent.Parent.Door
  97. door2 = script.Parent.Parent.Door2
  98. function onTouched(hit)
  99.     door.CanCollide = false
  100.     door2.CanCollide = false
  101.     wait(0.5)
  102.     door.CanCollide = true
  103.     door2.CanCollide = true
  104. end
  105.  
  106. script.Parent.Touched:connect(onTouched)
  107.  
  108. end))
  109. Part9.Name = "Door2"
  110. Part9.Parent = Model6
  111. Part9.Material = Enum.Material.DiamondPlate
  112. Part9.BrickColor = BrickColor.new("Institutional white")
  113. Part9.Rotation = Vector3.new(0, 0, -180)
  114. Part9.Anchored = true
  115. Part9.CanCollide = false
  116. Part9.Size = Vector3.new(3.66666722, 8.8000021, 1.83333361)
  117. Part9.CFrame = CFrame.new(9.29719543, 4.10000324, 12.5166645, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  118. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  119. Part9.Position = Vector3.new(9.29719543, 4.10000324, 12.5166645)
  120. Part9.Orientation = Vector3.new(0, 0, 180)
  121. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  122. Part10.Parent = Model0
  123. Part10.Material = Enum.Material.Concrete
  124. Part10.Rotation = Vector3.new(0, 0, -180)
  125. Part10.Anchored = true
  126. Part10.Size = Vector3.new(0.600002646, 8.49999714, 10.8000021)
  127. Part10.CFrame = CFrame.new(16.1971951, 4.25000095, 17.1999969, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  128. Part10.Position = Vector3.new(16.1971951, 4.25000095, 17.1999969)
  129. Part10.Orientation = Vector3.new(0, 0, 180)
  130. Part11.Parent = Model0
  131. Part11.Material = Enum.Material.DiamondPlate
  132. Part11.Rotation = Vector3.new(0, 0, -180)
  133. Part11.Anchored = true
  134. Part11.Size = Vector3.new(15.2000036, 8.6999979, 0.699999988)
  135. Part11.CFrame = CFrame.new(9.39718914, 4.14999866, 22.8499947, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  136. Part11.Position = Vector3.new(9.39718914, 4.14999866, 22.8499947)
  137. Part11.Orientation = Vector3.new(0, 0, 180)
  138. Part12.Parent = Model0
  139. Part12.Material = Enum.Material.DiamondPlate
  140. Part12.Rotation = Vector3.new(0, 0, -180)
  141. Part12.Anchored = true
  142. Part12.Size = Vector3.new(15.302824, 0.760560393, 11.4774694)
  143. Part12.CFrame = CFrame.new(9.34859562, -0.199999809, 17.4091492, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  144. Part12.Position = Vector3.new(9.34859562, -0.199999809, 17.4091492)
  145. Part12.Orientation = Vector3.new(0, 0, 180)
  146. Part13.Parent = Model0
  147. Part13.Material = Enum.Material.Concrete
  148. Part13.Rotation = Vector3.new(0, 0, -180)
  149. Part13.Anchored = true
  150. Part13.Size = Vector3.new(14.1000061, 8.49999714, 0.799999952)
  151. Part13.CFrame = CFrame.new(9.34718704, 4.25000095, 22.2000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  152. Part13.Position = Vector3.new(9.34718704, 4.25000095, 22.2000008)
  153. Part13.Orientation = Vector3.new(0, 0, 180)
  154. Part14.Parent = Model0
  155. Part14.Material = Enum.Material.DiamondPlate
  156. Part14.Rotation = Vector3.new(0, 0, -180)
  157. Part14.Anchored = true
  158. Part14.Size = Vector3.new(0.600002646, 8.6999979, 10.8000021)
  159. Part14.CFrame = CFrame.new(16.6971931, 4.14999866, 17.0999985, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  160. Part14.Position = Vector3.new(16.6971931, 4.14999866, 17.0999985)
  161. Part14.Orientation = Vector3.new(0, 0, 180)
  162. Part15.Parent = Model0
  163. Part15.Material = Enum.Material.DiamondPlate
  164. Part15.Rotation = Vector3.new(0, 0, -180)
  165. Part15.Anchored = true
  166. Part15.Size = Vector3.new(13.7028246, 8.26056099, 0.777464807)
  167. Part15.CFrame = CFrame.new(9.34859562, 4.25000095, 22.0591545, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  168. Part15.Position = Vector3.new(9.34859562, 4.25000095, 22.0591545)
  169. Part15.Orientation = Vector3.new(0, 0, 180)
  170. Part16.Parent = Model0
  171. Part16.Material = Enum.Material.DiamondPlate
  172. Part16.Rotation = Vector3.new(0, 0, -180)
  173. Part16.Anchored = true
  174. Part16.Size = Vector3.new(0.583101213, 8.26056099, 10.4957781)
  175. Part16.CFrame = CFrame.new(2.78873825, 4.25000095, 17.1999969, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  176. Part16.Position = Vector3.new(2.78873825, 4.25000095, 17.1999969)
  177. Part16.Orientation = Vector3.new(0, 0, 180)
  178. Part17.Parent = Model0
  179. Part17.Material = Enum.Material.DiamondPlate
  180. Part17.Rotation = Vector3.new(0, 0, -180)
  181. Part17.Anchored = true
  182. Part17.Size = Vector3.new(0.583101213, 8.26056099, 10.4957781)
  183. Part17.CFrame = CFrame.new(16.0056458, 4.25000095, 17.1999969, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  184. Part17.Position = Vector3.new(16.0056458, 4.25000095, 17.1999969)
  185. Part17.Orientation = Vector3.new(0, 0, 180)
  186. for i,v in pairs(mas:GetChildren()) do
  187.     v.Parent = workspace
  188.     pcall(function() v:MakeJoints() end)
  189. end
  190. mas:Destroy()
  191. for i,v in pairs(cors) do
  192.     spawn(function()
  193.         pcall(v)
  194.     end)
  195. end
  196. -- Don't worry,there's a way to get out of the jail ... without resetting or g/r ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement