Advertisement
TacoLuver123

Roblox Rapid Knives Script

Aug 19th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.28 KB | None | 0 0
  1. Player = game:GetService("Players").MlgNoscoperStabber
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. attacktype = 1
  17. damage = 10
  18. oridamage = 90
  19. attackdebounce = false
  20. attackdebounce2 = false
  21. rapidslashing = false
  22. DarkRushing = false
  23. --player
  24. player = nil
  25. --save shoulders
  26. RSH, LSH = nil, nil
  27. --welds
  28. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  29.  
  30.  
  31. if Character:findFirstChild("Dual Knives",true) ~= nil then
  32. Character:findFirstChild("Dual Knives",true).Parent = nil
  33. end
  34. if Player:findFirstChild("Team",true) ~= nil then
  35. Player:findFirstChild("Team",true).Parent = nil
  36. end
  37. if Player:findFirstChild("Team") then --the class thing give you a "class" already , so dont delete it for no reason :U
  38. Player:findFirstChild("Team").Value = "Magic Knight"
  39. else
  40. local s = Instance.new("StringValue")
  41. s.Parent = Player
  42. s.Value = "Spy"
  43. s.Name = "Team"
  44. end
  45.  
  46.  
  47.  
  48. local knaifz = Instance.new("Model")
  49. knaifz.Parent = Character
  50. knaifz.Name = "Dual Knives"
  51.  
  52. local part1 = Instance.new("Part")
  53. part1.formFactor = 1
  54. part1.CanCollide = false
  55. part1.Name = "Sheath1"
  56. part1.Locked = true
  57. part1.Size = Vector3.new(1,1,1)
  58. part1.Parent = knaifz
  59. part1.BrickColor = BrickColor.new("Really red")
  60. local part2 = Instance.new("Part")
  61. part2.formFactor = 1
  62. part2.CanCollide = false
  63. part2.Name = "Sheath2"
  64. part2.Locked = true
  65. part2.Size = Vector3.new(1,1,1)
  66. part2.Parent = knaifz
  67. part2.BrickColor = BrickColor.new("Really red")
  68. local part3 = Instance.new("Part")
  69. part3.formFactor = 1
  70. part3.CanCollide = false
  71. part3.Name = "Knife1Handle1"
  72. part3.Locked = true
  73. part3.Size = Vector3.new(1,1,1)
  74. part3.Parent = knaifz
  75. part3.BrickColor = BrickColor.new("White")
  76. local part4 = Instance.new("Part")
  77. part4.formFactor = 1
  78. part4.CanCollide = false
  79. part4.Name = "Knife1Handle2"
  80. part4.Locked = true
  81. part4.Size = Vector3.new(1,1,1)
  82. part4.Parent = knaifz
  83. part4.BrickColor = BrickColor.new("Bright green")
  84. local part5 = Instance.new("Part")
  85. part5.formFactor = 1
  86. part5.CanCollide = false
  87. part5.Name = "Knife1Blade1"
  88. part5.Locked = true
  89. part5.Size = Vector3.new(1,1,1)
  90. part5.Parent = knaifz
  91. part5.Reflectance = 0.2
  92. part5.BrickColor = BrickColor.new("New Yeller")
  93. local part6 = Instance.new("Part")
  94. part6.formFactor = 1
  95. part6.CanCollide = false
  96. part6.Name = "Knife1Blade2"
  97. part6.Locked = true
  98. part6.Size = Vector3.new(1,1,1)
  99. part6.Parent = knaifz
  100. part6.Reflectance = 0.2
  101. part6.BrickColor = BrickColor.new("New Yeller")
  102. local part7 = Instance.new("Part")
  103. part7.formFactor = 1
  104. part7.CanCollide = false
  105. part7.Name = "Knife2Handle1"
  106. part7.Locked = true
  107. part7.Size = Vector3.new(1,1,1)
  108. part7.Parent = knaifz
  109. part7.BrickColor = BrickColor.new("White")
  110. local part8 = Instance.new("Part")
  111. part8.formFactor = 1
  112. part8.CanCollide = false
  113. part8.Name = "Knife2Handle2"
  114. part8.Locked = true
  115. part8.Size = Vector3.new(1,1,1)
  116. part8.Parent = knaifz
  117. part8.BrickColor = BrickColor.new("Bright green")
  118. local part9 = Instance.new("Part")
  119. part9.formFactor = 1
  120. part9.CanCollide = false
  121. part9.Name = "Knife2Blade1"
  122. part9.Locked = true
  123. part9.Size = Vector3.new(1,1,1)
  124. part9.Parent = knaifz
  125. part9.Reflectance = 0.2
  126. part9.BrickColor = BrickColor.new("New Yeller")
  127. local part10 = Instance.new("Part")
  128. part10.formFactor = 1
  129. part10.CanCollide = false
  130. part10.Name = "Knife2Blade2"
  131. part10.Locked = true
  132. part10.Size = Vector3.new(1,1,1)
  133. part10.Parent = knaifz
  134. part10.Reflectance = 0.2
  135. part10.BrickColor = BrickColor.new("New Yeller")
  136.  
  137. local msh1 = Instance.new("BlockMesh")
  138. msh1.Scale = Vector3.new(0.4,1,0.4)
  139. msh1.Parent = part1
  140. local msh2 = Instance.new("BlockMesh")
  141. msh2.Scale = Vector3.new(0.4,1,0.4)
  142. msh2.Parent = part2
  143. local msh3 = Instance.new("BlockMesh")
  144. msh3.Scale = Vector3.new(0.31,0.4,0.31)
  145. msh3.Parent = part3
  146. local msh4 = Instance.new("BlockMesh")
  147. msh4.Scale = Vector3.new(0.3,0.9,0.3)
  148. msh4.Parent = part4
  149. local msh5 = Instance.new("BlockMesh")
  150. msh5.Scale = Vector3.new(0.3,0.7,0.1)
  151. msh5.Parent = part5
  152. local msh6 = Instance.new("SpecialMesh")
  153. msh6.Scale = Vector3.new(0.1,0.2,0.2)
  154. msh6.MeshType = "Wedge"
  155. msh6.Parent = part6
  156. local msh7 = Instance.new("BlockMesh")
  157. msh7.Scale = Vector3.new(0.31,0.4,0.31)
  158. msh7.Parent = part7
  159. local msh8 = Instance.new("BlockMesh")
  160. msh8.Scale = Vector3.new(0.3,0.9,0.3)
  161. msh8.Parent = part8
  162. local msh9 = Instance.new("BlockMesh")
  163. msh9.Scale = Vector3.new(0.3,0.7,0.1)
  164. msh9.Parent = part9
  165. local msh10 = Instance.new("SpecialMesh")
  166. msh10.Scale = Vector3.new(0.1,0.2,0.2)
  167. msh10.MeshType = "Wedge"
  168. msh10.Parent = part10
  169.  
  170. local weld1 = Instance.new("Weld")
  171. weld1.Parent = part1
  172. weld1.Part0 = part1
  173. weld1.Part1 = Torso
  174. weld1.C0 = CFrame.new(-0.6,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  175. local weld2 = Instance.new("Weld")
  176. weld2.Parent = part2
  177. weld2.Part0 = part2
  178. weld2.Part1 = Torso
  179. weld2.C0 = CFrame.new(0.6,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90))
  180. local weld3 = Instance.new("Weld")
  181. weld3.Parent = part3
  182. weld3.Part0 = part3
  183. weld3.Part1 = part1
  184. weld3.C0 = CFrame.new(0,1.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  185. local weld4 = Instance.new("Weld")
  186. weld4.Parent = part4
  187. weld4.Part0 = part4
  188. weld4.Part1 = part3
  189. weld4.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  190. local weld5 = Instance.new("Weld")
  191. weld5.Parent = part5
  192. weld5.Part0 = part5
  193. weld5.Part1 = part4
  194. weld5.C0 = CFrame.new(0,-0.9,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  195. local weld6 = Instance.new("Weld")
  196. weld6.Parent = part6
  197. weld6.Part0 = part6
  198. weld6.Part1 = part5
  199. weld6.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(2.23,math.rad(90),0)
  200. weld6.C1 = CFrame.new(0,0.41,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  201. local weld7 = Instance.new("Weld")
  202. weld7.Parent = part7
  203. weld7.Part0 = part7
  204. weld7.Part1 = part2
  205. weld7.C0 = CFrame.new(0,1.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  206. local weld8 = Instance.new("Weld")
  207. weld8.Parent = part8
  208. weld8.Part0 = part8
  209. weld8.Part1 = part7
  210. weld8.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  211. local weld9 = Instance.new("Weld")
  212. weld9.Parent = part9
  213. weld9.Part0 = part9
  214. weld9.Part1 = part8
  215. weld9.C0 = CFrame.new(0,-0.9,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  216. local weld10 = Instance.new("Weld")
  217. weld10.Parent = part10
  218. weld10.Part0 = part10
  219. weld10.Part1 = part9
  220. weld10.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(2.23,math.rad(90),0)
  221. weld10.C1 = CFrame.new(0,0.41,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  222.  
  223. if (script.Parent.className ~= "HopperBin") then
  224. Tool = Instance.new("HopperBin")
  225. Tool.Parent = Backpack
  226. Tool.Name = "Dual Knives"
  227. script.Parent = Tool
  228. end
  229. Bin = script.Parent
  230.  
  231.  
  232. local SlashSound = Instance.new("Sound")
  233. SlashSound.SoundId = "http://roblox.com/asset/?id=45885030"
  234. SlashSound.Parent = Tool
  235. SlashSound.Volume = .7
  236. SlashSound.Pitch = 1
  237. local HitSound = Instance.new("Sound")
  238. HitSound.SoundId = "http://roblox.com/asset/?id=150229109"
  239. HitSound.Parent = Tool
  240. HitSound.Volume = .7
  241. HitSound.Pitch = 1
  242.  
  243. function ss(parent,pitch)
  244. local SlashSoundeh1 = SlashSound:Clone()
  245. SlashSoundeh1.Parent = parent
  246. SlashSoundeh1.Pitch = pitch
  247. SlashSoundeh1.PlayOnRemove = true
  248. coroutine.resume(coroutine.create(function()
  249. wait()
  250. SlashSoundeh1.Parent = nil
  251. end))
  252. end
  253. function hs(parent,pitch)
  254. local SlashSoundeh1 = HitSound:Clone()
  255. SlashSoundeh1.Parent = parent
  256. SlashSoundeh1.Pitch = pitch
  257. SlashSoundeh1.PlayOnRemove = true
  258. coroutine.resume(coroutine.create(function()
  259. wait()
  260. SlashSoundeh1.Parent = nil
  261. end))
  262. end
  263. function cs(parent,pitch)
  264.  
  265. local SlashSound = Instance.new("Sound")
  266. SlashSound.SoundId = "http://www.roblox.com/asset/?id=136007472"
  267. SlashSound.Parent = parent
  268. SlashSound.Volume = 1
  269. SlashSound.Pitch = 1
  270. SlashSound.PlayOnRemove = true
  271. coroutine.resume(coroutine.create(function()
  272. wait()
  273. SlashSound.Parent = nil
  274. end))
  275. end
  276. function bs(parent,pitch)
  277.  
  278. local SlashSound = Instance.new("Sound")
  279. SlashSound.SoundId = "http://roblox.com/asset/?id=149437369"
  280. SlashSound.Parent = parent
  281. SlashSound.Volume = 1
  282. SlashSound.Pitch = 1
  283. SlashSound.PlayOnRemove = true
  284. coroutine.resume(coroutine.create(function()
  285. wait()
  286. SlashSound.Parent = nil
  287. end))
  288. end
  289.  
  290. function unequipweld()
  291. weld3.Part1 = part1
  292. weld3.C0 = CFrame.new(0,1.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  293. weld7.Part1 = part2
  294. weld7.C0 = CFrame.new(0,1.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  295. end
  296.  
  297. function equipweld()
  298. weld3.Part1 = LeftArm
  299. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  300. weld7.Part1 = RightArm
  301. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  302. end
  303.  
  304. function hideanim()
  305. for i = 0 , 1 , 0.1 do
  306. wait(0)
  307. LW.C0 = CFrame.new(-0.5*i+0.5-1.5,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-2.5*i+2.2,1*i-1,-1*i+1)
  308. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  309. RW.C0 = CFrame.new(0.5*i-0.5+1.5,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-3*i+2.7,-1*i+1,1*i-1)
  310. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  311. end
  312. unequipweld()
  313. wait(0.1)
  314. for i = 0 , 1 , 0.1 do
  315. wait(0)
  316. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.3*i-0.3,0,0)
  317. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  318. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.3*i-0.3,0,0)
  319. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  320. end
  321. end
  322.  
  323. function equipanim()
  324. for i = 0 , 1 , 0.2 do
  325. wait(0)
  326. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0)
  327. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  328. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0)
  329. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  330. end
  331. equipweld()
  332. wait(0.1)
  333. for i = 0 , 1 , 0.2 do
  334. wait(0)
  335. LW.C0 = CFrame.new(0.5*i-1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2.5*i-0.3,-1*i,1*i)
  336. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  337. RW.C0 = CFrame.new(-0.5*i+1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(3*i-0.3,1*i,-1*i)
  338. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  339. end
  340. end
  341.  
  342. function oneslash()
  343. attack = true
  344. for i = 0 , 1 , 0.1 do
  345. wait(0)
  346. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.2,1*i-1,1)
  347. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  348. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-2.7*i+2.7,-1*i+1,1*i-1)
  349. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  350. end
  351. R_Conv1=part5.Touched:connect(function1)
  352. ss(part5,1.2)
  353. for i = 0 , 1.2 , 0.4 do
  354. wait(0)
  355. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.2,-1*i,-0.1*i+1)
  356. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  357. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0)
  358. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  359. end
  360. wait(0.2)
  361. R_Conv1:disconnect()
  362. attack = false
  363. end
  364.  
  365. function twoslash()
  366. attack = true
  367. for i = 0 , 1 , 0.2 do
  368. wait(0)
  369. LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-2.2*i+2.2,-1,-1.9*i+0.9)
  370. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  371. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.3*i-0.3,0,0)
  372. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  373. end
  374. R_Conv1=part9.Touched:connect(function1)
  375. ss(part9,1.2)
  376. for i = 0 , 1.2 , 0.4 do
  377. wait(0)
  378. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,-1,-1)
  379. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  380. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i+3,0,0)
  381. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  382. end
  383. wait(0.1)
  384. R_Conv1:disconnect()
  385. for i = 0 , 1 , 0.2 do
  386. wait(0)
  387. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,-0.57*i-1,1*i-1)
  388. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  389. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i-1+3,0,0)
  390. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  391. end
  392. attack = false
  393. end
  394.  
  395. function threeslash()
  396. attack = true
  397. for i = 0 , 1 , 0.2 do
  398. wait(0)
  399. LW.C0 = CFrame.new(0.5*i-1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  400. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  401. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3,0,0)
  402. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  403. end
  404. wait(0.1)
  405. R_Conv1=part5.Touched:connect(function1)
  406. ss(part5,1.2)
  407. for i = 0 , 1.2 , 0.4 do
  408. wait(0)
  409. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  410. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.7*i-1,0,0)
  411. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3,0,0)
  412. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  413. end
  414. wait(0.1)
  415. R_Conv1:disconnect()
  416. for i = 0 , 1 , 0.2 do
  417. wait(0)
  418. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  419. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.7*i+0.7-1,0,0)
  420. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3,0,0)
  421. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  422. end
  423. attack = false
  424. end
  425.  
  426. function attackone()
  427. attack = true
  428. con1=part5.Touched:connect(function(hit) Damagefunc1(hit,5,40) end)
  429. con2=part6.Touched:connect(function(hit) Damagefunc1(hit,5,40) end)
  430. con3=part9.Touched:connect(function(hit) Damagefunc2(hit,5,40) end)
  431. con4=part10.Touched:connect(function(hit) Damagefunc2(hit,5,40) end)
  432. for i = 0 , 1 , 0.2 do
  433. wait(0)
  434. LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-0.63*i+2.2,-0.57*i-1,-1*i+1)
  435. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2*i,0,0)
  436. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-1.13*i+2.7,0.57*i+1,1*i-1)
  437. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2*i,0,0)
  438. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)*i-math.rad(90),math.rad(90)*i,-math.rad(90)*i+math.rad(90)) * CFrame.new(0, 0.2*i+1, 0)
  439. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90)*i-math.rad(90),math.rad(90)*i,-math.rad(90)*i+math.rad(90)) * CFrame.new(0, 0.2*i+1, 0)
  440. end
  441. ss(part5,1.3)
  442. ss(part9,1.3)
  443. coroutine.resume(coroutine.create(function()
  444. slasheffect(part5.CFrame * CFrame.fromEulerAnglesXYZ(1.5,2.9,0) * CFrame.new(1.5,0,-2),0,15,5)
  445. end))
  446. coroutine.resume(coroutine.create(function()
  447. slasheffect(part9.CFrame * CFrame.fromEulerAnglesXYZ(1.5,2.9,0) * CFrame.new(1.5,0,-2),0,15,5)
  448. end))
  449. for i = 0 , 1 , 0.2 do
  450. wait(0)
  451. LW.C0 = CFrame.new(0.5*i-1.5,0.5,-0.8*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,-1*i)
  452. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2.3*i+2,0.8*i,-1*i)
  453. RW.C0 = CFrame.new(-0.5*i+1.5,0.5,-0.8*i) * CFrame.fromEulerAnglesXYZ(1.57,1.57,1*i)
  454. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2.3*i+2,-0.8*i,1*i)
  455. end
  456. con1:disconnect()
  457. con2:disconnect()
  458. con3:disconnect()
  459. con4:disconnect()
  460. end
  461.  
  462. function attacktwo()
  463. attack = true
  464. con1=part5.Touched:connect(function(hit) Damagefunc1(hit,1,30) end)
  465. con2=part6.Touched:connect(function(hit) Damagefunc1(hit,1,30) end)
  466. con3=part9.Touched:connect(function(hit) Damagefunc2(hit,1,30) end)
  467. con4=part10.Touched:connect(function(hit) Damagefunc2(hit,1,30) end)
  468. for i = 0,1,0.1 do
  469. wait(0)
  470. LW.C0 = CFrame.new(0.5-1.5,0.5,-0.8) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,-1)
  471. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.random()+math.random()*i-2.3+2,-math.random()+math.random()*i+0.8,-math.random()+math.random()*i-1)
  472. RW.C0 = CFrame.new(-0.5+1.5,0.5,-0.8) * CFrame.fromEulerAnglesXYZ(1.57,1.57,1)
  473. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.random()+math.random()*i-2.3+2,-math.random()+math.random()*i-0.8,-math.random()+math.random()*i+1)
  474. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(180),math.rad(90),0) * CFrame.new(0, 1.2, 0)
  475. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(180),math.rad(90),0) * CFrame.new(0, 1.2, 0)
  476. ss(part5,1.3)
  477. ss(part9,1.3)
  478. coroutine.resume(coroutine.create(function()
  479. slasheffect(part5.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(0,1,0),0,6,1)
  480. end))
  481. coroutine.resume(coroutine.create(function()
  482. slasheffect(part9.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(0,1,0),0,6,1)
  483. end))
  484. end
  485. con1:disconnect()
  486. con2:disconnect()
  487. con3:disconnect()
  488. con4:disconnect()
  489. end
  490.  
  491. function attackthree()
  492. attack = true
  493. for i = 0 , 1 , 0.1 do
  494. wait(0)
  495. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.2,1*i-1,1)
  496. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  497. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-2.7*i+2.7,-1*i+1,1*i-1)
  498. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  499. end
  500. con1=part5.Touched:connect(function(hit) Damagefunc1(hit,30,90) end)
  501. con2=part6.Touched:connect(function(hit) Damagefunc1(hit,30,90) end)
  502. ss(part5,1.3)
  503. coroutine.resume(coroutine.create(function()
  504. wait(0)
  505. slasheffect(part6.CFrame * CFrame.fromEulerAnglesXYZ(1.4,0.5,0) * CFrame.new(0.2,-0.5,0.7),0,10,30)
  506. end))
  507. for i = 0 , 1.2 , 0.4 do
  508. wait(0)
  509. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.2,-1*i,-0.1*i+1)
  510. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  511. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0)
  512. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  513. end
  514. wait(0.2)
  515. con1:disconnect()
  516. con2:disconnect()
  517. end
  518.  
  519. function attackfour()
  520. attack = true
  521. for i = 0,1,0.1 do
  522. wait()
  523. LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-2.2*i+2.2,1*i-1,-1*i+1)
  524. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  525. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(1.3*i+2.7,-1*i+1,1*i-1)
  526. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  527. end
  528. con3=part9.Touched:connect(function(hit) Damagefunc2(hit,30,90) end)
  529. con4=part10.Touched:connect(function(hit) Damagefunc2(hit,30,90) end)
  530. ss(part9,1.3)
  531. coroutine.resume(coroutine.create(function()
  532. wait(0)
  533. slasheffect(part10.CFrame * CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.new(0,-0.9,-4),0,10,30)
  534. end))
  535. for i = 0,1.2,0.4 do
  536. wait(0)
  537. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  538. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  539. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2.5*i+4,0,0)
  540. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  541. end
  542. wait(0.2)
  543. con3:disconnect()
  544. con4:disconnect()
  545. end
  546.  
  547. function attackfive()
  548. attack = true
  549. for i = 0,1,0.1 do
  550. wait()
  551. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.2,-1,1)
  552. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  553. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.7,1,-1)
  554. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  555. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90)*i,math.rad(90)) * CFrame.new(0, 1, 0)
  556. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90)*i,math.rad(90)) * CFrame.new(0, 1, 0)
  557. end
  558. coroutine.resume(coroutine.create(function()
  559. slasheffect(part5.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),-1,0) * CFrame.new(0,0,0),0,25,20)
  560. end))
  561. coroutine.resume(coroutine.create(function()
  562. slasheffect(part9.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),-1,0) * CFrame.new(0,0,0),0,25,20)
  563. end))
  564. con1=part5.Touched:connect(function(hit) Damagefunc1(hit,10,70) end)
  565. con2=part6.Touched:connect(function(hit) Damagefunc1(hit,10,70) end)
  566. con3=part9.Touched:connect(function(hit) Damagefunc2(hit,10,70) end)
  567. con4=part10.Touched:connect(function(hit) Damagefunc2(hit,10,70) end)
  568. ss(part5,1.3)
  569. ss(part9,1.3)
  570. local vel = Instance.new("BodyVelocity")
  571. vel.Parent = Player.Character.Torso
  572. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  573. vel.velocity = Torso.CFrame.lookVector * 150
  574. for i = 0,1,0.2 do
  575. wait()
  576. LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(2.2,-1,1)
  577. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  578. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(2.2,1,-1)
  579. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  580. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90)*i-math.rad(90),math.rad(90)) * CFrame.new(0, 1, 0)
  581. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90)*i-math.rad(90),math.rad(90)) * CFrame.new(0, 1, 0)
  582. end
  583. vel.Parent = nil
  584. wait(0.2)
  585. con1:disconnect()
  586. con2:disconnect()
  587. con3:disconnect()
  588. con4:disconnect()
  589. end
  590.  
  591. function DarkRush()
  592. attack = true
  593. DarkRushing = true
  594. cs(Torso,1)
  595. coroutine.resume(coroutine.create(function()
  596. while DarkRushing == true do
  597. wait()
  598. local msh1 = Instance.new("BlockMesh")
  599. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  600. S=Instance.new("Part")
  601. S.Name="Effect"
  602. S.formFactor=0
  603. S.Size=Vector3.new(3,3,3)
  604. S.BrickColor=BrickColor.new("New Yeller")
  605. S.Reflectance = 0
  606. S.TopSurface=0
  607. S.BottomSurface=0
  608. S.Transparency=0
  609. S.Anchored=true
  610. S.CanCollide=false
  611. S.CFrame=part5.CFrame*CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  612. S.Parent=Character
  613. msh1.Parent = S
  614. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  615. local msh1 = Instance.new("BlockMesh")
  616. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  617. S=Instance.new("Part")
  618. S.Name="Effect"
  619. S.formFactor=0
  620. S.Size=Vector3.new(3,3,3)
  621. S.BrickColor=BrickColor.new("New Yeller")
  622. S.Reflectance = 0
  623. S.TopSurface=0
  624. S.BottomSurface=0
  625. S.Transparency=0
  626. S.Anchored=true
  627. S.CanCollide=false
  628. S.CFrame=part9.CFrame*CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  629. S.Parent=Character
  630. msh1.Parent = S
  631. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  632. end
  633. end))
  634. for i = 0,1,0.05 do
  635. wait()
  636. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.2,-1,1)
  637. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  638. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.7,1,-1)
  639. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  640. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90)*i,math.rad(90)) * CFrame.new(0, 1, 0)
  641. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90)*i,math.rad(90)) * CFrame.new(0, 1, 0)
  642. end
  643. wait(0.25)
  644. con1=part5.Touched:connect(function(hit) Damagefunc1(hit,50,100) end)
  645. con2=part6.Touched:connect(function(hit) Damagefunc1(hit,50,100) end)
  646. con3=part9.Touched:connect(function(hit) Damagefunc2(hit,50,100) end)
  647. con4=part10.Touched:connect(function(hit) Damagefunc2(hit,50,100) end)
  648. wait(0.25)
  649. coroutine.resume(coroutine.create(function()
  650. slasheffect(part5.CFrame * CFrame.fromEulerAnglesXYZ(-math.rad(90),-1,0) * CFrame.new(0,0,0),0,35,40)
  651. end))
  652. coroutine.resume(coroutine.create(function()
  653. slasheffect(part9.CFrame * CFrame.fromEulerAnglesXYZ(-math.rad(90),-1,0) * CFrame.new(0,0,0),0,35,40)
  654. end))
  655. ss(part5,1.3)
  656. ss(part9,1.3)
  657. bs(Torso,2.5)
  658. local vel = Instance.new("BodyVelocity")
  659. vel.Parent = Player.Character.Torso
  660. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  661. vel.velocity = Torso.CFrame.lookVector * 200
  662. for i = 0,1,0.2 do
  663. wait()
  664. LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(2.2,-1,1)
  665. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  666. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(2.2,1,-1)
  667. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  668. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  669. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  670. end
  671. vel.Parent = nil
  672. wait(0.2)
  673. con1:disconnect()
  674. con2:disconnect()
  675. con3:disconnect()
  676. con4:disconnect()
  677. wait(0.8)
  678. DarkRushing = false
  679. for i = 0,1,0.1 do
  680. wait()
  681. LW.C0 = CFrame.new(0.5*i-1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2.2,-1,1)
  682. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i+3,0,0)
  683. RW.C0 = CFrame.new(-0.5*i+1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i+2.2,1,-1)
  684. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i+3,0,0)
  685. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90)*i-math.rad(90),math.rad(90)) * CFrame.new(0, 1, 0)
  686. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90)*i-math.rad(90),math.rad(90)) * CFrame.new(0, 1, 0)
  687. end
  688. attack = false
  689. end
  690.  
  691. function KnifeDance()
  692. attack = true
  693. rapidslashing = true
  694. for i = 0,1,0.1 do
  695. wait()
  696. LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-0.63*i+2.2,1*i-1,-2.57*i+1)
  697. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  698. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-1.13*i+2.7,-1*i+1,2.57*i-1)
  699. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  700. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90)*i,math.rad(90)) * CFrame.new(0, 1, 0)
  701. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90)*i,math.rad(90)) * CFrame.new(0, 1, 0)
  702. end
  703. con1=part5.Touched:connect(function(hit) Damagefunc1(hit,10,80) end)
  704. con2=part6.Touched:connect(function(hit) Damagefunc1(hit,10,80) end)
  705. con3=part9.Touched:connect(function(hit) Damagefunc2(hit,10,80) end)
  706. con4=part10.Touched:connect(function(hit) Damagefunc2(hit,10,80) end)
  707. while rapidslashing == true do
  708. wait()
  709. ss(part5,1.3)
  710. ss(part9,1.3)
  711. coroutine.resume(coroutine.create(function()
  712. slasheffect(part5.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(math.random(),1+math.random(),math.random()),0,8,10)
  713. end))
  714. coroutine.resume(coroutine.create(function()
  715. slasheffect(part9.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) * CFrame.new(math.random(),1+math.random(),math.random()),0,8,10)
  716. end))
  717. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57)
  718. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.random()-math.random(),math.random()-math.random(),-1.57)
  719. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57)
  720. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.random()-math.random(),math.random()-math.random(),1.57)
  721. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90),math.rad(90)) * CFrame.new(0, 1, 0)
  722. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),-math.rad(90),math.rad(90)) * CFrame.new(0, 1, 0)
  723. end
  724. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.5-0.3,-1,1)
  725. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  726. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(3-0.3,1,-1)
  727. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  728. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  729. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  730. con1:disconnect()
  731. con2:disconnect()
  732. con3:disconnect()
  733. con4:disconnect()
  734. attack = false
  735. end
  736.  
  737.  
  738. Damagefunc1=function(hit,Damage,Knockback)
  739. if attackdebounce == false then
  740. attackdebounce = true
  741. coroutine.resume(coroutine.create(function()
  742. wait(0.2)
  743. attackdebounce = false
  744. end))
  745. if hit.Parent==nil then
  746. return
  747. end
  748. CPlayer=Bin
  749. h=hit.Parent:FindFirstChild("Humanoid")
  750. if h~=nil and hit.Parent.Name~="grgrgry21" and hit.Name~="SlashEffect" and hit.Parent:FindFirstChild("Torso")~=nil then
  751. Damage=Damage
  752. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  753. return
  754. end]]
  755. hs(hit,1.2)
  756. c=Instance.new("ObjectValue")
  757. c.Name="creator"
  758. c.Value=game.Players.LocalPlayer
  759. c.Parent=h
  760. game:GetService("Debris"):AddItem(c,.5)
  761. -- print(c.Value)
  762. --[[ if math.random(1,5)==1 then
  763. CRIT=true
  764. Damage=Damage*2
  765. Knockback=Knockback*2
  766. r=Instance.new("BodyAngularVelocity")
  767. r.P=3000
  768. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  769. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  770. r.Parent=hit.Parent.Torso
  771. s=Instance.new("Sound")
  772. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  773. s.Volume=1
  774. s.Pitch=2
  775. s.Parent=hit
  776. s:Play()
  777.  
  778. end]]
  779. Damage=Damage+math.random(0,10)
  780. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  781. h:TakeDamage(Damage)
  782. showDamage(hit.Parent,Damage,.5)
  783. vp=Instance.new("BodyVelocity")
  784. vp.P=500
  785. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  786. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  787. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  788. if Knockback>0 then
  789. vp.Parent=hit.Parent.Torso
  790. end
  791. game:GetService("Debris"):AddItem(vp,.25)
  792. --[[ r=Instance.new("BodyAngularVelocity")
  793. r.P=3000
  794. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  795. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  796. r.Parent=hit.Parent.Torso]]
  797. game:GetService("Debris"):AddItem(r,.5)
  798. c=Instance.new("ObjectValue")
  799. c.Name="creator"
  800. c.Value=Player
  801. c.Parent=h
  802. game:GetService("Debris"):AddItem(c,.5)
  803. CRIT=false
  804. hitDeb=true
  805. AttackPos=6
  806. end
  807. end
  808. end
  809.  
  810. Damagefunc2=function(hit,Damage,Knockback)
  811. if attackdebounce2 == false then
  812. attackdebounce2 = true
  813. coroutine.resume(coroutine.create(function()
  814. wait(0.2)
  815. attackdebounce2 = false
  816. end))
  817. if hit.Parent==nil then
  818. return
  819. end
  820. CPlayer=Bin
  821. h=hit.Parent:FindFirstChild("Humanoid")
  822. if h~=nil and hit.Parent.Name~="grgrgry21" and hit.Parent:FindFirstChild("Torso")~=nil then
  823. Damage=Damage
  824. print(hit)
  825. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  826. return
  827. end]]
  828. hs(hit,1.2)
  829. c=Instance.new("ObjectValue")
  830. c.Name="creator"
  831. c.Value=game.Players.LocalPlayer
  832. c.Parent=h
  833. game:GetService("Debris"):AddItem(c,.5)
  834. -- print(c.Value)
  835. --[[ if math.random(1,5)==1 then
  836. CRIT=true
  837. Damage=Damage*2
  838. Knockback=Knockback*2
  839. r=Instance.new("BodyAngularVelocity")
  840. r.P=3000
  841. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  842. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  843. r.Parent=hit.Parent.Torso
  844. s=Instance.new("Sound")
  845. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  846. s.Volume=1
  847. s.Pitch=2
  848. s.Parent=hit
  849. s:Play()
  850.  
  851. end]]
  852. Damage=Damage+math.random(3,7)
  853. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  854. h:TakeDamage(Damage)
  855. showDamage(hit.Parent,Damage,.5)
  856. vp=Instance.new("BodyVelocity")
  857. vp.P=500
  858. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  859. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  860. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  861. if Knockback>0 then
  862. vp.Parent=hit.Parent.Torso
  863. end
  864. game:GetService("Debris"):AddItem(vp,.25)
  865. --[[ r=Instance.new("BodyAngularVelocity")
  866. r.P=3000
  867. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  868. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  869. r.Parent=hit.Parent.Torso]]
  870. game:GetService("Debris"):AddItem(r,.5)
  871. c=Instance.new("ObjectValue")
  872. c.Name="creator"
  873. c.Value=Player
  874. c.Parent=h
  875. game:GetService("Debris"):AddItem(c,.5)
  876. CRIT=false
  877. hitDeb=true
  878. AttackPos=6
  879. end
  880. end
  881. end
  882.  
  883. showDamage=function(Char,Dealt,du)
  884. m=Instance.new("Model")
  885. m.Name=tostring(Dealt)
  886. h=Instance.new("Humanoid")
  887. h.Health=0
  888. h.MaxHealth=0
  889. h.Parent=m
  890. c=Instance.new("Part")
  891. c.Transparency=0
  892. c.BrickColor=BrickColor:Red()
  893. if CRIT==true then
  894. c.BrickColor=BrickColor.new("New Yeller")
  895. end
  896. c.Name="Head"
  897. c.TopSurface=0
  898. c.BottomSurface=0
  899. c.formFactor="Plate"
  900. c.Size=Vector3.new(1,.4,1)
  901. ms=Instance.new("CylinderMesh")
  902.  
  903. ms.Scale=Vector3.new(.8,.8,.8)
  904. if CRIT==true then
  905. ms.Scale=Vector3.new(1.25,1.5,1.25)
  906.  
  907. end
  908. ms.Parent=c
  909. c.Reflectance=0
  910. Instance.new("BodyGyro").Parent=c
  911. c.Parent=m
  912. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  913. f=Instance.new("BodyPosition")
  914. f.P=2000
  915. f.D=100
  916. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  917. f.position=c.Position+Vector3.new(0,3,0)
  918. f.Parent=c
  919. game:GetService("Debris"):AddItem(m,.5+du)
  920. c.CanCollide=false
  921. m.Parent=workspace
  922. c.CanCollide=false
  923. end
  924.  
  925. function slasheffect(cframe,waitin,size,efdam)
  926. wait(waitin)
  927. for l=1, 2 do
  928. wait()
  929. e=Instance.new("Part")
  930. coneffect=e.Touched:connect(function(hit) Damagefunc1(hit,efdam,1) end)
  931. e.Name="SlashEffect"
  932. e.TopSurface=0
  933. e.BottomSurface=0
  934. e.formFactor="Symmetric"
  935. e.Size=Vector3.new(1,1,size)
  936. e.Anchored=true
  937. e.BrickColor=BrickColor.new("New Yeller")
  938. e.Reflectance=0
  939.  
  940. e.CanCollide=false
  941. m=Instance.new("SpecialMesh")
  942. m.MeshType="Sphere"
  943. m.Scale=Vector3.new(.25,.25,1)
  944. m.Parent=e
  945. e.CFrame = cframe
  946. e.Parent=workspace
  947. coroutine.resume(coroutine.create(function(m) for i=1, 9 do m.Transparency=i*.1 m.Mesh.Scale=m.Mesh.Scale-Vector3.new(.01,.01,.05)*2 wait() end m.Parent=nil coneffect:disconnect() end),e)
  948. end
  949. end
  950.  
  951.  
  952. function ob1d(mouse)
  953. if attack == true then return end
  954. hold = true
  955. --[[oneslash()
  956. if hold == true then
  957. twoslash()
  958. end
  959. if hold == true then
  960. threeslash()
  961. end ]]
  962. attackin = math.random(1,5)
  963. --attackin = 5
  964. if attackin == 1 then
  965. attackone()
  966. elseif attackin == 2 then
  967. attacktwo()
  968. elseif attackin == 3 then
  969. attackthree()
  970. elseif attackin == 4 then
  971. attackfour()
  972. elseif attackin == 5 then
  973. attackfive()
  974. end
  975. wait(0.2)
  976. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(2.5-0.3,-1,1)
  977. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  978. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(3-0.3,1,-1)
  979. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  980. weld3.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  981. weld7.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90),0,math.rad(90)) * CFrame.new(0, 1, 0)
  982. attack = false
  983. end
  984.  
  985. function ob1u(mouse)
  986. hold = false
  987. end
  988.  
  989. buttonhold = false
  990.  
  991. function key(key)
  992. if attack == true then return end
  993. if key == "q" then
  994. DarkRush()
  995. end
  996. if key == "e" then
  997. KnifeDance()
  998. end
  999. end
  1000.  
  1001. function key2(key)
  1002. if key == "e" then
  1003. rapidslashing = false
  1004. end
  1005. end
  1006.  
  1007. function s(mouse)
  1008. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1009. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1010. mouse.KeyDown:connect(key)
  1011. mouse.KeyUp:connect(key2)
  1012. unsheathed = true
  1013. player = Player
  1014. ch = Character
  1015. RSH = ch.Torso["Right Shoulder"]
  1016. LSH = ch.Torso["Left Shoulder"]
  1017. --
  1018. RSH.Parent = nil
  1019. LSH.Parent = nil
  1020. --
  1021. RW.Part0 = ch.Torso
  1022. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1023. RW.C1 = CFrame.new(0, 0.5, 0)
  1024. RW.Part1 = ch["Right Arm"]
  1025. RW.Parent = ch.Torso
  1026. --_G.R = RW
  1027. --
  1028. LW.Part0 = ch.Torso
  1029. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1030. LW.C1 = CFrame.new(0, 0.5, 0)
  1031. LW.Part1 = ch["Left Arm"]
  1032. LW.Parent = ch.Torso
  1033. --_G.L = LW
  1034. --
  1035. equipanim()
  1036. end
  1037.  
  1038. function ds(mouse)
  1039. unsheathed = false
  1040. hideanim()
  1041. wait(0)
  1042. RW.Parent = nil
  1043. LW.Parent = nil
  1044. RSH.Parent = player.Character.Torso
  1045. LSH.Parent = player.Character.Torso
  1046. end
  1047.  
  1048. Bin.Selected:connect(s)
  1049. Bin.Deselected:connect(ds)
  1050.  
  1051.  
  1052. Game.Workspace.NextFlame.Humanoid.MaxHealth = 500
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement