Advertisement
Guest User

fuck off

a guest
Jun 27th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.09 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 joints={LeftShoulder=torso["Left Shoulder"], RightShoulder=torso["Right Shoulder"], LeftHip=torso["Left Hip"], RightHip=torso["Right Hip"]}
  10. joints.LeftShoulder.Part0=torso
  11. joints.RightShoulder.Part0=torso
  12. joints.LeftHip.Part0=torso
  13. joints.RightHip.Part0=torso
  14. local c=function(f) coroutine.resume(coroutine.create(f)) end
  15. local p=function(f) pcall(f) end
  16. local add={
  17. Part=function(par, a, c, col, t, s, cf, ms)
  18. 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)
  19. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  20. return p
  21. end,
  22. Wedge=function(par, a, c, col, t, s, cf, ms)
  23. 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)
  24. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  25. return p
  26. end,
  27. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  28. 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)
  29. return g
  30. end,
  31. Weld=function(par, p1, cf)
  32. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  33. return w
  34. end,
  35. Mesh=function(ins, par, s, of, t)
  36. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  37. return m
  38. end,
  39. Sound=function(parent, id, volume, pitch)
  40. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  41. return s
  42. end,
  43. }
  44. local scriptname="Hidden Blade" --Name here
  45. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() end)
  46. local model=Instance.new("Model", char) model.Name="Objects"
  47. local modelB=Instance.new("Model", char) modelB.Name=scriptname
  48. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
  49. local gui
  50. local skincolor="Really black"
  51. local hiddenbladecolor="Really black"
  52. local body={}
  53. local animate={}
  54. local obj={}
  55. --Variables--
  56. local trailDeb=false
  57. local keyDeb=false
  58. local onAssasinate=false
  59. local Assasinate=false
  60. local dmg=math.random(10, 20)
  61. local hitDeb=false
  62. local loop=false
  63. local speed=16
  64. local equipleft, equipright=false, false
  65. local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, 1)
  66. local Hit=add.Sound(torso, "http://roblox.com/asset/?id=10209225", 1, 1)
  67. local Equipping=add.Sound(torso, "http://www.roblox.com/asset/?id=13510737", 1, 1)
  68. function createParts()
  69. gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  70. --==PARTS==--
  71. torso.Transparency=1
  72. body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  73. body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
  74. 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)
  75. 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)
  76. --==WELDS==--
  77. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  78. body.TorsoW=add.Weld(body.Torso, torso, nil)
  79. 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))
  80. 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))
  81. --==WELDS==--
  82. --add.Weld(body.Head, head, nil)
  83. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  84. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  85. joints.LeftHip.Part0=body.Torso
  86. joints.RightHip.Part0=body.Torso
  87. ---------------------------------------------------------------------------------------
  88. animate={
  89. ["Head"]=function(cf)
  90. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  91. end;
  92. ["Torso"]=function(cf)
  93. body.TorsoW.C1=cf
  94. end;
  95. ["ArmLeft"]=function(cf)
  96. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  97. end;
  98. ["ArmRight"]=function(cf)
  99. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  100. end;
  101. ["LegLeft"]=function(cf)
  102. legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0))
  103. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  104. c(function()
  105. wait()
  106. legLeftW:remove()
  107. end)
  108. end;
  109. ["LegRight"]=function(cf)
  110. legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0))
  111. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  112. c(function()
  113. wait()
  114. legRightW:remove()
  115. end)
  116. end;
  117. }
  118. --==Objects==--
  119. obj.attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "Assasinate(Q)", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
  120. obj.attackLabel2=add.Gui("TextLabel", obj.attackLabel, "Really black", "Really black", "White", "Size18", "StayLive(E)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  121. obj.attackLabel3=add.Gui("TextLabel", obj.attackLabel2, "Really black", "Really black", "White", "Size18", "Rappid(F)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  122. for i, v in pairs(modelB:children()) do
  123. if i==0 then return end
  124. end
  125. obj.Wrist=add.Part(modelB, false, false, hiddenbladecolor, 0, Vector3.new(1.1, 1, 1.1), nil)
  126. obj.WristW=add.Weld(obj.Wrist, arm.Left, CFrame.new(0, -.4, 0))
  127. obj.Keep=add.Part(modelB, false, false, hiddenbladecolor, 0, Vector3.new(.2, 1, .5), nil)
  128. obj.KeepW=add.Weld(obj.Keep, obj.Wrist, CFrame.new(.6, 0, 0))
  129. obj.Wedge=add.Wedge(modelB, false, false, hiddenbladecolor, 0, Vector3.new(1, .2, .3), nil)
  130. obj.WedgeW=add.Weld(obj.Wedge, obj.Keep, CFrame.new(0, 0, -.4)*CFrame.Angles(0, 0, -math.pi/2))
  131. obj.Wedge=add.Wedge(modelB, false, false, hiddenbladecolor, 0, Vector3.new(1, .2, .3), nil)
  132. obj.WedgeW=add.Weld(obj.Wedge, obj.Keep, CFrame.new(0, 0, .4)*CFrame.Angles(0, math.pi, math.pi/2))
  133. obj.Blade=add.Part(modelB, false, false, "Medium stone-grey", 0, Vector3.new(.2, .5, .2), nil, Vector3.new(.5, 1, 1))
  134. obj.BladeW=add.Weld(obj.Blade, obj.Keep, CFrame.new(0, .25, 0))
  135. obj.Point=add.Wedge(modelB, false, false, "Medium stone-grey", 0, Vector3.new(.2, .5, .2), nil, Vector3.new(.5, 1, .5))
  136. obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, -.5, -.05)*CFrame.Angles(0, 0, math.pi))
  137. obj.Point=add.Wedge(modelB, false, false, "Medium stone-grey", 0, Vector3.new(.2, .5, .2), nil, Vector3.new(.5, 1, .5))
  138. obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, -.5, .05)*CFrame.Angles(0, math.pi, math.pi))
  139. obj.Part=add.Part(modelB, false, false, hiddenbladecolor, 0, Vector3.new(.2, .2, .25), nil, Vector3.new(.7, 1, 1))
  140. obj.PartW=add.Weld(obj.Part, obj.Blade, CFrame.new(0, .2, 0))
  141.  
  142. obj.Wrist2=add.Part(modelB, false, false, hiddenbladecolor, 0, Vector3.new(1.1, 1, 1.1), nil)
  143. obj.Wrist2W=add.Weld(obj.Wrist2, arm.Right, CFrame.new(0, -.4, 0)*CFrame.Angles(0, math.pi, 0))
  144. obj.Keep=add.Part(modelB, false, false, hiddenbladecolor, 0, Vector3.new(.2, 1, .5), nil)
  145. obj.KeepW=add.Weld(obj.Keep, obj.Wrist2, CFrame.new(.6, 0, 0))
  146. obj.Wedge=add.Wedge(modelB, false, false, hiddenbladecolor, 0, Vector3.new(1, .2, .3), nil)
  147. obj.WedgeW=add.Weld(obj.Wedge, obj.Keep, CFrame.new(0, 0, -.4)*CFrame.Angles(0, 0, -math.pi/2))
  148. obj.Wedge=add.Wedge(modelB, false, false, hiddenbladecolor, 0, Vector3.new(1, .2, .3), nil)
  149. obj.WedgeW=add.Weld(obj.Wedge, obj.Keep, CFrame.new(0, 0, .4)*CFrame.Angles(0, math.pi, math.pi/2))
  150. obj.Blade2=add.Part(modelB, false, false, "Medium stone-grey", 0, Vector3.new(.2, .5, .2), nil, Vector3.new(.5, 1, 1))
  151. obj.Blade2W=add.Weld(obj.Blade2, obj.Keep, CFrame.new(0, .25, 0))
  152. obj.Point=add.Wedge(modelB, false, false, "Medium stone-grey", 0, Vector3.new(.2, .5, .2), nil, Vector3.new(.5, 1, .5))
  153. obj.PointW=add.Weld(obj.Point, obj.Blade2, CFrame.new(0, -.5, -.05)*CFrame.Angles(0, 0, math.pi))
  154. obj.Point=add.Wedge(modelB, false, false, "Medium stone-grey", 0, Vector3.new(.2, .5, .2), nil, Vector3.new(.5, 1, .5))
  155. obj.PointW=add.Weld(obj.Point, obj.Blade2, CFrame.new(0, -.5, .05)*CFrame.Angles(0, math.pi, math.pi))
  156. obj.Part=add.Part(modelB, false, false, hiddenbladecolor, 0, Vector3.new(.2, .2, .25), nil, Vector3.new(.7, 1, 1))
  157. obj.PartW=add.Weld(obj.Part, obj.Blade2, CFrame.new(0, .2, 0))
  158. end
  159. function removeParts()
  160. p(function()
  161. if torso then
  162. joints.LeftShoulder.Part0=torso
  163. joints.RightShoulder.Part0=torso
  164. joints.LeftHip.Part0=torso
  165. joints.RightHip.Part0=torso
  166. end
  167. player.PlayerGui[scriptname]:remove()
  168. for i, v in pairs(model:children()) do v:remove() end
  169. for i, v in pairs(char:children()) do v.Transparency=0 end
  170. end)
  171. end
  172. function lightningGen(startPos, endPos)
  173. local magnitude=(startPos-endPos).magnitude
  174. local distance=(startPos+endPos)/2
  175. local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
  176. local startPosProx=startPos
  177. for i=1, 9 do
  178. local startPosProx2=startPosProx
  179. local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  180. local findSize=pattern.Size.z/10
  181. local findOffSet=pattern.CFrame.lookVector*-1
  182. local compute=i*findSize*findOffSet
  183. local newStartPos=startPos
  184. local newEndPos=CFrame.new(random+compute+newStartPos).p
  185. local magnitude=(startPosProx2-newEndPos).magnitude
  186. local distance=(startPosProx2+newEndPos)/2
  187. local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
  188. c(function()
  189. for i=0, 1, .1 do wait()
  190. lightning.Transparency=i
  191. end
  192. lightning:remove()
  193. end)
  194. startPosProx=newEndPos
  195. end
  196. pattern:remove()
  197. end
  198. function computePos(pos, pos2)
  199. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  200. torso.CFrame=CFrame.new(pos, pos3)
  201. return pos3
  202. end
  203. function nearTorso(pos, dis)
  204. local temp
  205. local distance=dis
  206. for i, v in pairs(workspace:children()) do
  207. if v:isA("Model") then
  208. temp=v:findFirstChild("Torso")
  209. local humanoid=v:findFirstChild("Humanoid")
  210. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  211. distance=(temp.CFrame.p-pos).magnitude
  212. return temp
  213. end
  214. end
  215. end
  216. end
  217. function trail(pos, cf)
  218. c(function()
  219. local old=(pos.CFrame*cf).p
  220. while trailDeb==true do
  221. wait()
  222. local new=(pos.CFrame*cf).p
  223. local mag=(old-new).magnitude
  224. local dis=(old+new)/2
  225. local trail=add.Part(workspace, true, false, "White", 0, Vector3.new(.5, mag, .5), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trail"
  226. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
  227. old=new
  228. c(function()
  229. for i=1, 0, -.1 do
  230. wait()
  231. tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
  232. end
  233. trail:remove()
  234. end)
  235. c(function()
  236. for i=0, 1, .1 do
  237. wait()
  238. trail.Transparency=i
  239. end
  240. end)
  241. end
  242. end)
  243. end
  244. function Equip(form)
  245. c(function()
  246. if form=="Left" then
  247. if equipleft==false then
  248. equipleft=true Equipping:play()
  249. for i=0, 1, .1 do wait()
  250. obj.BladeW.C1=CFrame.new(0, .25-1*i, 0)
  251. end
  252. equipleft=false
  253. end
  254. end
  255. end)
  256. c(function()
  257. if form=="Right" then
  258. if equipright==false then
  259. equipright=true Equipping:play()
  260. for i=0, 1, .1 do wait()
  261. obj.Blade2W.C1=CFrame.new(0, .25-1*i, 0)
  262. end
  263. equipright=false
  264. end
  265. end
  266. end)
  267. end
  268. function Unequip()
  269. if obj.BladeW.C1.y<.25 then
  270. c(function() Equipping:play()
  271. for i=1, 0, -.1 do wait()
  272. obj.BladeW.C1=CFrame.new(0, .25-1*i, 0)
  273. end
  274. end)
  275. else
  276. obj.BladeW.C1=CFrame.new(0, .25, 0)
  277. end
  278. if obj.Blade2W.C1.y<.25 then
  279. c(function() Equipping:play()
  280. for i=1, 0, -.1 do wait()
  281. obj.Blade2W.C1=CFrame.new(0, .25-1*i, 0)
  282. end
  283. end)
  284. else
  285. obj.Blade2W.C1=CFrame.new(0, .25, 0)
  286. end
  287. end
  288. function hit(h)
  289. if keyDeb==true then
  290. if onAssasinate==false and h.Parent:findFirstChild("Humanoid") and h.Parent~=char and hitDeb==false then hitDeb=true Hit:play()
  291. local hHuman=h.Parent:findFirstChild("Humanoid")
  292. hHuman.Health=hHuman.Health-dmg
  293. local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
  294. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  295. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  296. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  297. 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)
  298. game.Debris:addItem(fakeM, 2)
  299. wait(.5)
  300. hitDeb=false
  301. end
  302. if onAssasinate==true and h.Parent~=char and h.Parent:findFirstChild("Humanoid") and hitDeb==false then hitDeb=true Hit:play()
  303. h.Parent:breakJoints()
  304. local fakeM=Instance.new("Model", workspace) fakeM.Name="ASSASINATED"
  305. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  306. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  307. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  308. 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)
  309. game.Debris:addItem(fakeM, 2)
  310. wait(1)
  311. hitDeb=false
  312. end
  313. end
  314. end
  315. function running()
  316. animate.Torso(CFrame.new(0, 0, 0))
  317. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(15)))
  318. animate.ArmRight(CFrame.Angles(0, 0, math.rad(15)))
  319. end
  320. local Moves={
  321. ["Assasinate"]=function(mouse)
  322. local target=mouse.Target
  323. for i, v in pairs(modelB:children()) do
  324. v.Touched:connect(hit)
  325. end
  326. if target then
  327. if target.Parent then
  328. local tChar=target.Parent
  329. if tChar:findFirstChild'Torso' then
  330. local tTorso=tChar["Torso"]
  331. human.WalkSpeed=0
  332. local bp=Instance.new("BodyPosition", torso)
  333. bp.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  334. bp.position=torso.Position+Vector3.new(0, 10, 0)
  335. local bg=Instance.new("BodyGyro", torso)
  336. bg.maxTorque=Vector3.new(math.huge, math.huge, math.huge)
  337. for i=0, 1, .1 do wait()
  338. bg.cframe=CFrame.new(torso.CFrame.p, tTorso.CFrame.p)
  339. animate.ArmLeft(CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i))
  340. animate.ArmRight(CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i))
  341. end
  342. wait(1)
  343. trailDeb=true trail(obj.Blade2, CFrame.new(0, -1, 0))
  344. Slash:play()
  345. for i=0, 1, .1 do wait()
  346. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  347. animate.ArmRight(CFrame.Angles(-math.rad(45)+math.rad(45)*i, 0, math.rad(45)+math.rad(45)*i))
  348. bg.cframe=CFrame.new(torso.CFrame.p, tTorso.CFrame.p)
  349. bp.position=Vector3.new(0, 10-10*i, 0)+tTorso.Position*i
  350. end
  351. wait(.5)
  352. for i=1, 0, -.1 do wait()
  353. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  354. animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
  355. end
  356. bp:remove() bg:remove() trailDeb=false
  357. end
  358. end
  359. end
  360. running()
  361. human.WalkSpeed=speed
  362. end,
  363. ["StayLive"]=function()
  364. local nTorso=nearTorso(torso.CFrame.p, 20)
  365. if nTorso then
  366. human.WalkSpeed=0
  367. local nTorsoW=add.Weld(nTorso, torso, CFrame.new(0, 0, -3.7))
  368. for i=0, 1, .1 do wait()
  369. animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
  370. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
  371. end
  372. wait(1)
  373. for i, v in pairs(modelB:children()) do
  374. v.Touched:connect(hit)
  375. end
  376. trailDeb=true trail(obj.Blade2, CFrame.new(0, -1, 0))
  377. Slash:play()
  378. for i=0, 1, .1 do wait()
  379. animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
  380. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)+math.rad(75)*i))
  381. animate.Torso(CFrame.Angles(0, -math.rad(90)+math.rad(180)*i, 0))
  382. end
  383. trailDeb=false
  384. nTorsoW:remove()
  385. wait(.5)
  386. running()
  387. human.WalkSpeed=speed
  388. end
  389. end,
  390. ["Rappid"]=function(mouse)
  391. human.WalkSpeed=0
  392. loop=true
  393. for i=0, 1, .1 do wait()
  394. animate.ArmLeft(CFrame.Angles(math.rad(90)*i, 0, 0))
  395. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  396. end
  397. for i, v in pairs(modelB:children()) do
  398. v.Touched:connect(hit)
  399. end
  400. trailDeb=true trail(obj.Blade, CFrame.new(0, -1, 0)) trail(obj.Blade2, CFrame.new(0, -1, 0))
  401. while loop do wait() Slash:play()
  402. computePos(torso.CFrame.p, mouse.Hit.p)
  403. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
  404. animate.ArmLeft(CFrame.new(0, 0, -math.random(0, 1.5))*CFrame.Angles(math.rad(90), 0, 0))
  405. animate.ArmRight(CFrame.new(0, 0, -math.random(0, 1.5))*CFrame.Angles(math.rad(90), 0, 0))
  406. end
  407. trailDeb=false
  408. for i=1, 0, -.1 do wait()
  409. animate.ArmLeft(CFrame.Angles(math.rad(90)*i, 0, 0))
  410. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  411. end
  412. human.WalkSpeed=speed
  413. running()
  414. end
  415. }
  416. bin.Selected:connect(function(mouse) createParts()
  417. for i=0, 1, .1 do wait()
  418. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(15)*i))
  419. animate.ArmRight(CFrame.Angles(0, 0, math.rad(15)*i))
  420. end
  421. Equip("Right") Equip("Left")
  422. running()
  423. mouse.KeyDown:connect(function(key)
  424. local key=key:lower()
  425. if key=="q" and keyDeb==false then
  426. keyDeb=true onAssasinate=true
  427. Moves.Assasinate(mouse)
  428. keyDeb=false onAssasinate=false
  429. end
  430. if key=="e" and keyDeb==false then
  431. keyDeb=true onAssasinate=true
  432. Moves.StayLive(mouse)
  433. keyDeb=false onAssasinate=false
  434. end
  435. if key=="f" and keyDeb==false then
  436. keyDeb=true
  437. Moves.Rappid(mouse)
  438. keyDeb=false
  439. end
  440. end)
  441. mouse.KeyUp:connect(function(key)
  442. local key=key:lower()
  443. if key=="f" and keyDeb==true then loop=false end
  444. end)
  445. while onAssasinate==false and keyDeb==false do wait()
  446. local target=mouse.Target
  447. local nTorso=nearTorso(torso.CFrame.p, 100)
  448. if target then
  449. if target.Parent and nTorso then
  450. if target.Parent:findFirstChild("Humanoid") then
  451. Assasinate=true
  452. obj.attackLabel.TextColor=BrickColor.new("Bright red")
  453. else
  454. Assasinate=false
  455. obj.attackLabel.TextColor=BrickColor.new("White")
  456. end
  457. end
  458. end
  459. end
  460. end)
  461. bin.Deselected:connect(function()
  462. onAssasinate=false
  463. keyDeb=false
  464. obj.attackLabel.TextColor=BrickColor.new("White")
  465. obj.attackLabel2.TextColor=BrickColor.new("White")
  466. if keyDeb==false then
  467. Unequip()
  468. for i=1, 0, -.1 do wait()
  469. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(15)*i))
  470. animate.ArmRight(CFrame.Angles(0, 0, math.rad(15)*i))
  471. end
  472. wait(.5)
  473. torso.Transparency=1
  474. removeParts()
  475. end
  476. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement