Advertisement
Robert666121

Gas mask

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