Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.24 KB | None | 0 0
  1. -- Thanks for using Mod2S by NopeUsername
  2. local functions = {}
  3. function sandbox(script, func)
  4. local oldEnv = getfenv(func)
  5.  
  6. local newEnv = setmetatable({}, {
  7. __index = function(self,k)
  8. if k == "script" then
  9. return script
  10. else
  11. return oldEnv[k]
  12. end
  13. end,
  14. })
  15.  
  16. return setfenv(func, newEnv)
  17. end
  18.  
  19. local mas = Instance.new("Model", game:GetService("Lighting"))
  20. -- DECLARING VARIABLES
  21.  
  22. local Model = Instance.new("Model")
  23. local Model_1 = Instance.new("Model")
  24. local Part = Instance.new("Part")
  25. local Weld = Instance.new("Weld")
  26. local Model_2 = Instance.new("Model")
  27. local Part_1 = Instance.new("Part")
  28. local Weld_1 = Instance.new("Weld")
  29. local Script = Instance.new("Script")
  30. local Part_2 = Instance.new("Part")
  31. local Weld_2 = Instance.new("Weld")
  32. local Script_1 = Instance.new("Script")
  33. local Part_3 = Instance.new("Part")
  34. local Part_4 = Instance.new("Part")
  35. local Script_2 = Instance.new("Script")
  36. local Weld_3 = Instance.new("Weld")
  37. local Part_5 = Instance.new("Part")
  38. local Weld_4 = Instance.new("Weld")
  39. local Script_3 = Instance.new("Script")
  40. local Part_6 = Instance.new("Part")
  41. local Weld_5 = Instance.new("Weld")
  42. local Part_7 = Instance.new("Part")
  43. local Weld_6 = Instance.new("Weld")
  44. local Weld_7 = Instance.new("Weld")
  45. local Weld_8 = Instance.new("Weld")
  46. local Part_8 = Instance.new("Part")
  47. local Weld_9 = Instance.new("Weld")
  48. local Part_9 = Instance.new("Part")
  49. local Script_4 = Instance.new("Script")
  50. local Weld_10 = Instance.new("Weld")
  51. local SpawnLocation = Instance.new("SpawnLocation")
  52. local Decal = Instance.new("Decal")
  53. local SpawnLocation_1 = Instance.new("SpawnLocation")
  54. local Decal_1 = Instance.new("Decal")
  55.  
  56. -- SETTING PROPERTIES
  57.  
  58. Model.Parent = mas
  59.  
  60. Model_1.Parent = Model
  61.  
  62. Part.Anchored = true
  63. Part.BottomSurface = Enum.SurfaceType.Smooth
  64. Part.CFrame = CFrame.new(-52.935,0.485,77.405,1,0,0,0,1,0,0,0,1)
  65. Part.Color = Color3.new(0.294,0.592,0.294)
  66. Part.Locked = true
  67. Part.Material = Enum.Material.Metal
  68. Part.Size = Vector3.new(38.15,0.97,23.45)
  69. Part.TopSurface = Enum.SurfaceType.Smooth
  70. Part.Parent = Model_1
  71.  
  72. Weld.C0 = CFrame.new(-256,10,256,-1,0,0,0,0,1,0,1,0)
  73. Weld.C1 = CFrame.new(-203.065,-0.485,178.595,-1,0,0,0,0,1,0,1,0)
  74. Weld.Part1 = Part
  75. Weld.Parent = Part
  76.  
  77. Model_2.Parent = Model_1
  78.  
  79. Part_1.Anchored = true
  80. Part_1.BottomSurface = Enum.SurfaceType.Smooth
  81. Part_1.CFrame = CFrame.new(-66.516,1.47,77.56,0,0,1,0,1,0,-1,0,0)
  82. Part_1.Color = Color3.new(1,0,0)
  83. Part_1.Locked = true
  84. Part_1.Size = Vector3.new(20.84,1,2)
  85. Part_1.TopSurface = Enum.SurfaceType.Smooth
  86. Part_1.Parent = Model_2
  87.  
  88. Weld_1.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  89. Weld_1.C1 = CFrame.new(-11.57,-0.5,-5.494,0,-1,0,0,0,1,-1,0,0)
  90. Weld_1.Part0 = Part
  91. Weld_1.Part1 = Part_1
  92. Weld_1.Parent = Part_1
  93.  
  94. table.insert(functions,sandbox(Script,function()
  95. local trapPart = script.Parent
  96. local function onPartTouch(otherPart)
  97. local partParent = otherPart.Parent
  98. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  99. if ( humanoid ) then
  100. -- Set player's health to 0
  101. humanoid.Health = 0
  102. end
  103. end
  104. trapPart.Touched:Connect(onPartTouch)
  105. end))
  106. Script.Parent = Part_1
  107.  
  108. Part_2.Anchored = true
  109. Part_2.BottomSurface = Enum.SurfaceType.Smooth
  110. Part_2.CFrame = CFrame.new(-52.703,1.47,77.56,0,0,1,0,1,0,-1,0,0)
  111. Part_2.Color = Color3.new(1,0,0)
  112. Part_2.Locked = true
  113. Part_2.Size = Vector3.new(20.84,1,2)
  114. Part_2.TopSurface = Enum.SurfaceType.Smooth
  115. Part_2.Parent = Model_2
  116.  
  117. Weld_2.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  118. Weld_2.C1 = CFrame.new(-11.57,-0.5,-19.307,0,-1,0,0,0,1,-1,0,0)
  119. Weld_2.Part0 = Part
  120. Weld_2.Part1 = Part_2
  121. Weld_2.Parent = Part_2
  122.  
  123. table.insert(functions,sandbox(Script_1,function()
  124. local trapPart = script.Parent
  125. local function onPartTouch(otherPart)
  126. local partParent = otherPart.Parent
  127. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  128. if ( humanoid ) then
  129. -- Set player's health to 0
  130. humanoid.Health = 0
  131. end
  132. end
  133. trapPart.Touched:Connect(onPartTouch)
  134. end))
  135. Script_1.Parent = Part_2
  136.  
  137. Part_3.Anchored = true
  138. Part_3.BottomSurface = Enum.SurfaceType.Smooth
  139. Part_3.CFrame = CFrame.new(-50.565,29.235,77.595,1,0,0,0,1,0,0,0,1)
  140. Part_3.CanCollide = false
  141. Part_3.Locked = true
  142. Part_3.Material = Enum.Material.ForceField
  143. Part_3.Size = Vector3.new(34.59,1.23,25.31)
  144. Part_3.TopSurface = Enum.SurfaceType.Smooth
  145. Part_3.Parent = Model_2
  146.  
  147. Part_4.Anchored = true
  148. Part_4.BottomSurface = Enum.SurfaceType.Smooth
  149. Part_4.CFrame = CFrame.new(-57.631,1.47,77.56,0,0,1,0,1,0,-1,0,0)
  150. Part_4.Color = Color3.new(1,0,0)
  151. Part_4.Locked = true
  152. Part_4.Size = Vector3.new(20.84,1,2)
  153. Part_4.TopSurface = Enum.SurfaceType.Smooth
  154. Part_4.Parent = Model_2
  155.  
  156. table.insert(functions,sandbox(Script_2,function()
  157. local trapPart = script.Parent
  158. local function onPartTouch(otherPart)
  159. local partParent = otherPart.Parent
  160. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  161. if ( humanoid ) then
  162. -- Set player's health to 0
  163. humanoid.Health = 0
  164. end
  165. end
  166. trapPart.Touched:Connect(onPartTouch)
  167. end))
  168. Script_2.Parent = Part_4
  169.  
  170. Weld_3.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  171. Weld_3.C1 = CFrame.new(-11.57,-0.5,-14.379,0,-1,0,0,0,1,-1,0,0)
  172. Weld_3.Part0 = Part
  173. Weld_3.Part1 = Part_4
  174. Weld_3.Parent = Part_4
  175.  
  176. Part_5.Anchored = true
  177. Part_5.BottomSurface = Enum.SurfaceType.Smooth
  178. Part_5.CFrame = CFrame.new(-48.31,1.47,77.56,0,0,1,0,1,0,-1,0,0)
  179. Part_5.Color = Color3.new(1,0,0)
  180. Part_5.Locked = true
  181. Part_5.Size = Vector3.new(20.84,1,2)
  182. Part_5.TopSurface = Enum.SurfaceType.Smooth
  183. Part_5.Parent = Model_2
  184.  
  185. Weld_4.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  186. Weld_4.C1 = CFrame.new(-11.57,-0.5,-23.7,0,-1,0,0,0,1,-1,0,0)
  187. Weld_4.Part0 = Part
  188. Weld_4.Part1 = Part_5
  189. Weld_4.Parent = Part_5
  190.  
  191. table.insert(functions,sandbox(Script_3,function()
  192. local trapPart = script.Parent
  193. local function onPartTouch(otherPart)
  194. local partParent = otherPart.Parent
  195. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  196. if ( humanoid ) then
  197. -- Set player's health to 0
  198. humanoid.Health = 0
  199. end
  200. end
  201. trapPart.Touched:Connect(onPartTouch)
  202. end))
  203. Script_3.Parent = Part_5
  204.  
  205. Part_6.Anchored = true
  206. Part_6.BottomSurface = Enum.SurfaceType.Smooth
  207. Part_6.CFrame = CFrame.new(-51.13,15.405,89.237,1,0,0,0,1,0,0,0,1)
  208. Part_6.Locked = true
  209. Part_6.Material = Enum.Material.ForceField
  210. Part_6.Size = Vector3.new(33.44,28.87,2.08)
  211. Part_6.TopSurface = Enum.SurfaceType.Smooth
  212. Part_6.Parent = Model_2
  213.  
  214. Weld_5.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  215. Weld_5.C1 = CFrame.new(-20.88,-14.435,-0.107,-1,0,0,0,0,1,0,1,0)
  216. Weld_5.Part0 = Part
  217. Weld_5.Part1 = Part_6
  218. Weld_5.Parent = Part_6
  219.  
  220. Part_7.Anchored = true
  221. Part_7.BottomSurface = Enum.SurfaceType.Smooth
  222. Part_7.CFrame = CFrame.new(-33.84,15.415,77.595,1,0,0,0,1,0,0,0,1)
  223. Part_7.Locked = true
  224. Part_7.Material = Enum.Material.ForceField
  225. Part_7.Size = Vector3.new(1.14,28.87,25.31)
  226. Part_7.TopSurface = Enum.SurfaceType.Smooth
  227. Part_7.Parent = Model_2
  228.  
  229. Weld_6.C0 = CFrame.new(16.72,-14.435,1.04,0,0,1,0,1,0,-1,0,0)
  230. Weld_6.C1 = CFrame.new(-0.57,-14.445,12.682,0,0,1,0,1,0,-1,0,0)
  231. Weld_6.Part0 = Part_6
  232. Weld_6.Part1 = Part_7
  233. Weld_6.Parent = Part_7
  234.  
  235. Weld_7.C0 = CFrame.new(16.78,-14.435,1.04,0,0,1,0,1,0,-1,0,0)
  236. Weld_7.C1 = CFrame.new(-0.57,-14.445,-10.73,0,0,1,0,1,0,-1,0,0)
  237. Weld_7.Part0 = Part_8
  238. Weld_7.Part1 = Part_7
  239. Weld_7.Parent = Part_7
  240.  
  241. Weld_8.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  242. Weld_8.C1 = CFrame.new(-38.17,-14.445,11.535,-1,0,0,0,0,1,0,1,0)
  243. Weld_8.Part0 = Part
  244. Weld_8.Part1 = Part_7
  245. Weld_8.Parent = Part_7
  246.  
  247. Part_8.Anchored = true
  248. Part_8.BottomSurface = Enum.SurfaceType.Smooth
  249. Part_8.CFrame = CFrame.new(-51.19,15.405,65.825,1,0,0,0,1,0,0,0,1)
  250. Part_8.Locked = true
  251. Part_8.Material = Enum.Material.ForceField
  252. Part_8.Size = Vector3.new(33.56,28.87,2.08)
  253. Part_8.TopSurface = Enum.SurfaceType.Smooth
  254. Part_8.Parent = Model_2
  255.  
  256. Weld_9.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  257. Weld_9.C1 = CFrame.new(-20.82,-14.435,23.305,-1,0,0,0,0,1,0,1,0)
  258. Weld_9.Part0 = Part
  259. Weld_9.Part1 = Part_8
  260. Weld_9.Parent = Part_8
  261.  
  262. Part_9.Anchored = true
  263. Part_9.BottomSurface = Enum.SurfaceType.Smooth
  264. Part_9.CFrame = CFrame.new(-62.395,1.47,77.56,0,0,1,0,1,0,-1,0,0)
  265. Part_9.Color = Color3.new(1,0,0)
  266. Part_9.Locked = true
  267. Part_9.Size = Vector3.new(20.84,1,2)
  268. Part_9.TopSurface = Enum.SurfaceType.Smooth
  269. Part_9.Parent = Model_2
  270.  
  271. table.insert(functions,sandbox(Script_4,function()
  272. local trapPart = script.Parent
  273. local function onPartTouch(otherPart)
  274. local partParent = otherPart.Parent
  275. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  276. if ( humanoid ) then
  277. -- Set player's health to 0
  278. humanoid.Health = 0
  279. end
  280. end
  281. trapPart.Touched:Connect(onPartTouch)
  282. end))
  283. Script_4.Parent = Part_9
  284.  
  285. Weld_10.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
  286. Weld_10.C1 = CFrame.new(-11.57,-0.5,-9.615,0,-1,0,0,0,1,-1,0,0)
  287. Weld_10.Part0 = Part
  288. Weld_10.Part1 = Part_9
  289. Weld_10.Parent = Part_9
  290.  
  291. SpawnLocation.Anchored = true
  292. SpawnLocation.BottomSurface = Enum.SurfaceType.Smooth
  293. SpawnLocation.CFrame = CFrame.new(-40.595,0.399,72.43,1,0,0,0,1,0,0,0,1)
  294. SpawnLocation.Color = Color3.new(0.294,0.592,0.294)
  295. SpawnLocation.Locked = true
  296. SpawnLocation.Material = Enum.Material.Metal
  297. SpawnLocation.Size = Vector3.new(8.25,1,7.57)
  298. SpawnLocation.TopSurface = Enum.SurfaceType.Smooth
  299. SpawnLocation.Parent = Model_1
  300.  
  301. Decal.Texture = "rbxasset://textures/SpawnLocation.png"
  302. Decal.Face = Enum.NormalId.Top
  303. Decal.Parent = SpawnLocation
  304.  
  305. SpawnLocation_1.Anchored = true
  306. SpawnLocation_1.BottomSurface = Enum.SurfaceType.Smooth
  307. SpawnLocation_1.CFrame = CFrame.new(-40.595,0.399,85.053,1,0,0,0,1,0,0,0,1)
  308. SpawnLocation_1.Color = Color3.new(0.294,0.592,0.294)
  309. SpawnLocation_1.Locked = true
  310. SpawnLocation_1.Material = Enum.Material.Metal
  311. SpawnLocation_1.Size = Vector3.new(8.25,1,7.57)
  312. SpawnLocation_1.TopSurface = Enum.SurfaceType.Smooth
  313. SpawnLocation_1.Parent = Model_1
  314.  
  315. Decal_1.Texture = "rbxasset://textures/SpawnLocation.png"
  316. Decal_1.Face = Enum.NormalId.Top
  317. Decal_1.Parent = SpawnLocation_1
  318.  
  319.  
  320. for i,v in ipairs(functions) do
  321. spawn(function()
  322. pcall(v)
  323. end)
  324. end
  325. for i,v in ipairs(mas:GetChildren()) do
  326. v.Parent = workspace
  327. end
  328. mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement