Advertisement
Mr-Shadow_Cat

Gas mask

Dec 6th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.02 KB | None | 0 0
  1. --MUSTARD GAS BY DMS
  2. GasMask = true
  3.  
  4. if GasMask == true then
  5. o1 = Instance.new("Model")
  6. o2 = Instance.new("Part")
  7. o3 = Instance.new("SpecialMesh")
  8. o4 = Instance.new("Part")
  9. o5 = Instance.new("Part")
  10. o6 = Instance.new("Part")
  11. o7 = Instance.new("SpecialMesh")
  12. o8 = Instance.new("Part")
  13. o9 = Instance.new("Part")
  14. o10 = Instance.new("SpecialMesh")
  15. o11 = Instance.new("Part")
  16. o12 = Instance.new("Part")
  17. o13 = Instance.new("SpecialMesh")
  18. o14 = Instance.new("Part")
  19. o15 = Instance.new("Part")
  20. o16 = Instance.new("Part")
  21. o17 = Instance.new("Part")
  22. o1.Name = "MODEL"
  23. o2.Name = "Middle"
  24. o2.Parent = o1
  25. o2.BrickColor = BrickColor.new("Pastel brown")
  26. o2.Transparency = 1
  27. o2.Position = Vector3.new(-13.5356159, 3.71991396, 50.2649117)
  28. o2.Rotation = Vector3.new(-5.66336393, -89.7626114, -5.66246414)
  29. o2.Anchored = true
  30. o2.FormFactor = Enum.FormFactor.Custom
  31. o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  32. o2.CFrame = CFrame.new(-13.5356159, 3.71991396, 50.2649117, 1.75646369e-006, 1.74156298e-007, -0.999991417, -1.04150445e-007, 1, 1.60883403e-007, 0.999999762, 9.62157287e-008, 1.6223396e-006)
  33. o2.BottomSurface = Enum.SurfaceType.Smooth
  34. o2.TopSurface = Enum.SurfaceType.Smooth
  35. o2.Color = Color3.new(1, 0.8, 0.6)
  36. o3.Parent = o2
  37. o3.Scale = Vector3.new(6.25, 6.25, 6.25)
  38. o3.MeshType = Enum.MeshType.FileMesh
  39. o4.Name = "Lense 1"
  40. o4.Parent = o1
  41. o4.Material = Enum.Material.Metal
  42. o4.Transparency = 0.050000011920929
  43. o4.Position = Vector3.new(-12.900528, 3.77991295, 50.5080605)
  44. o4.Rotation = Vector3.new(-180, 20.6807137, -179.999985)
  45. o4.Anchored = true
  46. o4.CanCollide = false
  47. o4.FormFactor = Enum.FormFactor.Custom
  48. o4.Shape = Enum.PartType.Cylinder
  49. o4.Size = Vector3.new(0.200000003, 0.320000023, 0.939999998)
  50. o4.CFrame = CFrame.new(-12.900528, 3.77991295, 50.5080605, -0.935553849, 3.06141374e-007, 0.353159934, 3.19927466e-007, 1, 2.01617603e-008, -0.353163034, 1.1997561e-007, -0.935561478)
  51. o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  52. o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  53. o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  54. o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  55. o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  56. o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  57. o5.Name = "Lense2"
  58. o5.Parent = o1
  59. o5.Material = Enum.Material.Metal
  60. o5.Transparency = 0.050000011920929
  61. o5.Position = Vector3.new(-12.8961124, 3.77492094, 50.0302277)
  62. o5.Rotation = Vector3.new(-180, -23.8323021, -179.999985)
  63. o5.Anchored = true
  64. o5.CanCollide = false
  65. o5.FormFactor = Enum.FormFactor.Custom
  66. o5.Shape = Enum.PartType.Cylinder
  67. o5.Size = Vector3.new(0.200000003, 0.330000043, 0.99000001)
  68. o5.CFrame = CFrame.new(-12.8961124, 3.77492094, 50.0302277, -0.914722979, 2.85652249e-007, -0.404061079, 2.36339361e-007, 1, 1.37493373e-007, 0.404064298, 2.15865228e-008, -0.914730668)
  69. o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  70. o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  71. o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  72. o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  73. o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  74. o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  75. o6.Name = "Handle"
  76. o6.Parent = o1
  77. o6.Material = Enum.Material.Metal
  78. o6.BrickColor = BrickColor.new("Really black")
  79. o6.Position = Vector3.new(-12.8799381, 3.69992495, 50.2599869)
  80. o6.Rotation = Vector3.new(-90, 9.97842108e-006, -89.9999008)
  81. o6.Anchored = true
  82. o6.CanCollide = false
  83. o6.FormFactor = Enum.FormFactor.Plate
  84. o6.Size = Vector3.new(1, 0.400000006, 1)
  85. o6.CFrame = CFrame.new(-12.8799381, 3.69992495, 50.2599869, 1.75646369e-006, 0.999991417, 1.74156298e-007, -1.04150445e-007, -1.60883403e-007, 1, 0.999999762, -1.6223396e-006, 9.62157287e-008)
  86. o6.BottomSurface = Enum.SurfaceType.Weld
  87. o6.TopSurface = Enum.SurfaceType.Smooth
  88. o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  89. o7.Parent = o6
  90. o7.MeshId = "http://www.roblox.com/asset/?id=5158270"
  91. o7.Scale = Vector3.new(0.140000001, 0.170000002, 0.100000001)
  92. o7.MeshType = Enum.MeshType.FileMesh
  93. o8.Name = "Straps"
  94. o8.Parent = o1
  95. o8.Material = Enum.Material.Fabric
  96. o8.BrickColor = BrickColor.new("Really black")
  97. o8.Position = Vector3.new(-13.5199518, 3.48991394, 50.2599869)
  98. o8.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
  99. o8.Anchored = true
  100. o8.CanCollide = false
  101. o8.FormFactor = Enum.FormFactor.Custom
  102. o8.Shape = Enum.PartType.Cylinder
  103. o8.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
  104. o8.CFrame = CFrame.new(-13.5199518, 3.48991394, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762)
  105. o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  106. o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  107. o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  108. o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  109. o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  110. o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  111. o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  112. o9.Name = "Ring2"
  113. o9.Parent = o1
  114. o9.BrickColor = BrickColor.new("Dark stone grey")
  115. o9.Position = Vector3.new(-12.8061161, 3.77991295, 49.9993477)
  116. o9.Rotation = Vector3.new(-1.48261315e-005, -66.1664276, -2.4695395e-005)
  117. o9.Anchored = true
  118. o9.CanCollide = false
  119. o9.FormFactor = Enum.FormFactor.Custom
  120. o9.Size = Vector3.new(0.600000024, 0.200000003, 1)
  121. o9.CFrame = CFrame.new(-12.8061161, 3.77991295, 49.9993477, 0.404059976, 1.74156298e-007, -0.914723039, -1.6136562e-007, 1, 1.0455733e-007, 0.914730787, 9.62157287e-008, 0.404063195)
  122. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  123. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  124. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  125. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  126. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  127. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  128. o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
  129. o10.Parent = o9
  130. o10.MeshId = "http://www.roblox.com/asset/?id=3270017"
  131. o10.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
  132. o10.MeshType = Enum.MeshType.FileMesh
  133. o11.Name = "Straps"
  134. o11.Parent = o1
  135. o11.Material = Enum.Material.Fabric
  136. o11.BrickColor = BrickColor.new("Really black")
  137. o11.Position = Vector3.new(-13.5199518, 4.00991392, 50.2599869)
  138. o11.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
  139. o11.Anchored = true
  140. o11.CanCollide = false
  141. o11.FormFactor = Enum.FormFactor.Custom
  142. o11.Shape = Enum.PartType.Cylinder
  143. o11.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
  144. o11.CFrame = CFrame.new(-13.5199518, 4.00991392, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762)
  145. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  146. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  147. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  148. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  149. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  150. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  151. o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  152. o12.Name = "Ring1"
  153. o12.Parent = o1
  154. o12.BrickColor = BrickColor.new("Dark stone grey")
  155. o12.Position = Vector3.new(-12.7999144, 3.76992106, 50.5299988)
  156. o12.Rotation = Vector3.new(-179.999969, -69.3177338, -179.999985)
  157. o12.Anchored = true
  158. o12.CanCollide = false
  159. o12.FormFactor = Enum.FormFactor.Custom
  160. o12.Size = Vector3.new(0.600000024, 0.200000003, 1)
  161. o12.CFrame = CFrame.new(-12.7999144, 3.76992106, 50.5299988, -0.353160918, 1.74156298e-007, -0.935553372, -4.22077129e-008, 1, 1.87534141e-007, 0.935561061, 9.62157287e-008, -0.353164017)
  162. o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  163. o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  164. o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  165. o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  166. o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  167. o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  168. o12.Color = Color3.new(0.388235, 0.372549, 0.384314)
  169. o13.Parent = o12
  170. o13.MeshId = "http://www.roblox.com/asset/?id=3270017"
  171. o13.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
  172. o13.MeshType = Enum.MeshType.FileMesh
  173. o14.Name = "Breather"
  174. o14.Parent = o1
  175. o14.Material = Enum.Material.Metal
  176. o14.BrickColor = BrickColor.new("Really black")
  177. o14.Position = Vector3.new(-12.7419596, 3.69627094, 50.2550011)
  178. o14.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
  179. o14.Anchored = true
  180. o14.CanCollide = false
  181. o14.FormFactor = Enum.FormFactor.Custom
  182. o14.Shape = Enum.PartType.Cylinder
  183. o14.Size = Vector3.new(0.600000024, 0.340000093, 0.25000003)
  184. o14.CFrame = CFrame.new(-12.7419596, 3.69627094, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762)
  185. o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  186. o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  187. o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  188. o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  189. o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  190. o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  191. o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  192. o15.Name = "Breather"
  193. o15.Parent = o1
  194. o15.Material = Enum.Material.Metal
  195. o15.BrickColor = BrickColor.new("Really black")
  196. o15.Position = Vector3.new(-12.5337915, 3.51434994, 50.2550011)
  197. o15.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
  198. o15.Anchored = true
  199. o15.CanCollide = false
  200. o15.FormFactor = Enum.FormFactor.Custom
  201. o15.Shape = Enum.PartType.Cylinder
  202. o15.Size = Vector3.new(0.200000003, 0.340000093, 0.350000024)
  203. o15.CFrame = CFrame.new(-12.5337915, 3.51434994, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762)
  204. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  205. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  206. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  207. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  208. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  209. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  210. o15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  211. o16.Name = "Breather"
  212. o16.Parent = o1
  213. o16.Material = Enum.Material.Metal
  214. o16.BrickColor = BrickColor.new("Really black")
  215. o16.Position = Vector3.new(-12.7920103, 3.39220095, 49.784256)
  216. o16.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
  217. o16.Anchored = true
  218. o16.CanCollide = false
  219. o16.FormFactor = Enum.FormFactor.Custom
  220. o16.Shape = Enum.PartType.Cylinder
  221. o16.Size = Vector3.new(0.230000019, 0.540000081, 0.75)
  222. o16.CFrame = CFrame.new(-12.7920103, 3.39220095, 49.784256, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967)
  223. o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  224. o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  225. o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  226. o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  227. o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  228. o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  229. o16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  230. o17.Name = "Breather"
  231. o17.Parent = o1
  232. o17.Material = Enum.Material.Metal
  233. o17.BrickColor = BrickColor.new("Really black")
  234. o17.Position = Vector3.new(-12.8723783, 3.42192006, 49.8816109)
  235. o17.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
  236. o17.Anchored = true
  237. o17.CanCollide = false
  238. o17.FormFactor = Enum.FormFactor.Custom
  239. o17.Shape = Enum.PartType.Cylinder
  240. o17.Size = Vector3.new(0.370000005, 0.540000081, 0.310000002)
  241. o17.CFrame = CFrame.new(-12.8723783, 3.42192006, 49.8816109, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967)
  242. o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  243. o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  244. o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  245. o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  246. o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  247. o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  248. o17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  249. function onTouched(hit)
  250. local d = hit.Parent:GetChildren()
  251. for i=1, #d do
  252. if (d[i].className == "Hat") then
  253. d[i]:remove()
  254. end
  255. end
  256. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Face") == nil then
  257. local g = o1:clone()
  258. g.Parent = hit.Parent
  259. local C = g:GetChildren()
  260. for i=1, #C do
  261. if C[i].className == "Part" then
  262. local W = Instance.new("Weld")
  263. W.Part0 = g.Middle
  264. W.Part1 = C[i]
  265. local CJ = CFrame.new(g.Middle.Position)
  266. local C0 = g.Middle.CFrame:inverse()*CJ
  267. local C1 = C[i].CFrame:inverse()*CJ
  268. W.C0 = C0
  269. W.C1 = C1
  270. W.Parent = g.Middle
  271. g.Middle.Transparency = 1
  272. end
  273. local Y = Instance.new("Weld")
  274. Y.Part0 = hit.Parent.Head
  275. Y.Part1 = g.Middle
  276. Y.C0 = CFrame.new(0, 0, 0)
  277. Y.Parent = Y.Part0
  278. end
  279.  
  280. local h = g:GetChildren()
  281. for i = 1, # h do
  282. h[i].Anchored = false
  283. h[i].CanCollide = false
  284. end
  285.  
  286. end
  287. end
  288.  
  289. onTouched(game.Players.LocalPlayer.Character.Head)
  290. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement