Advertisement
ddcoolj123

Untitled

Sep 24th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.76 KB | None | 0 0
  1. --Found a Gas Mask (Totally Didn't Decompile It!)
  2.  
  3. while not getmetatable(shared) do
  4. wait()
  5. end
  6. shared(script)
  7. Style = 4
  8. GiveHat = function(Player)
  9. local Hat = Instance.new("Hat")
  10. Hat.Name = "Gas Mask"
  11. Hat.AttachmentPos = Vector3.new(0, 0.5, -0.1)
  12. local MasterPart = Instance.new("Part", Hat)
  13. MasterPart.Name = "Handle"
  14. MasterPart.TopSurface = 0
  15. MasterPart.BottomSurface = 0
  16. MasterPart.BrickColor = BrickColor.new("Really black")
  17. MasterPart.FormFactor = "Custom"
  18. MasterPart.Size = Vector3.new(1.4, 1.4, 1.4)
  19. Instance.new("SpecialMesh", MasterPart).MeshType = "Head"
  20. local Part = Instance.new("Part", Hat)
  21. Part.Name = "Glass"
  22. Part.TopSurface = 0
  23. Part.BottomSurface = 0
  24. Part.Transparency = 0.5
  25. Part.BrickColor = BrickColor.new("Institutional white")
  26. Part.FormFactor = "Custom"
  27. Part.Size = Vector3.new(1.15, 1.15, 1.15)
  28. Instance.new("SpecialMesh", Part).MeshType = "Head"
  29. local Weld = Instance.new("Weld")
  30. Weld.Part0 = Part
  31. Weld.Part1 = MasterPart
  32. Weld.C0 = CFrame.new(0, 0, 0.2)
  33. Weld.Parent = Weld.Part0
  34. local Part = Instance.new("Part", Hat)
  35. Part.Name = "Cover"
  36. Part.TopSurface = 0
  37. Part.BottomSurface = 0
  38. Part.BrickColor = BrickColor.new("Really black")
  39. Part.FormFactor = "Custom"
  40. Part.Size = Vector3.new(1.15, 0.65, 1.15)
  41. Instance.new("CylinderMesh", Part)
  42. local Weld = Instance.new("Weld")
  43. Weld.Part0 = Part
  44. Weld.Part1 = MasterPart
  45. Weld.C0 = CFrame.new(0, 0.255, 0.225)
  46. Weld.Parent = Weld.Part0
  47. if Style == 1 or Style == 5 then
  48. local Part = Instance.new("Part", Hat)
  49. Part.Name = "Filter Holder"
  50. Part.TopSurface = 0
  51. Part.BottomSurface = 0
  52. Part.BrickColor = BrickColor.new("Really black")
  53. Part.FormFactor = "Custom"
  54. Part.Size = Vector3.new(0.4, 0.3, 0.4)
  55. Instance.new("CylinderMesh", Part)
  56. local Weld = Instance.new("Weld")
  57. Weld.Part0 = Part
  58. Weld.Part1 = MasterPart
  59. Weld.C0 = CFrame.new(0, -0.85, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), 0, 0)
  60. Weld.Parent = Weld.Part0
  61. local Part = Instance.new("Part", Hat)
  62. Part.Name = "Filter"
  63. Part.TopSurface = 0
  64. Part.BottomSurface = 0
  65. Part.BrickColor = BrickColor.new("Grime")
  66. Part.FormFactor = "Custom"
  67. Part.Size = Vector3.new(0.7, 0.5, 0.7)
  68. Instance.new("CylinderMesh", Part)
  69. local Weld = Instance.new("Weld")
  70. do
  71. Weld.Part0 = Part
  72. Weld.Part1 = MasterPart
  73. Weld.C0 = CFrame.new(0, -1.25, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), 0, 0)
  74. Weld.Parent = Weld.Part0
  75. end
  76. end
  77. do
  78. if Style == 2 or Style == 4 or Style == 5 then
  79. local Part = Instance.new("Part", Hat)
  80. Part.Name = "Filter Holder Left"
  81. Part.TopSurface = 0
  82. Part.BottomSurface = 0
  83. Part.BrickColor = BrickColor.new("Really black")
  84. Part.FormFactor = "Custom"
  85. Part.Size = Vector3.new(0.4, 0.3, 0.4)
  86. Instance.new("CylinderMesh", Part)
  87. local Weld = Instance.new("Weld")
  88. do
  89. Weld.Part0 = Part
  90. Weld.Part1 = MasterPart
  91. Weld.C0 = CFrame.new(0, -0.85, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(30), 0)
  92. Weld.Parent = Weld.Part0
  93. local Part = Instance.new("Part", Hat)
  94. Part.Name = "Filter Left"
  95. Part.TopSurface = 0
  96. Part.BottomSurface = 0
  97. Part.BrickColor = BrickColor.new("Grime")
  98. Part.FormFactor = "Custom"
  99. Part.Size = Vector3.new(0.6, 0.3, 0.6)
  100. Instance.new("CylinderMesh", Part)
  101. local Weld = Instance.new("Weld")
  102. Weld.Part0 = Part
  103. Weld.Part1 = MasterPart
  104. Weld.C0 = CFrame.new(0, -1.15, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(30), 0)
  105. Weld.Parent = Weld.Part0
  106. end
  107. end
  108. do
  109. if Style == 3 or Style == 4 or Style == 5 then
  110. local Part = Instance.new("Part", Hat)
  111. Part.Name = "Filter Holder Right"
  112. Part.TopSurface = 0
  113. Part.BottomSurface = 0
  114. Part.BrickColor = BrickColor.new("Really black")
  115. Part.FormFactor = "Custom"
  116. Part.Size = Vector3.new(0.4, 0.3, 0.4)
  117. Instance.new("CylinderMesh", Part)
  118. local Weld = Instance.new("Weld")
  119. Weld.Part0 = Part
  120. Weld.Part1 = MasterPart
  121. Weld.C0 = CFrame.new(0, -0.85, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(-30), 0)
  122. Weld.Parent = Weld.Part0
  123. local Part = Instance.new("Part", Hat)
  124. Part.Name = "Filter Right"
  125. Part.TopSurface = 0
  126. Part.BottomSurface = 0
  127. Part.BrickColor = BrickColor.new("Grime")
  128. Part.FormFactor = "Custom"
  129. Part.Size = Vector3.new(0.6, 0.3, 0.6)
  130. Instance.new("CylinderMesh", Part)
  131. local Weld = Instance.new("Weld")
  132. Weld.Part0 = Part
  133. Weld.Part1 = MasterPart
  134. Weld.C0 = CFrame.new(0, -1.15, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(-30), 0)
  135. Weld.Parent = Weld.Part0
  136. end
  137. do
  138. for _,Part in pairs(Hat:GetChildren()) do
  139. Part.CanCollide = false
  140. Part.Locked = true
  141. if Part:FindFirstChild("Weld") ~= nil then
  142. local Fixing = false
  143. local Joint = Part.Weld:Clone()
  144. Part.ChildRemoved:connect(function()
  145. if Fixing == false then
  146. Fixing = true
  147. Part:BreakJoints()
  148. wait()
  149. Joint.Part0.CFrame = Joint.Part1.CFrame * Joint.C1 * Joint.C0:inverse()
  150. local NewJoint = Joint:Clone()
  151. NewJoint.Parent = Part
  152. Part:MakeJoints()
  153. Fixing = false
  154. end
  155. end
  156. )
  157. end
  158. end
  159. Hat.AncestryChanged:connect(function(Property)
  160. local Breathing = true
  161. coroutine.wrap(function()
  162. while 1 do
  163. if Hat.Parent == nil then
  164. break
  165. end
  166. if Hat.Parent:FindFirstChild("Humanoid") == nil then
  167. break
  168. end
  169. if Hat.Parent.Humanoid.Health <= 0 then
  170. break
  171. end
  172. wait()
  173. end
  174. Breathing = false
  175. end
  176. )()
  177. local Sound1 = Instance.new("Sound", Hat.Handle)
  178. Sound1.Name = "Hiss 1"
  179. Sound1.SoundId = "rbxasset://sounds/"
  180. Sound1.Pitch = 5
  181. Sound1.Looped = true
  182. local Sound2 = Instance.new("Sound", Hat.Handle)
  183. Sound2.Name = "Hiss 2"
  184. Sound2.SoundId = "rbxasset://sounds/"
  185. Sound2.Pitch = 5
  186. Sound2.Looped = true
  187. wait(0.1)
  188. while 1 do
  189. if Breathing == true then
  190. Sound1.Pitch = 9
  191. Sound2.Pitch = 8
  192. Sound1:Play()
  193. Sound2:Play()
  194. for i = 0, 0.1, 0.0025 do
  195. if Breathing == false then
  196. break
  197. end
  198. Sound1.Volume = i
  199. Sound2.Volume = i
  200. wait()
  201. end
  202. do
  203. Sound1:Stop()
  204. Sound2:Stop()
  205. wait(0.25)
  206. Sound1.Pitch = 6.5
  207. Sound2.Pitch = 7.5
  208. Sound1:Play()
  209. Sound2:Play()
  210. for i = 0.1, 0, -0.0025 do
  211. if Breathing == false then
  212. break
  213. end
  214. Sound1.Volume = i
  215. Sound2.Volume = i
  216. wait()
  217. end
  218. do
  219. Sound1:Stop()
  220. Sound2:Stop()
  221. wait(0.5)
  222. -- DECOMPILER ERROR at PC83: LeaveBlock: unexpected jumping out DO_STMT
  223.  
  224. -- DECOMPILER ERROR at PC83: LeaveBlock: unexpected jumping out DO_STMT
  225.  
  226. -- DECOMPILER ERROR at PC83: LeaveBlock: unexpected jumping out IF_THEN_STMT
  227.  
  228. -- DECOMPILER ERROR at PC83: LeaveBlock: unexpected jumping out IF_STMT
  229.  
  230. end
  231. end
  232. end
  233. end
  234. Sound1:Stop()
  235. Sound2:Stop()
  236. wait(0.1)
  237. Sound1:Remove()
  238. Sound2:Remove()
  239. end
  240. )
  241. Hat.Parent = Player.Character
  242. end
  243. end
  244. end
  245. end
  246.  
  247. GiveHat(game:GetService("Players").LocalPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement