Advertisement
memberhero

Spy Black magic Script

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