Advertisement
sIendytubble

mustard gas

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