NYXRBLX

Untitled

Sep 9th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.04 KB | None | 0 0
  1. local player=game.Players.LocalPlayer
  2. local char=player.Character
  3. repeat wait() until player and char
  4. local torso=char.Torso
  5. local head=char.Head
  6. local human=char.Humanoid
  7. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  8. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  9. local c=function(f) coroutine.resume(coroutine.create(f)) end
  10. local p=function(f) pcall(f) end
  11. local add={
  12. Part=function(par, a, c, col, t, s, cf, ms)
  13. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  14. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  15. return p
  16. end,
  17. Wedge=function(par, a, c, col, t, s, cf, ms)
  18. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  19. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  20. return p
  21. end,
  22. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  23. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BridckColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  24. return g
  25. end,
  26. Weld=function(par, p1, cf)
  27. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  28. return w
  29. end,
  30. Mesh=function(ins, par, s, of, t)
  31. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  32. return m
  33. end,
  34. Sound=function(parent, id, volume, pitch)
  35. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  36. return s
  37. end,
  38. }
  39. local scriptname="Spy" --Name here
  40. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end)
  41. local model=Instance.new("Model", char) model.Name="Objects"
  42. local modelB=Instance.new("Model", char) modelB.Name=scriptname
  43. local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  44. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
  45. local skincolor="Really black"
  46. local body={}
  47. local animate={}
  48. local obj={}
  49. function createParts()
  50. --==PARTS==--
  51. body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
  52. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  53. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  54. --==WELDS==--
  55. body.TorsoW=add.Weld(body.Torso, torso, nil)
  56. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  57. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  58. --==MESHES==--
  59. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  60. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  61. torso["Left Hip"].Part0=body.Torso
  62. torso["Right Hip"].Part0=body.Torso
  63. ---------------------------------------------------------------------------------------
  64. animate={
  65. ["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
  66. body.TorsoW.C1=cf
  67. end;
  68. ["ArmLeft"]=function(cf)
  69. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  70. end;
  71. ["ArmRight"]=function(cf)
  72. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  73. end;
  74. ["LegLeft"]=function(cf)
  75. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  76. end;
  77. ["LegRight"]=function(cf)
  78. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  79. end;
  80. }
  81. --==Objects==--
  82. obj.HandleBack=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
  83. obj.HandleBackW=add.Weld(obj.HandleBack, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
  84. obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  85. obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
  86. obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleBack, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  87. obj.EdgeTopR=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  88. obj.EdgeTopRM=add.Mesh("CylinderMesh", obj.EdgeTopR, Vector3.new(1, 1, 1), nil, nil)
  89. obj.EdgeTopRW=add.Weld(obj.EdgeTopR, obj.HandleBack, CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  90.  
  91. obj.Blade=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .8, .2), nil)
  92. obj.BladeM=add.Mesh("BlockMesh", obj.Blade, Vector3.new(.5, 1, 1), nil, nil)
  93. obj.BladeW=add.Weld(obj.Blade, obj.EdgeTopR, CFrame.new(-.1, 0, -.4)*CFrame.Angles(-math.rad(90), math.rad(90), 0))
  94. obj.Point=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .4, .2), nil)
  95. obj.PointM=add.Mesh("SpecialMesh", obj.Point, Vector3.new(.5, 1, .5), nil, "Wedge")
  96. obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, .6, .05)*CFrame.Angles(0, math.rad(180), 0))
  97. obj.Point2=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .4, .2), nil)
  98. obj.Point2M=add.Mesh("SpecialMesh", obj.Point2, Vector3.new(.5, 1, .5), nil, "Wedge")
  99. obj.Point2W=add.Weld(obj.Point2, obj.Blade, CFrame.new(0, .6, -.05))
  100.  
  101. obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
  102. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  103. obj.JointsW=add.Weld(obj.Joints, obj.EdgeBot, nil)
  104. obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
  105. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  106. obj.JointsW=add.Weld(obj.Joints, obj.EdgeTopR, nil)
  107.  
  108. obj.EdgeTopR2=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  109. obj.EdgeTopR2M=add.Mesh("CylinderMesh", obj.EdgeTopR2, Vector3.new(1, 1, 1), nil, nil)
  110. obj.EdgeTopR2W=add.Weld(obj.EdgeTopR2, obj.Blade, CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  111. obj.HandleFor=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
  112. obj.HandleForW=add.Weld(obj.HandleFor, obj.EdgeTopR2, CFrame.new(0, 0, .5)*CFrame.Angles(-math.rad(90), -math.rad(90), 0))
  113. obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  114. obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
  115. obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleFor, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  116. obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
  117. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  118. obj.JointsW=add.Weld(obj.Joints, obj.EdgeBot, nil)
  119. obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
  120. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  121. obj.JointsW=add.Weld(obj.Joints, obj.EdgeTopR2, nil)
  122. end
  123. function removeParts()
  124. p(function()
  125. if torso then
  126. torso["Left Hip"].Part0=torso
  127. torso["Right Hip"].Part0=torso
  128. end
  129. for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 if v.Name == "HumanoidRootPart" then v.Transparency = 1 end end
  130. end)
  131. end
  132. --Variables--
  133. local trailDeb=false
  134. local using=false
  135. local combo=1
  136. local onStab=false
  137. local keyDeb=false
  138. local switch=false
  139. local switch2=false
  140. local keyDeb2=false
  141. local hitDeb=false
  142. local dmg=math.random(5, 10)
  143. local speed=20
  144. local pitch=.8
  145. local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, pitch)
  146. local Hit=add.Sound(torso, "http://www.roblox.com/asset/?id=30715280", 1, 1)
  147. local Abscond=add.Sound(torso, "http://www.roblox.com/asset/?id=2767090", 1, 1)
  148. local Equip=add.Sound(torso, "http://www.roblox.com/asset/?id=13510737", 1, 1)
  149. local attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "Invisible(Q)", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
  150. local attackLabel2=add.Gui("TextLabel", attackLabel, "Really black", "Really black", "White", "Size18", "Disguise(E)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  151.  
  152. function lightningGen(startPos, endPos)
  153. local magnitude=(startPos-endPos).magnitude
  154. local distance=(startPos+endPos)/2
  155. local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
  156. local startPosProx=startPos
  157. for i=1, 9 do
  158. local startPosProx2=startPosProx
  159. local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  160. local findSize=pattern.Size.z/10
  161. local findOffSet=pattern.CFrame.lookVector*-1
  162. local compute=i*findSize*findOffSet
  163. local newStartPos=startPos
  164. local newEndPos=CFrame.new(random+compute+newStartPos).p
  165. local magnitude=(startPosProx2-newEndPos).magnitude
  166. local distance=(startPosProx2+newEndPos)/2
  167. local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
  168. c(function()
  169. for i=0, 1, .1 do wait()
  170. lightning.Transparency=i
  171. end
  172. lightning:remove()
  173. end)
  174. startPosProx=newEndPos
  175. end
  176. pattern:remove()
  177. end
  178. function computePos(pos, pos2)
  179. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  180. torso.CFrame=CFrame.new(pos, pos3)
  181. return pos3
  182. end
  183. function nearTorso(pos, dis)
  184. local temp
  185. local distance=dis
  186. for i, v in pairs(workspace:children()) do
  187. if v:isA("Model") then
  188. temp=v:findFirstChild("Torso")
  189. local humanoid=v:findFirstChild("Humanoid")
  190. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  191. distance=(temp.CFrame.p-pos).magnitude
  192. return temp
  193. end
  194. end
  195. end
  196. end
  197. function trail(pos, cf, col)
  198. c(function()
  199. local old=(pos.CFrame*cf).p
  200. while trailDeb==true do
  201. wait()
  202. local new=(pos.CFrame*cf).p
  203. local mag=(old-new).magnitude
  204. local dis=(old+new)/2
  205. local trail=add.Part(workspace, true, false, col, 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trail"
  206. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
  207. old=new
  208. c(function()
  209. for i=1, 0, -.1 do
  210. wait()
  211. tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
  212. end
  213. trail:remove()
  214. end)
  215. c(function()
  216. for i=0, 1, .1 do
  217. wait()
  218. trail.Transparency=i
  219. end
  220. end)
  221. end
  222. end)
  223. end
  224.  
  225. function running()
  226. animate.ArmLeft(CFrame.Angles(-math.rad(45), 0, -math.rad(15)))
  227. animate.ArmRight(CFrame.Angles(math.rad(45), 0, math.rad(15)))
  228. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0)
  229. end
  230.  
  231. function hit(h)
  232. if using==true then
  233. if switch==false then
  234. if onStab==false and h.Parent:findFirstChild("Humanoid") and h.Parent~=char and hitDeb==false then hitDeb=true print("NormalStab") Hit:play()
  235. local hHuman=h.Parent:findFirstChild("Humanoid")
  236. hHuman.Health=hHuman.Health-dmg
  237. local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
  238. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  239. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  240. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  241. local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  242. game.Debris:addItem(fakeM, 2)
  243. wait(1)
  244. hitDeb=false
  245. end
  246. if onStab==true and h.Parent~=char and h.Parent:findFirstChild("Humanoid") and hitDeb==false then hitDeb=true print("NormalStab") Hit:play()
  247. h.Parent:breakJoints()
  248. local fakeM=Instance.new("Model", workspace) fakeM.Name="BACKSTABBED"
  249. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  250. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  251. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  252. local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  253. game.Debris:addItem(fakeM, 2)
  254. wait(1)
  255. hitDeb=false
  256. end
  257. end
  258. end
  259. end
  260.  
  261. function findStab()
  262. while using==false do wait()
  263. --pcall(function()
  264. local nTorso=nearTorso(torso.CFrame.p, 3)
  265. if nTorso then
  266. local offSet=nTorso.CFrame:toObjectSpace(torso.CFrame)
  267. if offSet.z>0 then
  268. onStab=true
  269. animate.ArmRight(CFrame.Angles(math.rad(135), 0, 0))
  270. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  271. else
  272. onStab=false
  273. running()
  274. end
  275. else
  276. onStab=false
  277. running()
  278. end
  279. --end)
  280. end
  281. end
  282.  
  283. function attack() combo=combo+1
  284. if using==false then using=true for i, v in pairs(modelB:children()) do v.Touched:connect(hit) end
  285. if combo==1 and onStab==false then Slash:play()
  286. --[[trailDeb=true
  287. trail(obj.Blade, CFrame.new(0, 1, 0), "White")]]
  288. for i=0, 1, .2 do wait()
  289. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  290. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  291. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  292. end
  293. for i=1, 0, -.2 do wait()
  294. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  295. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  296. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  297. end
  298. if combo>1 and onStab==false then combo=2 Slash:play()
  299. for i=0, 1, .2 do wait()
  300. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  301. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  302. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  303. end
  304. for i=1, 0, -.2 do wait()
  305. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  306. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  307. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  308. end
  309. end
  310. end
  311. if onStab==true then
  312. for i=0, 1, .2 do wait()
  313. animate.ArmRight(CFrame.Angles(math.rad(135-(45*i)), 0, 0))
  314. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  315. end
  316. onStab=false
  317. end
  318. using=false
  319. --trailDeb=false
  320. combo=0
  321. body.Torso.Transparency=1 torso.Transparency=0
  322. running()
  323. findStab()
  324. end
  325. end
  326.  
  327. bin.Selected:connect(function(mouse) createParts()
  328. human.WalkSpeed=speed
  329. running()
  330. using=true
  331. Equip:play()
  332. for i=1, 0, -.1 do wait()
  333. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  334. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  335. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  336. end
  337. using=false
  338. mouse.Button1Down:connect(attack)
  339. mouse.KeyDown:connect(function(key)
  340. local key=key:lower()
  341. --INVISBLE--
  342. if key=="q" and keyDeb==false and switch==false and using==false then keyDeb=true switch=true using=true
  343. attackLabel.Text="Visible(Q)" print("1") Abscond:play()
  344. pcall(function() char.Sound.Disabled=true end)
  345. for i, v in pairs(char:children()) do
  346. c(function()
  347. for i=0, 1, .2 do wait()
  348. pcall(function()
  349. c(function() if v.Head~=nil then head.Transparency=1 end end)
  350. v.Transparency=i
  351. if v.Name == "HumanoidRootPart" then v.Transparency = 1 end
  352. end)
  353. pcall(function() v.Handle.Transparency=i end)
  354. pcall(function() v.face.Transparency=i end)
  355. pcall(function() v.roblox.Transparency=i end)
  356. pcall(function() v.Head.Transparency=i end)
  357. pcall(function() v.HumanoidRootPart.Transparency=i+1 end)
  358. end
  359. end)
  360. end
  361. for i, v in pairs(modelB:children()) do
  362. c(function()
  363. for i=0, 1, .2 do wait()
  364. pcall(function()
  365. v.Transparency=i
  366. end)
  367. pcall(function() v.Handle.Transparency=i end)
  368. pcall(function() v.face.Transparency=i end)
  369. end
  370. end)
  371. end
  372. wait(.5)
  373. local fakeModel=Instance.new("Model", workspace.CurrentCamera) fakeModel.Name="YOU"
  374. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=0 fakeHumanoid.MaxHealth=0
  375. local fakeHead=add.Part(fakeModel, false, false, "Bright green", 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  376. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1, 1.5, 1), nil, "File")
  377. fakeHeadM.MeshId="http://www.roblox.com/Asset/?id=9756362"
  378. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  379. modelB.Parent=workspace.CurrentCamera
  380. for i, v in pairs(modelB:children()) do
  381. c(function()
  382. for i=0, 1, .2 do wait()
  383. pcall(function()
  384. v.Transparency=.5
  385. end)
  386. pcall(function() v.Handle.Transparency=.5 end)
  387. pcall(function() v.face.Transparency=.5 end)
  388. end
  389. end)
  390. end
  391. keyDeb=false
  392. elseif key=="q" and keyDeb==false and switch==true and using==true then keyDeb=true switch=false using=false
  393. attackLabel.Text="Invisible(Q)" print("2") Abscond:play()
  394. pcall(function() char.Sound.Disabled=false end)
  395. modelB.Parent=char
  396. for i, v in pairs(char:children()) do
  397. c(function()
  398. for i=1, 0, -.2 do wait()
  399. pcall(function()
  400. c(function() if v.Head~=nil then head.Transparency=1 end end)
  401. v.Transparency=i
  402. if v.Name == "HumanoidRootPart" then v.Transparency = 1 end
  403. end)
  404. pcall(function() v.Handle.Transparency=i end)
  405. pcall(function() v.face.Transparency=i end)
  406. pcall(function() v.roblox.Transparency=i end)
  407. pcall(function() v.Head.Transparency=i end)
  408. pcall(function() v.HumanoidRootPart.Transparency=i+1 end)
  409. end
  410. end)
  411. end
  412. for i, v in pairs(modelB:children()) do
  413. c(function()
  414. for i=1, 0, -.2 do wait()
  415. pcall(function()
  416. v.Transparency=i
  417. end)
  418. pcall(function() v.Handle.Transparency=i end)
  419. pcall(function() v.face.Transparency=i end)
  420. end
  421. end)
  422. end
  423. for i, v in pairs(workspace.CurrentCamera:children()) do pcall(function() v:remove() end) end
  424. wait(.5)
  425. keyDeb=false
  426. findStab()
  427. end
  428. --DISGUISE MENU--
  429. local xSpace=0
  430. if key=="e" and keyDeb2==false and switch2==false then keyDeb2=true switch2=true
  431. attackLabel2.Text="Menu:"
  432. for i, v in pairs(game.Players:children()) do
  433. if v~=player then xSpace=xSpace+1
  434. local playersLabel=add.Gui("TextButton", attackLabel2, "Really black", "Really black", "Bright red", "Size18", v.Name, 0, UDim2.new(1, 0, 1, 0), UDim2.new(xSpace, 0, 0, 0))
  435. playersLabel.MouseButton1Click:connect(function() Abscond:play()
  436. pcall(function()
  437. for i, v in pairs(char:children()) do
  438. pcall(function() v.face:remove() end)
  439. pcall(function() v.roblox:remove() end)
  440. pcall(function() v.Head:remove() end)
  441. if v:IsA("BodyColors") then v:remove() end
  442. if v:IsA("Hat") then v:remove() end
  443. if v:IsA("ShirtGraphic") then v:remove() end
  444. if v:IsA("Pants") then v:remove() end
  445. if v:IsA("Shirt") then v:remove() end
  446. if v:IsA("CharacterMesh") then v:remove() end
  447. if v:IsA("BodyColors") then v:remove() end
  448. end
  449. for i, v in pairs(game.Players[playersLabel.Text].Character:children()) do
  450. pcall(function() local cloned=v.face:clone() cloned.Parent=head if switch==true then pcall(function() cloned.Transparency=1 end) end end)
  451. pcall(function() v.roblox:clone().Parent=torso end)
  452. if v:IsA("BodyColors") then v:clone().Parent=char end
  453. if v:IsA("Hat") then local cloned=v:clone() cloned.Parent=char if switch==true then pcall(function() cloned.Handle.Transparency=1 end) end end
  454. if v:IsA("ShirtGraphic") then v:clone().Parent=char end
  455. if v:IsA("Pants") then v:clone().Parent=char end
  456. if v:IsA("Shirt") then v:clone().Parent=char end
  457. if v:IsA("CharacterMesh") then v:clone().Parent=char end
  458. if v:IsA("BodyColors") then v:clone().Parent=char end
  459. end
  460. head.Transparency=1
  461. local fakeModel=Instance.new("Model", char) fakeModel.Name=playersLabel.Text
  462. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=100 fakeHumanoid.MaxHealth=100
  463. local fakeHead=add.Part(fakeModel, false, false, game.Players[playersLabel.Text].Character.Head.Color, 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  464. if switch==true then fakeHead.Transparency=1 end
  465. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1.25, 1.25, 1.25), nil, "Head")
  466. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  467. end)
  468. end)
  469. end
  470. end
  471. keyDeb2=false
  472. elseif key=="e" and keyDeb2==false and switch2==true then keyDeb2=true switch2=false
  473. attackLabel2.Text="Disguise(E)"
  474. for i, v in pairs(attackLabel2:children()) do
  475. pcall(function()v:remove()end)
  476. end
  477. keyDeb2=false
  478. end
  479. end)
  480. findStab()
  481. end)
  482. bin.Deselected:connect(function()
  483. Equip:play()
  484. for i=0, 1, .1 do wait()
  485. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  486. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  487. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  488. end
  489. switch2=false using=false for i, v in pairs(attackLabel2:children()) do pcall(function()v:remove()end) end removeParts() end)--mediafire
Add Comment
Please, Sign In to add comment