Upscalefanatic3

[FE] Mustard Gas Grenade (Voidacity)

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