Advertisement
UhhLegoboy

Guillotine

Apr 3rd, 2017
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.79 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("Seat")
  23. o6 = Instance.new("Script")
  24. o8 = Instance.new("Sound")
  25. o9 = Instance.new("Part")
  26. o10 = Instance.new("WedgePart")
  27. o11 = Instance.new("Script")
  28. o13 = Instance.new("Sound")
  29. o14 = Instance.new("Part")
  30. o15 = Instance.new("Part")
  31. o16 = Instance.new("Part")
  32. o17 = Instance.new("Part")
  33. o18 = Instance.new("Part")
  34. o19 = Instance.new("Part")
  35. o20 = Instance.new("Part")
  36. o21 = Instance.new("Part")
  37. o22 = Instance.new("Part")
  38. o1.Parent = mas
  39. o2.Parent = o1
  40. o2.Material = Enum.Material.Wood
  41. o2.BrickColor = BrickColor.new("Brown")
  42. o2.Position = Vector3.new(-29.5, 12, 10.5)
  43. o2.Anchored = true
  44. o2.Size = Vector3.new(1, 14, 1)
  45. o2.CFrame = CFrame.new(-29.5, 12, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  46. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  47. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  48. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  49. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  50. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  51. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  52. o2.Color = Color3.new(0.486275, 0.360784, 0.27451)
  53. o2.Position = Vector3.new(-29.5, 12, 10.5)
  54. o3.Parent = o1
  55. o3.Material = Enum.Material.Wood
  56. o3.BrickColor = BrickColor.new("Brown")
  57. o3.Position = Vector3.new(-26.5, 3, 10.5)
  58. o3.Anchored = true
  59. o3.Size = Vector3.new(1, 2, 1)
  60. o3.CFrame = CFrame.new(-26.5, 3, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  61. o3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  62. o3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  63. o3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  64. o3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  65. o3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  66. o3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  67. o3.Color = Color3.new(0.486275, 0.360784, 0.27451)
  68. o3.Position = Vector3.new(-26.5, 3, 10.5)
  69. o4.Parent = o1
  70. o4.Material = Enum.Material.Wood
  71. o4.BrickColor = BrickColor.new("Brown")
  72. o4.Position = Vector3.new(-28, 1.00000095, 10.5)
  73. o4.Anchored = true
  74. o4.Size = Vector3.new(4, 2, 1)
  75. o4.CFrame = CFrame.new(-28, 1.00000095, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  76. o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  77. o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  78. o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  79. o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  80. o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  81. o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  82. o4.Color = Color3.new(0.486275, 0.360784, 0.27451)
  83. o4.Position = Vector3.new(-28, 1.00000095, 10.5)
  84. o5.Parent = o1
  85. o5.BrickColor = BrickColor.new("Black")
  86. o5.Transparency = 1
  87. o5.Position = Vector3.new(-28, 2.50000334, 8)
  88. o5.Rotation = Vector3.new(-90, 0.000194657754, -180)
  89. o5.Anchored = true
  90. o5.Size = Vector3.new(2, 1, 2)
  91. o5.CFrame = CFrame.new(-28, 2.50000334, 8, -1, 0, 3.3974186e-006, 3.3974186e-006, 0, 1, 0, 1, 0)
  92. o5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  93. o5.Position = Vector3.new(-28, 2.50000334, 8)
  94. o6.Parent = o5
  95. table.insert(cors,coroutine.create(function()
  96. wait()
  97. runDummyScript(function()
  98. script.Parent.Touched : connect(function()
  99.     script.Parent.Sound : play()
  100.     wait(script.Parent.Sound.TimeLength)
  101.     script.Parent.Parent.Parts1.Anchored = false
  102.     script.Parent.Parent.Parts2.Anchored = false
  103. end)
  104. end,o6)
  105. end))
  106. o8.Parent = o5
  107. o8.SoundId = "rbxassetid://130781067"
  108. o8.Volume = 1
  109. o9.Parent = o1
  110. o9.Material = Enum.Material.Wood
  111. o9.BrickColor = BrickColor.new("Brown")
  112. o9.Position = Vector3.new(-29.5, 3.00000095, 10.5)
  113. o9.Anchored = true
  114. o9.Size = Vector3.new(1, 2, 1)
  115. o9.CFrame = CFrame.new(-29.5, 3.00000095, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  116. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  117. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  118. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  119. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  120. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  121. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  122. o9.Color = Color3.new(0.486275, 0.360784, 0.27451)
  123. o9.Position = Vector3.new(-29.5, 3.00000095, 10.5)
  124. o10.Name = "Parts2"
  125. o10.Parent = o1
  126. o10.Material = Enum.Material.Metal
  127. o10.Position = Vector3.new(-28, 17.5, 10.5)
  128. o10.Rotation = Vector3.new(-180, 0, -0)
  129. o10.Anchored = true
  130. o10.Size = Vector3.new(2, 1, 1)
  131. o10.CFrame = CFrame.new(-28, 17.5, 10.5, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  132. o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  133. o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  134. o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  135. o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  136. o10.Position = Vector3.new(-28, 17.5, 10.5)
  137. o11.Parent = o10
  138. table.insert(cors,coroutine.create(function()
  139. wait()
  140. runDummyScript(function()
  141. script.Parent.Touched : connect(function(Part)
  142.     script.Parent.Sound : play()
  143.     Part.Parent.Humanoid.Health = 0
  144.     wait(5)
  145.     script.Parent.Parent : Destroy()
  146. end)
  147. end,o11)
  148. end))
  149. o13.Parent = o10
  150. o13.SoundId = "rbxassetid://566593606"
  151. o13.Volume = 5
  152. o14.Parent = o1
  153. o14.Material = Enum.Material.Wood
  154. o14.BrickColor = BrickColor.new("Brown")
  155. o14.Position = Vector3.new(-26.5, 12, 10.5)
  156. o14.Anchored = true
  157. o14.Size = Vector3.new(1, 14, 1)
  158. o14.CFrame = CFrame.new(-26.5, 12, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  159. o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  160. o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  161. o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  162. o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  163. o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  164. o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  165. o14.Color = Color3.new(0.486275, 0.360784, 0.27451)
  166. o14.Position = Vector3.new(-26.5, 12, 10.5)
  167. o15.Parent = o1
  168. o15.Material = Enum.Material.Wood
  169. o15.BrickColor = BrickColor.new("Brown")
  170. o15.Position = Vector3.new(-28, 4.5, 10.5)
  171. o15.Anchored = true
  172. o15.CanCollide = false
  173. o15.Size = Vector3.new(4, 1, 1)
  174. o15.CFrame = CFrame.new(-28, 4.5, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  175. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  176. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  177. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  178. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  179. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  180. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  181. o15.Color = Color3.new(0.486275, 0.360784, 0.27451)
  182. o15.Position = Vector3.new(-28, 4.5, 10.5)
  183. o16.Parent = o1
  184. o16.Material = Enum.Material.Wood
  185. o16.BrickColor = BrickColor.new("Brown")
  186. o16.Position = Vector3.new(-28, 19.5, 10.5)
  187. o16.Anchored = true
  188. o16.Size = Vector3.new(4, 1, 1)
  189. o16.CFrame = CFrame.new(-28, 19.5, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  190. o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  191. o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  192. o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  193. o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  194. o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  195. o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  196. o16.Color = Color3.new(0.486275, 0.360784, 0.27451)
  197. o16.Position = Vector3.new(-28, 19.5, 10.5)
  198. o17.Name = "Parts1"
  199. o17.Parent = o1
  200. o17.Material = Enum.Material.Metal
  201. o17.Position = Vector3.new(-28, 18.5, 10.5)
  202. o17.Anchored = true
  203. o17.Size = Vector3.new(2, 1, 1)
  204. o17.CFrame = CFrame.new(-28, 18.5, 10.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  205. o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  206. o17.BottomSurface = Enum.SurfaceType.Studs
  207. o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  208. o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  209. o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  210. o17.Position = Vector3.new(-28, 18.5, 10.5)
  211. o18.Parent = o1
  212. o18.Material = Enum.Material.Wood
  213. o18.BrickColor = BrickColor.new("Brown")
  214. o18.Position = Vector3.new(-28, 1, 8)
  215. o18.Anchored = true
  216. o18.Size = Vector3.new(4, 1, 2)
  217. o18.CFrame = CFrame.new(-28, 1, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  218. o18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  219. o18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  220. o18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  221. o18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  222. o18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  223. o18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  224. o18.Color = Color3.new(0.486275, 0.360784, 0.27451)
  225. o18.Position = Vector3.new(-28, 1, 8)
  226. o19.Parent = o1
  227. o19.Material = Enum.Material.Wood
  228. o19.BrickColor = BrickColor.new("Brown")
  229. o19.Position = Vector3.new(-29.5, 8.5624876, 5.84156704)
  230. o19.Rotation = Vector3.new(21.6357803, 0, -0)
  231. o19.Anchored = true
  232. o19.Size = Vector3.new(1, 21, 1)
  233. o19.CFrame = CFrame.new(-29.5, 8.5624876, 5.84156704, 1, 0, 0, 0, 0.929546297, -0.368705094, 0, 0.368705124, 0.929546416)
  234. o19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  235. o19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  236. o19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  237. o19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  238. o19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  239. o19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  240. o19.Color = Color3.new(0.486275, 0.360784, 0.27451)
  241. o19.Position = Vector3.new(-29.5, 8.5624876, 5.84156704)
  242. o20.Parent = o1
  243. o20.Transparency = 1
  244. o20.Position = Vector3.new(-28, 12, 11.1000004)
  245. o20.Anchored = true
  246. o20.Size = Vector3.new(2, 14, 0.200000003)
  247. o20.CFrame = CFrame.new(-28, 12, 11.1000004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  248. o20.Position = Vector3.new(-28, 12, 11.1000004)
  249. o21.Parent = o1
  250. o21.Transparency = 1
  251. o21.Position = Vector3.new(-28, 12, 9.89000988)
  252. o21.Anchored = true
  253. o21.Size = Vector3.new(2, 14, 0.200000003)
  254. o21.CFrame = CFrame.new(-28, 12, 9.89000988, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  255. o21.Position = Vector3.new(-28, 12, 9.89000988)
  256. o22.Parent = o1
  257. o22.Material = Enum.Material.Wood
  258. o22.BrickColor = BrickColor.new("Brown")
  259. o22.Position = Vector3.new(-26.5, 8.5624876, 5.84156704)
  260. o22.Rotation = Vector3.new(21.6357803, 0, -0)
  261. o22.Anchored = true
  262. o22.Size = Vector3.new(1, 21, 1)
  263. o22.CFrame = CFrame.new(-26.5, 8.5624876, 5.84156704, 1, 0, 0, 0, 0.929546297, -0.368705094, 0, 0.368705124, 0.929546416)
  264. o22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  265. o22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  266. o22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  267. o22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  268. o22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  269. o22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  270. o22.Color = Color3.new(0.486275, 0.360784, 0.27451)
  271. o22.Position = Vector3.new(-26.5, 8.5624876, 5.84156704)
  272. mas.Parent = workspace
  273. mas:MakeJoints()
  274. local mas1 = mas:GetChildren()
  275. for i=1,#mas1 do
  276.     mas1[i].Parent = workspace
  277.     ypcall(function() mas1[i]:MakeJoints() end)
  278. end
  279. mas:Destroy()
  280. for i=1,#cors do
  281. coroutine.resume(cors[i])
  282. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement