Advertisement
UhhLegoboy

Get Drowned n00b

Apr 3rd, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.69 KB | None | 0 0
  1.  local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return scri
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. mas.Name = "CompiledModel"
  18. o1 = Instance.new("Model")
  19. o2 = Instance.new("Part")
  20. o3 = Instance.new("Part")
  21. o4 = Instance.new("Part")
  22. o5 = Instance.new("Part")
  23. o6 = Instance.new("Part")
  24. o7 = Instance.new("Part")
  25. o8 = Instance.new("Part")
  26. o9 = Instance.new("Part")
  27. o10 = Instance.new("Part")
  28. o11 = Instance.new("Part")
  29. o12 = Instance.new("Part")
  30. o13 = Instance.new("Part")
  31. o14 = Instance.new("Script")
  32. o15 = Instance.new("Part")
  33. o16 = Instance.new("Script")
  34. o1.Parent = mas
  35. o2.Name = "NotBreakable"
  36. o2.Parent = o1
  37. o2.Material = Enum.Material.Wood
  38. o2.BrickColor = BrickColor.new("Nougat")
  39. o2.Position = Vector3.new(49.25, 4.30000019, -4.5)
  40. o2.Rotation = Vector3.new(-0, -90, 0)
  41. o2.Anchored = true
  42. o2.Size = Vector3.new(1, 0.5, 0.5)
  43. o2.CFrame = CFrame.new(49.25, 4.30000019, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  44. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  45. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  46. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  47. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  48. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  49. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  50. o2.Color = Color3.new(0.8, 0.556863, 0.411765)
  51. o2.Position = Vector3.new(49.25, 4.30000019, -4.5)
  52. o3.Parent = o1
  53. o3.Material = Enum.Material.WoodPlanks
  54. o3.BrickColor = BrickColor.new("Brown")
  55. o3.Position = Vector3.new(50, 0.25, -1.5)
  56. o3.Anchored = true
  57. o3.Size = Vector3.new(10, 0.5, 11)
  58. o3.CFrame = CFrame.new(50, 0.25, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  59. o3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  60. o3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  61. o3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  62. o3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  63. o3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  64. o3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  65. o3.Color = Color3.new(0.486275, 0.360784, 0.27451)
  66. o3.Position = Vector3.new(50, 0.25, -1.5)
  67. o4.Parent = o1
  68. o4.Material = Enum.Material.WoodPlanks
  69. o4.BrickColor = BrickColor.new("Brown")
  70. o4.Position = Vector3.new(50, 2.00000095, -7.5)
  71. o4.Anchored = true
  72. o4.Size = Vector3.new(12, 4, 1)
  73. o4.CFrame = CFrame.new(50, 2.00000095, -7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  74. o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  75. o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  76. o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  77. o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  78. o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  79. o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  80. o4.Color = Color3.new(0.486275, 0.360784, 0.27451)
  81. o4.Position = Vector3.new(50, 2.00000095, -7.5)
  82. o5.Parent = o1
  83. o5.Material = Enum.Material.WoodPlanks
  84. o5.BrickColor = BrickColor.new("Brown")
  85. o5.Position = Vector3.new(44.5, 2, -1.5)
  86. o5.Rotation = Vector3.new(-0, -90, 0)
  87. o5.Anchored = true
  88. o5.Size = Vector3.new(11, 4, 1)
  89. o5.CFrame = CFrame.new(44.5, 2, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  90. o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  91. o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  92. o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  93. o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  94. o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  95. o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  96. o5.Color = Color3.new(0.486275, 0.360784, 0.27451)
  97. o5.Position = Vector3.new(44.5, 2, -1.5)
  98. o6.Name = "NotBreakable"
  99. o6.Parent = o1
  100. o6.Material = Enum.Material.Wood
  101. o6.BrickColor = BrickColor.new("Nougat")
  102. o6.Position = Vector3.new(50.25, 4.30000019, -4.5)
  103. o6.Rotation = Vector3.new(-0, -90, 0)
  104. o6.Anchored = true
  105. o6.Size = Vector3.new(1, 0.5, 0.5)
  106. o6.CFrame = CFrame.new(50.25, 4.30000019, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  107. o6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  108. o6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  109. o6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  110. o6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  111. o6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  112. o6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  113. o6.Color = Color3.new(0.8, 0.556863, 0.411765)
  114. o6.Position = Vector3.new(50.25, 4.30000019, -4.5)
  115. o7.Parent = o1
  116. o7.Material = Enum.Material.WoodPlanks
  117. o7.BrickColor = BrickColor.new("Brown")
  118. o7.Position = Vector3.new(50, 2, 4.5)
  119. o7.Anchored = true
  120. o7.Size = Vector3.new(12, 4, 1)
  121. o7.CFrame = CFrame.new(50, 2, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  122. o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  123. o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  124. o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  125. o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  126. o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  127. o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  128. o7.Color = Color3.new(0.486275, 0.360784, 0.27451)
  129. o7.Position = Vector3.new(50, 2, 4.5)
  130. o8.Parent = o1
  131. o8.Material = Enum.Material.WoodPlanks
  132. o8.BrickColor = BrickColor.new("Brown")
  133. o8.Position = Vector3.new(55.5, 2, -1.50000012)
  134. o8.Rotation = Vector3.new(-0, -90, 0)
  135. o8.Anchored = true
  136. o8.Size = Vector3.new(11, 4, 1)
  137. o8.CFrame = CFrame.new(55.5, 2, -1.50000012, 0, 0, -1.00000024, 0, 1, 0, 1.00000024, 0, 0)
  138. o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  139. o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  140. o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  141. o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  142. o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  143. o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  144. o8.Color = Color3.new(0.486275, 0.360784, 0.27451)
  145. o8.Position = Vector3.new(55.5, 2, -1.50000012)
  146. o9.Name = "NotBreakable"
  147. o9.Parent = o1
  148. o9.Material = Enum.Material.Wood
  149. o9.BrickColor = BrickColor.new("Nougat")
  150. o9.Position = Vector3.new(49.5, 4.30000019, -6.5)
  151. o9.Rotation = Vector3.new(-0, -90, 0)
  152. o9.Anchored = true
  153. o9.Size = Vector3.new(3, 0.5, 2)
  154. o9.CFrame = CFrame.new(49.5, 4.30000019, -6.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  155. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  156. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  157. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  158. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  159. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  160. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  161. o9.Color = Color3.new(0.8, 0.556863, 0.411765)
  162. o9.Position = Vector3.new(49.5, 4.30000019, -6.5)
  163. o10.Name = "Part1"
  164. o10.Parent = o1
  165. o10.Material = Enum.Material.Wood
  166. o10.BrickColor = BrickColor.new("Nougat")
  167. o10.Position = Vector3.new(49.5, 4.30000019, -2.49999905)
  168. o10.Rotation = Vector3.new(0, 90, 0)
  169. o10.Anchored = true
  170. o10.Size = Vector3.new(3, 0.5, 2)
  171. o10.CFrame = CFrame.new(49.5, 4.30000019, -2.49999905, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  172. o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  173. o10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  174. o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  175. o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  176. o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  177. o10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  178. o10.Color = Color3.new(0.8, 0.556863, 0.411765)
  179. o10.Position = Vector3.new(49.5, 4.30000019, -2.49999905)
  180. o11.Name = "Part3"
  181. o11.Parent = o1
  182. o11.Material = Enum.Material.Wood
  183. o11.BrickColor = BrickColor.new("Nougat")
  184. o11.Position = Vector3.new(48.75, 4.30000019, -4.49999619)
  185. o11.Rotation = Vector3.new(0, 90, 0)
  186. o11.Anchored = true
  187. o11.Size = Vector3.new(1, 0.5, 0.5)
  188. o11.CFrame = CFrame.new(48.75, 4.30000019, -4.49999619, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  189. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  190. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  191. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  192. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  193. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  194. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  195. o11.Color = Color3.new(0.8, 0.556863, 0.411765)
  196. o11.Position = Vector3.new(48.75, 4.30000019, -4.49999619)
  197. o12.Name = "Part2"
  198. o12.Parent = o1
  199. o12.Material = Enum.Material.Wood
  200. o12.BrickColor = BrickColor.new("Nougat")
  201. o12.Position = Vector3.new(49.7500038, 4.30000019, -4.50000381)
  202. o12.Rotation = Vector3.new(0, 90, 0)
  203. o12.Anchored = true
  204. o12.Size = Vector3.new(1, 0.5, 0.5)
  205. o12.CFrame = CFrame.new(49.7500038, 4.30000019, -4.50000381, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  206. o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  207. o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  208. o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  209. o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  210. o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  211. o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  212. o12.Color = Color3.new(0.8, 0.556863, 0.411765)
  213. o12.Position = Vector3.new(49.7500038, 4.30000019, -4.50000381)
  214. o13.Parent = o1
  215. o13.Transparency = 1
  216. o13.Position = Vector3.new(49.5, 4.99999475, -2)
  217. o13.Anchored = true
  218. o13.CanCollide = false
  219. o13.Size = Vector3.new(2, 1, 2)
  220. o13.CFrame = CFrame.new(49.5, 4.99999475, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  221. o13.Position = Vector3.new(49.5, 4.99999475, -2)
  222. o14.Parent = o13
  223. table.insert(cors,coroutine.create(function()
  224. wait()
  225. runDummyScript(function()
  226. script.Parent.Touched : connect(function()
  227.     wait(2)
  228.     script.Parent.Parent.Part1.Anchored = false
  229.     script.Parent.Parent.Part2.Anchored = false
  230.     script.Parent.Parent.Part3.Anchored = false
  231.     script.Parent.Parent.Part1.CanCollide = false
  232.     script.Parent.Parent.Part1.CanCollide = false
  233.     script.Parent.Parent.Part1.CanCollide = false
  234.     wait(5)
  235.     script.Parent.Parent : Destroy()
  236. end)
  237. end,o14)
  238. end))
  239. o15.Parent = o1
  240. o15.Material = Enum.Material.SmoothPlastic
  241. o15.BrickColor = BrickColor.new("Cyan")
  242. o15.Reflectance = 0.5
  243. o15.Transparency = 0.5
  244. o15.Position = Vector3.new(50, 1.50000405, -1.5)
  245. o15.Anchored = true
  246. o15.CanCollide = false
  247. o15.Size = Vector3.new(10, 3, 11)
  248. o15.CFrame = CFrame.new(50, 1.50000405, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  249. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  250. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  251. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  252. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  253. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  254. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  255. o15.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  256. o15.Position = Vector3.new(50, 1.50000405, -1.5)
  257. o16.Parent = o15
  258. table.insert(cors,coroutine.create(function()
  259. wait()
  260. runDummyScript(function()
  261. script.Parent.Touched : connect(function(part)
  262.     wait(0.5)
  263.     part : Destroy()
  264. end)
  265. end,o16)
  266. end))
  267. mas.Parent = workspace
  268. mas:MakeJoints()
  269. local mas1 = mas:GetChildren()
  270. for i=1,#mas1 do
  271.     mas1[i].Parent = workspace
  272.     ypcall(function() mas1[i]:MakeJoints() end)
  273. end
  274. mas:Destroy()
  275. for i=1,#cors do
  276. coroutine.resume(cors[i])
  277. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement