Advertisement
Unicornelias

Untitled

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