timmysjet123456789

Normal Spy Snike script

Apr 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.75 KB | None | 0 0
  1. --==Made by LuisPambid==--
  2.  
  3.  
  4. local player=game.Players.LocalPlayer
  5. local char=player.Character
  6. repeat wait() until player and char
  7. local torso=char.Torso
  8. local head=char.Head
  9. local human=char.Humanoid
  10. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  11. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  12. local c=function(f) coroutine.resume(coroutine.create(f)) end
  13. local p=function(f) pcall(f) end
  14. local add={
  15. Part=function(par, a, c, col, t, s, cf, ms)
  16. 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)
  17. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  18. return p
  19. end,
  20. Wedge=function(par, a, c, col, t, s, cf, ms)
  21. 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)
  22. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  23. return p
  24. end,
  25. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  26. 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)
  27. return g
  28. end,
  29. Weld=function(par, p1, cf)
  30. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  31. return w
  32. end,
  33. Mesh=function(ins, par, s, of, t)
  34. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  35. return m
  36. end,
  37. Sound=function(parent, id, volume, pitch)
  38. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  39. return s
  40. end,
  41. }
  42. local scriptname="Spy" --Name here
  43. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end)
  44. local model=Instance.new("Model", char) model.Name="Objects"
  45. local modelB=Instance.new("Model", char) modelB.Name=scriptname
  46. local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  47. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
  48. local skincolor="Really black"
  49. local body={}
  50. local animate={}
  51. local obj={}
  52. function createParts()
  53. --==PARTS==--
  54. body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
  55. 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)
  56. 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)
  57. --==WELDS==--
  58. body.TorsoW=add.Weld(body.Torso, torso, nil)
  59. 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))
  60. 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))
  61. --==MESHES==--
  62. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  63. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  64. torso["Left Hip"].Part0=body.Torso
  65. torso["Right Hip"].Part0=body.Torso
  66. ---------------------------------------------------------------------------------------
  67. animate={
  68. ["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
  69. body.TorsoW.C1=cf
  70. end;
  71. ["ArmLeft"]=function(cf)
  72. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  73. end;
  74. ["ArmRight"]=function(cf)
  75. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  76. end;
  77. ["LegLeft"]=function(cf)
  78. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  79. end;
  80. ["LegRight"]=function(cf)
  81. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  82. end;
  83. }
  84. --==Objects==--
  85. obj.HandleBack=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
  86. obj.HandleBackW=add.Weld(obj.HandleBack, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
  87. obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  88. obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
  89. obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleBack, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  90. obj.EdgeTopR=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  91. obj.EdgeTopRM=add.Mesh("CylinderMesh", obj.EdgeTopR, Vector3.new(1, 1, 1), nil, nil)
  92. obj.EdgeTopRW=add.Weld(obj.EdgeTopR, obj.HandleBack, CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  93.  
  94. obj.Blade=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .8, .2), nil)
  95. obj.BladeM=add.Mesh("BlockMesh", obj.Blade, Vector3.new(.5, 1, 1), nil, nil)
  96. obj.BladeW=add.Weld(obj.Blade, obj.EdgeTopR, CFrame.new(-.1, 0, -.4)*CFrame.Angles(-math.rad(90), math.rad(90), 0))
  97. obj.Point=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .4, .2), nil)
  98. obj.PointM=add.Mesh("SpecialMesh", obj.Point, Vector3.new(.5, 1, .5), nil, "Wedge")
  99. obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, .6, .05)*CFrame.Angles(0, math.rad(180), 0))
  100. obj.Point2=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .4, .2), nil)
  101. obj.Point2M=add.Mesh("SpecialMesh", obj.Point2, Vector3.new(.5, 1, .5), nil, "Wedge")
  102. obj.Point2W=add.Weld(obj.Point2, obj.Blade, CFrame.new(0, .6, -.05))
  103.  
  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.EdgeBot, nil)
  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.EdgeTopR, nil)
  110.  
  111. obj.EdgeTopR2=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  112. obj.EdgeTopR2M=add.Mesh("CylinderMesh", obj.EdgeTopR2, Vector3.new(1, 1, 1), nil, nil)
  113. obj.EdgeTopR2W=add.Weld(obj.EdgeTopR2, obj.Blade, CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  114. obj.HandleFor=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
  115. obj.HandleForW=add.Weld(obj.HandleFor, obj.EdgeTopR2, CFrame.new(0, 0, .5)*CFrame.Angles(-math.rad(90), -math.rad(90), 0))
  116. obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  117. obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
  118. obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleFor, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  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.EdgeBot, nil)
  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.EdgeTopR2, nil)
  125. end
  126. function removeParts()
  127. p(function()
  128. if torso then
  129. torso["Left Hip"].Part0=torso
  130. torso["Right Hip"].Part0=torso
  131. end
  132. 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
  133. end)
  134. end
  135. --Variables--
  136. local trailDeb=false
  137. local using=false
  138. local combo=1
  139. local onStab=false
  140. local keyDeb=false
  141. local switch=false
  142. local switch2=false
  143. local keyDeb2=false
  144. local hitDeb=false
  145. local dmg=math.random(5, 10)
  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. h.Parent:breakJoints()
  251. local fakeM=Instance.new("Model", workspace) fakeM.Name="BACKSTABBED"
  252. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  253. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  254. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  255. 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)
  256. game.Debris:addItem(fakeM, 2)
  257. wait(1)
  258. hitDeb=false
  259. end
  260. end
  261. end
  262. end
  263.  
  264. function findStab()
  265. while using==false do wait()
  266. --pcall(function()
  267. local nTorso=nearTorso(torso.CFrame.p, 3)
  268. if nTorso then
  269. local offSet=nTorso.CFrame:toObjectSpace(torso.CFrame)
  270. if offSet.z>0 then
  271. onStab=true
  272. animate.ArmRight(CFrame.Angles(math.rad(135), 0, 0))
  273. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  274. else
  275. onStab=false
  276. running()
  277. end
  278. else
  279. onStab=false
  280. running()
  281. end
  282. --end)
  283. end
  284. end
  285.  
  286. function attack() combo=combo+1
  287. if using==false then using=true for i, v in pairs(modelB:children()) do v.Touched:connect(hit) end
  288. if combo==1 and onStab==false then Slash:play()
  289. --[[trailDeb=true
  290. trail(obj.Blade, CFrame.new(0, 1, 0), "White")]]
  291. for i=0, 1, .2 do wait()
  292. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  293. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  294. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  295. end
  296. for i=1, 0, -.2 do wait()
  297. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  298. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  299. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  300. end
  301. if combo>1 and onStab==false then combo=2 Slash:play()
  302. for i=0, 1, .2 do wait()
  303. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  304. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  305. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  306. end
  307. for i=1, 0, -.2 do wait()
  308. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  309. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  310. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  311. end
  312. end
  313. end
  314. if onStab==true then
  315. for i=0, 1, .2 do wait()
  316. animate.ArmRight(CFrame.Angles(math.rad(135-(45*i)), 0, 0))
  317. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  318. end
  319. onStab=false
  320. end
  321. using=false
  322. --trailDeb=false
  323. combo=0
  324. body.Torso.Transparency=1 torso.Transparency=0
  325. running()
  326. findStab()
  327. end
  328. end
  329.  
  330. bin.Selected:connect(function(mouse) createParts()
  331. human.WalkSpeed=speed
  332. running()
  333. using=true
  334. Equip:play()
  335. for i=1, 0, -.1 do wait()
  336. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  337. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  338. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  339. end
  340. using=false
  341. mouse.Button1Down:connect(attack)
  342. mouse.KeyDown:connect(function(key)
  343. local key=key:lower()
  344. --INVISBLE--
  345. if key=="q" and keyDeb==false and switch==false and using==false then keyDeb=true switch=true using=true
  346. attackLabel.Text="Visible(Q)" print("1") Abscond:play()
  347. pcall(function() char.Sound.Disabled=true end)
  348. for i, v in pairs(char:children()) do
  349. c(function()
  350. for i=0, 1, .2 do wait()
  351. pcall(function()
  352. c(function() if v.Head~=nil then head.Transparency=1 end end)
  353. v.Transparency=i
  354. end)
  355. pcall(function() v.Handle.Transparency=i end)
  356. pcall(function() v.face.Transparency=i end)
  357. pcall(function() v.roblox.Transparency=i end)
  358. pcall(function() v.Head.Transparency=i end)
  359. end
  360. end)
  361. end
  362. for i, v in pairs(modelB:children()) do
  363. c(function()
  364. for i=0, 1, .2 do wait()
  365. pcall(function()
  366. v.Transparency=i
  367. end)
  368. pcall(function() v.Handle.Transparency=i end)
  369. pcall(function() v.face.Transparency=i end)
  370. end
  371. end)
  372. end
  373. wait(.5)
  374. local fakeModel=Instance.new("Model", workspace.CurrentCamera) fakeModel.Name="YOU"
  375. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=0 fakeHumanoid.MaxHealth=0
  376. local fakeHead=add.Part(fakeModel, false, false, "Bright green", 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  377. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1, 1.5, 1), nil, "File")
  378. fakeHeadM.MeshId="http://www.roblox.com/Asset/?id=9756362"
  379. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  380. modelB.Parent=workspace.CurrentCamera
  381. for i, v in pairs(modelB:children()) do
  382. c(function()
  383. for i=0, 1, .2 do wait()
  384. pcall(function()
  385. v.Transparency=.5
  386. end)
  387. pcall(function() v.Handle.Transparency=.5 end)
  388. pcall(function() v.face.Transparency=.5 end)
  389. end
  390. end)
  391. end
  392. keyDeb=false
  393. elseif key=="q" and keyDeb==false and switch==true and using==true then keyDeb=true switch=false using=false
  394. attackLabel.Text="Invisible(Q)" print("2") Abscond:play()
  395. pcall(function() char.Sound.Disabled=false end)
  396. modelB.Parent=char
  397. for i, v in pairs(char:children()) do
  398. c(function()
  399. for i=1, 0, -.2 do wait()
  400. pcall(function()
  401. c(function() if v.Head~=nil then head.Transparency=1 end end)
  402. v.Transparency=i
  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. end
  409. end)
  410. end
  411. for i, v in pairs(modelB:children()) do
  412. c(function()
  413. for i=1, 0, -.2 do wait()
  414. pcall(function()
  415. v.Transparency=i
  416. end)
  417. pcall(function() v.Handle.Transparency=i end)
  418. pcall(function() v.face.Transparency=i end)
  419. end
  420. end)
  421. end
  422. for i, v in pairs(workspace.CurrentCamera:children()) do pcall(function() v:remove() end) end
  423. wait(.5)
  424. keyDeb=false
  425. findStab()
  426. end
  427. --DISGUISE MENU--
  428. local xSpace=0
  429. if key=="e" and keyDeb2==false and switch2==false then keyDeb2=true switch2=true
  430. attackLabel2.Text="Menu:"
  431. for i, v in pairs(game.Players:children()) do
  432. if v~=player then xSpace=xSpace+1
  433. 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))
  434. playersLabel.MouseButton1Click:connect(function() Abscond:play()
  435. pcall(function()
  436. for i, v in pairs(char:children()) do
  437. pcall(function() v.face:remove() end)
  438. pcall(function() v.roblox:remove() end)
  439. pcall(function() v.Head:remove() end)
  440. if v:IsA("BodyColors") then v:remove() end
  441. if v:IsA("Hat") then v:remove() end
  442. if v:IsA("ShirtGraphic") then v:remove() end
  443. if v:IsA("Pants") then v:remove() end
  444. if v:IsA("Shirt") then v:remove() end
  445. if v:IsA("CharacterMesh") then v:remove() end
  446. if v:IsA("BodyColors") then v:remove() end
  447. end
  448. for i, v in pairs(game.Players[playersLabel.Text].Character:children()) do
  449. pcall(function() local cloned=v.face:clone() cloned.Parent=head if switch==true then pcall(function() cloned.Transparency=1 end) end end)
  450. pcall(function() v.roblox:clone().Parent=torso end)
  451. if v:IsA("BodyColors") then v:clone().Parent=char end
  452. 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
  453. if v:IsA("ShirtGraphic") then v:clone().Parent=char end
  454. if v:IsA("Pants") then v:clone().Parent=char end
  455. if v:IsA("Shirt") then v:clone().Parent=char end
  456. if v:IsA("CharacterMesh") then v:clone().Parent=char end
  457. if v:IsA("BodyColors") then v:clone().Parent=char end
  458. end
  459. head.Transparency=1
  460. local fakeModel=Instance.new("Model", char) fakeModel.Name=playersLabel.Text
  461. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=100 fakeHumanoid.MaxHealth=100
  462. local fakeHead=add.Part(fakeModel, false, false, game.Players[playersLabel.Text].Character.Head.Color, 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  463. if switch==true then fakeHead.Transparency=1 end
  464. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1.25, 1.25, 1.25), nil, "Head")
  465. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  466. end)
  467. end)
  468. end
  469. end
  470. keyDeb2=false
  471. elseif key=="e" and keyDeb2==false and switch2==true then keyDeb2=true switch2=false
  472. attackLabel2.Text="Disguise(E)"
  473. for i, v in pairs(attackLabel2:children()) do
  474. pcall(function()v:remove()end)
  475. end
  476. keyDeb2=false
  477. end
  478. end)
  479. findStab()
  480. end)
  481. bin.Deselected:connect(function()
  482. Equip:play()
  483. for i=0, 1, .1 do wait()
  484. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  485. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  486. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  487. end
  488. 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