Advertisement
-----------------

Mustard Gas FE

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