Advertisement
DerpGuyHD

SpyKit

Jul 6th, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.42 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 Dude"
  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.  
  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.  
  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.  
  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.  
  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 end
  130. end)
  131. end
  132.  
  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.  
  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.  
  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.  
  287. for i=0, 1, .2 do wait()
  288. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  289. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  290. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  291. end
  292. for i=1, 0, -.2 do wait()
  293. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  294. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  295. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  296. end
  297. if combo>1 and onStab==false then combo=2 Slash:play()
  298. for i=0, 1, .2 do wait()
  299. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  300. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  301. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  302. end
  303. for i=1, 0, -.2 do wait()
  304. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  305. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  306. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  307. end
  308. end
  309. end
  310. if onStab==true then
  311. for i=0, 1, .2 do wait()
  312. animate.ArmRight(CFrame.Angles(math.rad(135-(45*i)), 0, 0))
  313. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  314. end
  315. onStab=false
  316. end
  317. using=false
  318.  
  319. combo=0
  320. body.Torso.Transparency=1 torso.Transparency=0
  321. running()
  322. findStab()
  323. end
  324. end
  325.  
  326. bin.Selected:connect(function(mouse) createParts()
  327. human.WalkSpeed=speed
  328. running()
  329. using=true
  330. Equip:play()
  331. for i=1, 0, -.1 do wait()
  332. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  333. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  334. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  335. end
  336. using=false
  337. mouse.Button1Down:connect(attack)
  338. mouse.KeyDown:connect(function(key)
  339. local key=key:lower()
  340.  
  341. if key=="q" and keyDeb==false and switch==false and using==false then keyDeb=true switch=true using=true
  342. attackLabel.Text="Visible(Q)" print("1") Abscond:play()
  343. pcall(function() char.Sound.Disabled=true end)
  344. for i, v in pairs(char:children()) do
  345. c(function()
  346. for i=0, 1, .2 do wait()
  347. pcall(function()
  348. c(function() if v.Head~=nil then head.Transparency=1 end end)
  349. v.Transparency=i
  350. end)
  351. pcall(function() v.Handle.Transparency=i end)
  352. pcall(function() v.face.Transparency=i end)
  353. pcall(function() v.roblox.Transparency=i end)
  354. pcall(function() v.Head.Transparency=i end)
  355. end
  356. end)
  357. end
  358. for i, v in pairs(modelB:children()) do
  359. c(function()
  360. for i=0, 1, .2 do wait()
  361. pcall(function()
  362. v.Transparency=i
  363. end)
  364. pcall(function() v.Handle.Transparency=i end)
  365. pcall(function() v.face.Transparency=i end)
  366. end
  367. end)
  368. end
  369. wait(.5)
  370. local fakeModel=Instance.new("Model", workspace.CurrentCamera) fakeModel.Name="YOU"
  371. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=0 fakeHumanoid.MaxHealth=0
  372. local fakeHead=add.Part(fakeModel, false, false, "Bright green", 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  373. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1, 1.5, 1), nil, "File")
  374. fakeHeadM.MeshId="http://www.roblox.com/Asset/?id=9756362"
  375. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  376. modelB.Parent=workspace.CurrentCamera
  377. for i, v in pairs(modelB:children()) do
  378. c(function()
  379. for i=0, 1, .2 do wait()
  380. pcall(function()
  381. v.Transparency=.5
  382. end)
  383. pcall(function() v.Handle.Transparency=.5 end)
  384. pcall(function() v.face.Transparency=.5 end)
  385. end
  386. end)
  387. end
  388. keyDeb=false
  389. elseif key=="q" and keyDeb==false and switch==true and using==true then keyDeb=true switch=false using=false
  390. attackLabel.Text="Invisible(Q)" print("2") Abscond:play()
  391. pcall(function() char.Sound.Disabled=false end)
  392. modelB.Parent=char
  393. for i, v in pairs(char:children()) do
  394. c(function()
  395. for i=1, 0, -.2 do wait()
  396. pcall(function()
  397. c(function() if v.Head~=nil then head.Transparency=1 end end)
  398. v.Transparency=i
  399. end)
  400. pcall(function() v.Handle.Transparency=i end)
  401. pcall(function() v.face.Transparency=i end)
  402. pcall(function() v.roblox.Transparency=i end)
  403. pcall(function() v.Head.Transparency=i end)
  404. end
  405. end)
  406. end
  407. for i, v in pairs(modelB:children()) do
  408. c(function()
  409. for i=1, 0, -.2 do wait()
  410. pcall(function()
  411. v.Transparency=i
  412. end)
  413. pcall(function() v.Handle.Transparency=i end)
  414. pcall(function() v.face.Transparency=i end)
  415. end
  416. end)
  417. end
  418. for i, v in pairs(workspace.CurrentCamera:children()) do pcall(function() v:remove() end) end
  419. wait(.5)
  420. keyDeb=false
  421. findStab()
  422. end
  423.  
  424. local xSpace=0
  425. if key=="e" and keyDeb2==false and switch2==false then keyDeb2=true switch2=true
  426. attackLabel2.Text="Menu:"
  427. for i, v in pairs(game.Players:children()) do
  428. if v~=player then xSpace=xSpace+1
  429. 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))
  430. playersLabel.MouseButton1Click:connect(function() Abscond:play()
  431. pcall(function()
  432. for i, v in pairs(char:children()) do
  433. pcall(function() v.face:remove() end)
  434. pcall(function() v.roblox:remove() end)
  435. pcall(function() v.Head:remove() end)
  436. if v:IsA("BodyColors") then v:remove() end
  437. if v:IsA("Hat") then v:remove() end
  438. if v:IsA("ShirtGraphic") then v:remove() end
  439. if v:IsA("Pants") then v:remove() end
  440. if v:IsA("Shirt") then v:remove() end
  441. if v:IsA("CharacterMesh") then v:remove() end
  442. if v:IsA("BodyColors") then v:remove() end
  443. end
  444. for i, v in pairs(game.Players[playersLabel.Text].Character:children()) do
  445. pcall(function() local cloned=v.face:clone() cloned.Parent=head if switch==true then pcall(function() cloned.Transparency=1 end) end end)
  446. pcall(function() v.roblox:clone().Parent=torso end)
  447. if v:IsA("BodyColors") then v:clone().Parent=char end
  448. 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
  449. if v:IsA("ShirtGraphic") then v:clone().Parent=char end
  450. if v:IsA("Pants") then v:clone().Parent=char end
  451. if v:IsA("Shirt") then v:clone().Parent=char end
  452. if v:IsA("CharacterMesh") then v:clone().Parent=char end
  453. if v:IsA("BodyColors") then v:clone().Parent=char end
  454. end
  455. head.Transparency=1
  456. local fakeModel=Instance.new("Model", char) fakeModel.Name=playersLabel.Text
  457. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=100 fakeHumanoid.MaxHealth=100
  458. local fakeHead=add.Part(fakeModel, false, false, game.Players[playersLabel.Text].Character.Head.Color, 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  459. if switch==true then fakeHead.Transparency=1 end
  460. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1.25, 1.25, 1.25), nil, "Head")
  461. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  462. end)
  463. end)
  464. end
  465. end
  466. keyDeb2=false
  467. elseif key=="e" and keyDeb2==false and switch2==true then keyDeb2=true switch2=false
  468. attackLabel2.Text="Disguise(E)"
  469. for i, v in pairs(attackLabel2:children()) do
  470. pcall(function()v:remove()end)
  471. end
  472. keyDeb2=false
  473. end
  474. end)
  475. findStab()
  476. end)
  477. bin.Deselected:connect(function()
  478. Equip:play()
  479. for i=0, 1, .1 do wait()
  480. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  481. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  482. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  483. end
  484. 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