Alishan555

Untitled

Apr 4th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.04 KB | None | 0 0
  1.  
  2.  
  3. local player=game.Players.LocalPlayer
  4. local char=player.Character
  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=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)
  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 if v.Name == "HumanoidRootPart" then v.Transparency = 1 end 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 speed=20
  146. local pitch=.8
  147. local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, pitch)
  148. local Hit=add.Sound(torso, "http://www.roblox.com/asset/?id=30715280", 1, 1)
  149. local Abscond=add.Sound(torso, "http://www.roblox.com/asset/?id=2767090", 1, 1)
  150. local Equip=add.Sound(torso, "http://www.roblox.com/asset/?id=13510737", 1, 1)
  151. 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))
  152. 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))
  153.  
  154. function lightningGen(startPos, endPos)
  155. local magnitude=(startPos-endPos).magnitude
  156. local distance=(startPos+endPos)/2
  157. local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
  158. local startPosProx=startPos
  159. for i=1, 9 do
  160. local startPosProx2=startPosProx
  161. local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  162. local findSize=pattern.Size.z/10
  163. local findOffSet=pattern.CFrame.lookVector*-1
  164. local compute=i*findSize*findOffSet
  165. local newStartPos=startPos
  166. local newEndPos=CFrame.new(random+compute+newStartPos).p
  167. local magnitude=(startPosProx2-newEndPos).magnitude
  168. local distance=(startPosProx2+newEndPos)/2
  169. local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
  170. c(function()
  171. for i=0, 1, .1 do wait()
  172. lightning.Transparency=i
  173. end
  174. lightning:remove()
  175. end)
  176. startPosProx=newEndPos
  177. end
  178. pattern:remove()
  179. end
  180. function computePos(pos, pos2)
  181. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  182. torso.CFrame=CFrame.new(pos, pos3)
  183. return pos3
  184. end
  185. function nearTorso(pos, dis)
  186. local temp
  187. local distance=dis
  188. for i, v in pairs(workspace:children()) do
  189. if v:isA("Model") then
  190. temp=v:findFirstChild("Torso")
  191. local humanoid=v:findFirstChild("Humanoid")
  192. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  193. distance=(temp.CFrame.p-pos).magnitude
  194. return temp
  195. end
  196. end
  197. end
  198. end
  199. function trail(pos, cf, col)
  200. c(function()
  201. local old=(pos.CFrame*cf).p
  202. while trailDeb==true do
  203. wait()
  204. local new=(pos.CFrame*cf).p
  205. local mag=(old-new).magnitude
  206. local dis=(old+new)/2
  207. 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"
  208. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
  209. old=new
  210. c(function()
  211. for i=1, 0, -.1 do
  212. wait()
  213. tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
  214. end
  215. trail:remove()
  216. end)
  217. c(function()
  218. for i=0, 1, .1 do
  219. wait()
  220. trail.Transparency=i
  221. end
  222. end)
  223. end
  224. end)
  225. end
  226.  
  227. function running()
  228. animate.ArmLeft(CFrame.Angles(-math.rad(45), 0, -math.rad(15)))
  229. animate.ArmRight(CFrame.Angles(math.rad(45), 0, math.rad(15)))
  230. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0)
  231. end
  232.  
  233. function hit(h)
  234. if using==true then
  235. if switch==false then
  236. if onStab==false and h.Parent:findFirstChild("Humanoid") and h.Parent~=char and hitDeb==false then hitDeb=true print("NormalStab") Hit:play()
  237. local hHuman=h.Parent:findFirstChild("Humanoid")
  238. hHuman.Health=hHuman.Health-dmg
  239. local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
  240. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  241. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  242. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  243. 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)
  244. game.Debris:addItem(fakeM, 2)
  245. wait(1)
  246. hitDeb=false
  247. end
  248. if onStab==true and h.Parent~=char and h.Parent:findFirstChild("Humanoid") and hitDeb==false then hitDeb=true print("NormalStab") Hit:play()
  249. h.Parent:breakJoints()
  250. local fakeM=Instance.new("Model", workspace) fakeM.Name="BACKSTABBED"
  251. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  252. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  253. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  254. 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)
  255. game.Debris:addItem(fakeM, 2)
  256. wait(1)
  257. hitDeb=false
  258. end
  259. end
  260. end
  261. end
  262.  
  263. function findStab()
  264. while using==false do wait()
  265. --pcall(function()
  266. local nTorso=nearTorso(torso.CFrame.p, 3)
  267. if nTorso then
  268. local offSet=nTorso.CFrame:toObjectSpace(torso.CFrame)
  269. if offSet.z>0 then
  270. onStab=true
  271. animate.ArmRight(CFrame.Angles(math.rad(135), 0, 0))
  272. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  273. else
  274. onStab=false
  275. running()
  276. end
  277. else
  278. onStab=false
  279. running()
  280. end
  281. --end)
  282. end
  283. end
  284.  
  285. function attack() combo=combo+1
  286. if using==false then using=true for i, v in pairs(modelB:children()) do v.Touched:connect(hit) end
  287. if combo==1 and onStab==false then Slash:play()
  288. --[[trailDeb=true
  289. trail(obj.Blade, CFrame.new(0, 1, 0), "White")]]
  290. for i=0, 1, .2 do wait()
  291. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  292. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  293. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  294. end
  295. for i=1, 0, -.2 do wait()
  296. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  297. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  298. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  299. end
  300. if combo>1 and onStab==false then combo=2 Slash:play()
  301. for i=0, 1, .2 do wait()
  302. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  303. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  304. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  305. end
  306. for i=1, 0, -.2 do wait()
  307. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  308. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  309. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  310. end
  311. end
  312. end
  313. if onStab==true then
  314. for i=0, 1, .2 do wait()
  315. animate.ArmRight(CFrame.Angles(math.rad(135-(45*i)), 0, 0))
  316. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  317. end
  318. onStab=false
  319. end
  320. using=false
  321. --trailDeb=false
  322. combo=0
  323. body.Torso.Transparency=1 torso.Transparency=0
  324. running()
  325. findStab()
  326. end
  327. end
  328.  
  329. bin.Selected:connect(function(mouse) createParts()
  330. human.WalkSpeed=speed
  331. running()
  332. using=true
  333. Equip:play()
  334. for i=1, 0, -.1 do wait()
  335. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  336. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  337. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  338. end
  339. using=false
  340. mouse.Button1Down:connect(attack)
  341. mouse.KeyDown:connect(function(key)
  342. local key=key:lower()
  343. --INVISBLE--
  344. if key=="q" and keyDeb==false and switch==false and using==false then keyDeb=true switch=true using=true
  345. attackLabel.Text="Visible(Q)" print("1") Abscond:play()
  346. pcall(function() char.Sound.Disabled=true end)
  347. for i, v in pairs(char:children()) do
  348. c(function()
  349. for i=0, 1, .2 do wait()
  350. pcall(function()
  351. c(function() if v.Head~=nil then head.Transparency=1 end end)
  352. v.Transparency=i
  353. if v.Name == "HumanoidRootPart" then v.Transparency = 1 end
  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. pcall(function() v.HumanoidRootPart.Transparency=i+1 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. if v.Name == "HumanoidRootPart" then v.Transparency = 1 end
  405. end)
  406. pcall(function() v.Handle.Transparency=i end)
  407. pcall(function() v.face.Transparency=i end)
  408. pcall(function() v.roblox.Transparency=i end)
  409. pcall(function() v.Head.Transparency=i end)
  410. pcall(function() v.HumanoidRootPart.Transparency=i+1 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
Add Comment
Please, Sign In to add comment