Advertisement
Black_Gear

My spy knife

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