Advertisement
EdgyHedgehog

Mustard gas

Dec 23rd, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.96 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. --MUSTARD GAS BY DMS
  84. GasMask = true
  85. xd = Instance.new("Tool")
  86. xdd = Instance.new("Part")
  87. xddd = Instance.new("Part")
  88. xdddd = Instance.new("Part")
  89. xddddd = Instance.new("Smoke")
  90. xdddddd = Instance.new("Smoke")
  91. xddddddd = Instance.new("Smoke")
  92. xdddddddd = Instance.new("Part")
  93. xddddddddd = Instance.new("Part")
  94. xd0 = Instance.new("Part")
  95. xd.Name = "Mustard Gas Grenade"
  96. xd.Parent = game.owner.Backpack
  97. xdd.Parent = xd
  98. xdd.Material = Enum.Material.SmoothPlastic
  99. xdd.BrickColor = BrickColor.new("Deep orange")
  100. xdd.Position = Vector3.new(-9.08949184, 0.563135147, 33.200779)
  101. xdd.Rotation = Vector3.new(-0, 0, -90)
  102. xdd.CanCollide = false
  103. xdd.Shape = Enum.PartType.Cylinder
  104. xdd.Size = Vector3.new(0.26000011, 0.819999993, 1)
  105. xdd.CFrame = CFrame.new(-9.08949184, 0.563135147, 33.200779, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  106. xdd.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  107. xdd.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  108. xdd.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  109. xdd.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  110. xdd.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  111. xdd.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  112. xdd.Color = Color3.new(1, 0.686275, 0)
  113. xddd.Parent = xd
  114. xddd.Material = Enum.Material.SmoothPlastic
  115. xddd.BrickColor = BrickColor.new("Really black")
  116. xddd.Position = Vector3.new(-9.09000397, 0.615009904, 33.2000046)
  117. xddd.Rotation = Vector3.new(-0, 0, 90)
  118. xddd.CanCollide = false
  119. xddd.Shape = Enum.PartType.Cylinder
  120. xddd.Size = Vector3.new(1.21000016, 0.799999952, 1)
  121. xddd.CFrame = CFrame.new(-9.09000397, 0.615009904, 33.2000046, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  122. xddd.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  123. xddd.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  124. xddd.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  125. xddd.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  126. xddd.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  127. xddd.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  128. xddd.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  129. xdddd.Parent = xd
  130. xdddd.Material = Enum.Material.SmoothPlastic
  131. xdddd.BrickColor = BrickColor.new("Dark stone grey")
  132. xdddd.Position = Vector3.new(-9.09270954, 1.33200657, 33.2021408)
  133. xdddd.CanCollide = false
  134. xdddd.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  135. xdddd.CFrame = CFrame.new(-9.09270954, 1.33200657, 33.2021408, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  136. xdddd.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  137. xdddd.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  138. xdddd.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  139. xdddd.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  140. xdddd.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  141. xdddd.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  142. xdddd.Color = Color3.new(0.388235, 0.372549, 0.384314)
  143. xddddd.Parent = xdddd
  144. xddddd.Color = Color3.new(0.756863, 0.584314, 0.0588235)
  145. xddddd.Opacity = 1
  146. xddddd.RiseVelocity = 4
  147. xdddddd.Parent = xdddd
  148. xdddddd.Color = Color3.new(0.756863, 0.584314, 0.0588235)
  149. xdddddd.Opacity = 1
  150. xdddddd.RiseVelocity = 4
  151. xddddddd.Parent = xdddd
  152. xddddddd.Color = Color3.new(0.756863, 0.584314, 0.0588235)
  153. xddddddd.Opacity = 1
  154. xddddddd.RiseVelocity = 4
  155. xdddddddd.Parent = xd
  156. xdddddddd.Material = Enum.Material.SmoothPlastic
  157. xdddddddd.BrickColor = BrickColor.new("Deep orange")
  158. xdddddddd.Position = Vector3.new(-9.08949184, 0.899091303, 33.200779)
  159. xdddddddd.Rotation = Vector3.new(-0, 0, 90)
  160. xdddddddd.CanCollide = false
  161. xdddddddd.Shape = Enum.PartType.Cylinder
  162. xdddddddd.Size = Vector3.new(0.200000003, 0.819999993, 1)
  163. xdddddddd.CFrame = CFrame.new(-9.08949184, 0.899091303, 33.200779, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  164. xdddddddd.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  165. xdddddddd.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  166. xdddddddd.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  167. xdddddddd.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  168. xdddddddd.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  169. xdddddddd.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  170. xdddddddd.Color = Color3.new(1, 0.686275, 0)
  171. xddddddddd.Parent = xd
  172. xddddddddd.Material = Enum.Material.SmoothPlastic
  173. xddddddddd.BrickColor = BrickColor.new("Black")
  174. xddddddddd.Position = Vector3.new(-9.09270954, 1.26311076, 33.2003593)
  175. xddddddddd.Rotation = Vector3.new(-0, 0, 90)
  176. xddddddddd.CanCollide = false
  177. xddddddddd.Shape = Enum.PartType.Cylinder
  178. xddddddddd.Size = Vector3.new(0.200000003, 0.799999952, 0.540000021)
  179. xddddddddd.CFrame = CFrame.new(-9.09270954, 1.26311076, 33.2003593, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  180. xddddddddd.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  181. xddddddddd.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  182. xddddddddd.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  183. xddddddddd.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  184. xddddddddd.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  185. xddddddddd.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  186. xddddddddd.Color = Color3.new(0.105882, 0.164706, 0.207843)
  187. xd0.Name = "Handle"
  188. xd0.Parent = xd
  189. xd0.BrickColor = BrickColor.new("Earth green")
  190. xd0.Transparency = 1
  191. xd0.Position = Vector3.new(-9.11234188, 0.5, 33.1982155)
  192. xd0.Rotation = Vector3.new(0, 90, 0)
  193. xd0.CanCollide = false
  194. xd0.FormFactor = Enum.FormFactor.Custom
  195. xd0.Size = Vector3.new(0.800000131, 0.920000255, 0.799998164)
  196. xd0.CFrame = CFrame.new(-9.11234188, 0.5, 33.1982155, -0, 0, 1, 0, 1, 0, -1, 0, 0)
  197. xd0.BottomSurface = Enum.SurfaceType.Smooth
  198. xd0.TopSurface = Enum.SurfaceType.Smooth
  199. xd0.Color = Color3.new(0.152941, 0.27451, 0.176471)
  200. KILLPART = Instance.new("Part")
  201. KILLPART.Size = Vector3.new(16,16,16)
  202. KILLPART.Name = "TOUCHPART"
  203. KILLPART.Anchored = true
  204. KILLPART.BrickColor = BrickColor.new("Black")
  205. KILLPART.Transparency = 1
  206. KILLPART.CanCollide = false
  207. KILLPART.CFrame = xd0.CFrame
  208. KILLPART.Parent = workspace
  209. KILLPART.Color = Color3.new(0.105882, 0.164706, 0.207843)
  210. Gas = Instance.new("Sound")
  211. Gas.Parent = xd0
  212. Gas.Volume = 0.8
  213. Gas.Looped = true
  214. Gas.SoundId = "http://www.roblox.com/asset/?id=137065982"
  215. Gas.Pitch = 1
  216. Gas.Name = "Sound"
  217. ison = false
  218. function Weld(x,y)
  219. local W = Instance.new("Weld")
  220. W.Part0 = x
  221. W.Part1 = y
  222. local CJ = CFrame.new(x.Position)
  223. local C0 = x.CFrame:inverse()*CJ
  224. local C1 = y.CFrame:inverse()*CJ
  225. W.C0 = C0
  226. W.C1 = C1
  227. W.Parent = x
  228. end
  229.  
  230. function Get(A)
  231. if A.className == "Part" then
  232. Weld(xd.Handle, A)
  233. A.Anchored = false
  234. A.CanCollide = false
  235. else
  236. local C = A:GetChildren()
  237. for i=1, #C do
  238. Get(C[i])
  239. end
  240. end
  241. end
  242.  
  243. function Finale()
  244. Get(xd)
  245. end
  246. function XDdd ()
  247. ison = true
  248. end
  249. function Xddd ()
  250. ison = false
  251. end function lol () xdg = true Gas.Playing = true KILLPART.Parent = workspace while xdg == true do wait() KILLPART.CFrame = xd0.CFrame end end
  252. function Posijew ()
  253. KILLPART.CFrame = xd0.CFrame
  254. end function loln () KILLPART.Parent = game Gas.Playing = false xdg = false end
  255. xdg = false
  256. xd.Equipped:connect(XDdd)
  257. xd.Unequipped:connect(Xddd)
  258. xd.Equipped:connect(Finale)
  259. xd.Equipped:connect(lol)
  260. xd.Unequipped:connect(loln)
  261. xd.Unequipped:connect(Finale)
  262. Finale()
  263. function Kill (Part)
  264. for i,v in pairs(Part.Parent:GetChildren()) do
  265. if v:IsA("Humanoid") and v.Parent.Name ~= game.Players.LocalPlayer.Name then
  266. v:Destroy()
  267. end end
  268. end
  269. KILLPART.Touched:connect(Kill)
  270. if GasMask == true then
  271. o1 = Instance.new("Model")
  272. o2 = Instance.new("Part")
  273. o3 = Instance.new("SpecialMesh")
  274. o4 = Instance.new("Part")
  275. o5 = Instance.new("Part")
  276. o6 = Instance.new("Part")
  277. o7 = Instance.new("SpecialMesh")
  278. o8 = Instance.new("Part")
  279. o9 = Instance.new("Part")
  280. o10 = Instance.new("SpecialMesh")
  281. o11 = Instance.new("Part")
  282. o12 = Instance.new("Part")
  283. o13 = Instance.new("SpecialMesh")
  284. o14 = Instance.new("Part")
  285. o15 = Instance.new("Part")
  286. o16 = Instance.new("Part")
  287. o17 = Instance.new("Part")
  288. o1.Name = "MODEL"
  289. o2.Name = "Middle"
  290. o2.Parent = o1
  291. o2.BrickColor = BrickColor.new("Pastel brown")
  292. o2.Transparency = 1
  293. o2.Position = Vector3.new(-13.5356159, 3.71991396, 50.2649117)
  294. o2.Rotation = Vector3.new(-5.66336393, -89.7626114, -5.66246414)
  295. o2.Anchored = true
  296. o2.FormFactor = Enum.FormFactor.Custom
  297. o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  298. 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)
  299. o2.BottomSurface = Enum.SurfaceType.Smooth
  300. o2.TopSurface = Enum.SurfaceType.Smooth
  301. o2.Color = Color3.new(1, 0.8, 0.6)
  302. o3.Parent = o2
  303. o3.Scale = Vector3.new(6.25, 6.25, 6.25)
  304. o3.MeshType = Enum.MeshType.FileMesh
  305. o4.Name = "Lense 1"
  306. o4.Parent = o1
  307. o4.Material = Enum.Material.Metal
  308. o4.Transparency = 0.050000011920929
  309. o4.Position = Vector3.new(-12.900528, 3.77991295, 50.5080605)
  310. o4.Rotation = Vector3.new(-180, 20.6807137, -179.999985)
  311. o4.Anchored = true
  312. o4.CanCollide = false
  313. o4.FormFactor = Enum.FormFactor.Custom
  314. o4.Shape = Enum.PartType.Cylinder
  315. o4.Size = Vector3.new(0.200000003, 0.320000023, 0.939999998)
  316. 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)
  317. o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  318. o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  319. o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  320. o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  321. o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  322. o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  323. o5.Name = "Lense2"
  324. o5.Parent = o1
  325. o5.Material = Enum.Material.Metal
  326. o5.Transparency = 0.050000011920929
  327. o5.Position = Vector3.new(-12.8961124, 3.77492094, 50.0302277)
  328. o5.Rotation = Vector3.new(-180, -23.8323021, -179.999985)
  329. o5.Anchored = true
  330. o5.CanCollide = false
  331. o5.FormFactor = Enum.FormFactor.Custom
  332. o5.Shape = Enum.PartType.Cylinder
  333. o5.Size = Vector3.new(0.200000003, 0.330000043, 0.99000001)
  334. 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)
  335. o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  336. o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  337. o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  338. o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  339. o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  340. o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  341. o6.Name = "Handle"
  342. o6.Parent = o1
  343. o6.Material = Enum.Material.Metal
  344. o6.BrickColor = BrickColor.new("Really black")
  345. o6.Position = Vector3.new(-12.8799381, 3.69992495, 50.2599869)
  346. o6.Rotation = Vector3.new(-90, 9.97842108e-006, -89.9999008)
  347. o6.Anchored = true
  348. o6.CanCollide = false
  349. o6.FormFactor = Enum.FormFactor.Plate
  350. o6.Size = Vector3.new(1, 0.400000006, 1)
  351. 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)
  352. o6.BottomSurface = Enum.SurfaceType.Weld
  353. o6.TopSurface = Enum.SurfaceType.Smooth
  354. o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  355. o7.Parent = o6
  356. o7.MeshId = "http://www.roblox.com/asset/?id=5158270"
  357. o7.Scale = Vector3.new(0.140000001, 0.170000002, 0.100000001)
  358. o7.MeshType = Enum.MeshType.FileMesh
  359. o8.Name = "Straps"
  360. o8.Parent = o1
  361. o8.Material = Enum.Material.Fabric
  362. o8.BrickColor = BrickColor.new("Really black")
  363. o8.Position = Vector3.new(-13.5199518, 3.48991394, 50.2599869)
  364. o8.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
  365. o8.Anchored = true
  366. o8.CanCollide = false
  367. o8.FormFactor = Enum.FormFactor.Custom
  368. o8.Shape = Enum.PartType.Cylinder
  369. o8.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
  370. 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)
  371. o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  372. o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  373. o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  374. o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  375. o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  376. o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  377. o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  378. o9.Name = "Ring2"
  379. o9.Parent = o1
  380. o9.BrickColor = BrickColor.new("Dark stone grey")
  381. o9.Position = Vector3.new(-12.8061161, 3.77991295, 49.9993477)
  382. o9.Rotation = Vector3.new(-1.48261315e-005, -66.1664276, -2.4695395e-005)
  383. o9.Anchored = true
  384. o9.CanCollide = false
  385. o9.FormFactor = Enum.FormFactor.Custom
  386. o9.Size = Vector3.new(0.600000024, 0.200000003, 1)
  387. 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)
  388. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  389. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  390. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  391. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  392. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  393. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  394. o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
  395. o10.Parent = o9
  396. o10.MeshId = "http://www.roblox.com/asset/?id=3270017"
  397. o10.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
  398. o10.MeshType = Enum.MeshType.FileMesh
  399. o11.Name = "Straps"
  400. o11.Parent = o1
  401. o11.Material = Enum.Material.Fabric
  402. o11.BrickColor = BrickColor.new("Really black")
  403. o11.Position = Vector3.new(-13.5199518, 4.00991392, 50.2599869)
  404. o11.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
  405. o11.Anchored = true
  406. o11.CanCollide = false
  407. o11.FormFactor = Enum.FormFactor.Custom
  408. o11.Shape = Enum.PartType.Cylinder
  409. o11.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
  410. 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)
  411. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  412. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  413. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  414. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  415. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  416. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  417. o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  418. o12.Name = "Ring1"
  419. o12.Parent = o1
  420. o12.BrickColor = BrickColor.new("Dark stone grey")
  421. o12.Position = Vector3.new(-12.7999144, 3.76992106, 50.5299988)
  422. o12.Rotation = Vector3.new(-179.999969, -69.3177338, -179.999985)
  423. o12.Anchored = true
  424. o12.CanCollide = false
  425. o12.FormFactor = Enum.FormFactor.Custom
  426. o12.Size = Vector3.new(0.600000024, 0.200000003, 1)
  427. 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)
  428. o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  429. o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  430. o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  431. o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  432. o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  433. o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  434. o12.Color = Color3.new(0.388235, 0.372549, 0.384314)
  435. o13.Parent = o12
  436. o13.MeshId = "http://www.roblox.com/asset/?id=3270017"
  437. o13.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
  438. o13.MeshType = Enum.MeshType.FileMesh
  439. o14.Name = "Breather"
  440. o14.Parent = o1
  441. o14.Material = Enum.Material.Metal
  442. o14.BrickColor = BrickColor.new("Really black")
  443. o14.Position = Vector3.new(-12.7419596, 3.69627094, 50.2550011)
  444. o14.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
  445. o14.Anchored = true
  446. o14.CanCollide = false
  447. o14.FormFactor = Enum.FormFactor.Custom
  448. o14.Shape = Enum.PartType.Cylinder
  449. o14.Size = Vector3.new(0.600000024, 0.340000093, 0.25000003)
  450. 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)
  451. o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  452. o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  453. o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  454. o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  455. o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  456. o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  457. o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  458. o15.Name = "Breather"
  459. o15.Parent = o1
  460. o15.Material = Enum.Material.Metal
  461. o15.BrickColor = BrickColor.new("Really black")
  462. o15.Position = Vector3.new(-12.5337915, 3.51434994, 50.2550011)
  463. o15.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
  464. o15.Anchored = true
  465. o15.CanCollide = false
  466. o15.FormFactor = Enum.FormFactor.Custom
  467. o15.Shape = Enum.PartType.Cylinder
  468. o15.Size = Vector3.new(0.200000003, 0.340000093, 0.350000024)
  469. 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)
  470. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  471. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  472. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  473. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  474. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  475. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  476. o15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  477. o16.Name = "Breather"
  478. o16.Parent = o1
  479. o16.Material = Enum.Material.Metal
  480. o16.BrickColor = BrickColor.new("Really black")
  481. o16.Position = Vector3.new(-12.7920103, 3.39220095, 49.784256)
  482. o16.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
  483. o16.Anchored = true
  484. o16.CanCollide = false
  485. o16.FormFactor = Enum.FormFactor.Custom
  486. o16.Shape = Enum.PartType.Cylinder
  487. o16.Size = Vector3.new(0.230000019, 0.540000081, 0.75)
  488. 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)
  489. o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  490. o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  491. o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  492. o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  493. o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  494. o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  495. o16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  496. o17.Name = "Breather"
  497. o17.Parent = o1
  498. o17.Material = Enum.Material.Metal
  499. o17.BrickColor = BrickColor.new("Really black")
  500. o17.Position = Vector3.new(-12.8723783, 3.42192006, 49.8816109)
  501. o17.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
  502. o17.Anchored = true
  503. o17.CanCollide = false
  504. o17.FormFactor = Enum.FormFactor.Custom
  505. o17.Shape = Enum.PartType.Cylinder
  506. o17.Size = Vector3.new(0.370000005, 0.540000081, 0.310000002)
  507. 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)
  508. o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  509. o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  510. o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  511. o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  512. o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  513. o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  514. o17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  515. function onTouched(hit)
  516. local d = hit.Parent:GetChildren()
  517. for i=1, #d do
  518. if (d[i].className == "Hat") then
  519. d[i]:remove()
  520. end
  521. end
  522. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Face") == nil then
  523. local g = o1:clone()
  524. g.Parent = hit.Parent
  525. local C = g:GetChildren()
  526. for i=1, #C do
  527. if C[i].className == "Part" then
  528. local W = Instance.new("Weld")
  529. W.Part0 = g.Middle
  530. W.Part1 = C[i]
  531. local CJ = CFrame.new(g.Middle.Position)
  532. local C0 = g.Middle.CFrame:inverse()*CJ
  533. local C1 = C[i].CFrame:inverse()*CJ
  534. W.C0 = C0
  535. W.C1 = C1
  536. W.Parent = g.Middle
  537. g.Middle.Transparency = 1
  538. end
  539. local Y = Instance.new("Weld")
  540. Y.Part0 = hit.Parent.Head
  541. Y.Part1 = g.Middle
  542. Y.C0 = CFrame.new(0, 0, 0)
  543. Y.Parent = Y.Part0
  544. end
  545.  
  546. local h = g:GetChildren()
  547. for i = 1, # h do
  548. h[i].Anchored = false
  549. h[i].CanCollide = false
  550. end
  551.  
  552. end
  553. end
  554.  
  555. onTouched(game.Players.LocalPlayer.Character.Head)
  556. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement