BINO2002

Untitled

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