Advertisement
memberhero

Soul Sword SB

Apr 11th, 2018
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.95 KB | None | 0 0
  1. --MADE BY OneLegend (NOT THE SCRIPT) Thanks to TheRedAngel for letting me add. Feel free to take his model too. http://www.roblox.com/TheRedAngels-SB-Gift-NEW-SCRIPTS-item?id=88063410
  2. --REGULAR SCRIPT: Go to line 4 and 5 and put your name where it says "YOUR NAME HERE"
  3.  
  4. local name = "basstracker1970"
  5. local me = game.Players.basstracker1970
  6. local char = me.Character
  7. selected = false
  8. attacking = false
  9. attack = false
  10. dela = 0.4
  11. normdmg = 9
  12. avgdmg = normdmg
  13. normal = 14
  14. speed = 14
  15. normchance = 9333333333333
  16. criticalchance = normchance
  17. splashdist = 14333333333333333333333333333333333333333333333333
  18. plat = 1
  19. healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
  20. if char:findFirstChild("Sword",true) ~= nil then
  21. char:findFirstChild("Sword",true).Parent = nil
  22. end
  23. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  24. part.Parent = parent
  25. part.formFactor = form
  26. part.CanCollide = collide
  27. part.Transparency = tran
  28. part.Reflectance = ref
  29. part.Size = Vector3.new(x,y,z)
  30. part.BrickColor = BrickColor.new(color)
  31. part.TopSurface = 0
  32. part.BottomSurface = 0
  33. part.Anchored = anchor
  34. part.Locked = true
  35. part:BreakJoints()
  36. end
  37. function weld(w, p, p1, a, b, c, x, y, z)
  38. w.Parent = p
  39. w.Part0 = p
  40. w.Part1 = p1
  41. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  42. end
  43. function mesh(mesh, parent, x, y, z, type)
  44. mesh.Parent = parent
  45. mesh.Scale = Vector3.new(x, y, z)
  46. mesh.MeshType = type
  47. end
  48. function getcharparts(path)
  49. local objs = {}
  50. for _,v in pairs(path:children()) do
  51. if v:IsA("Model") and v.Name ~= name then
  52. for _,k in pairs(v:children()) do
  53. if k.Name == "Torso" then
  54. table.insert(objs,k)
  55. end
  56. end
  57. end
  58. end
  59. return objs
  60. end
  61. sword = Instance.new("Model",me.Character)
  62. sword.Name = "Sword"
  63. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  64. rarm = char:findFirstChild("Right Arm")
  65. larm = char:findFirstChild("Left Arm")
  66. torso = char:findFirstChild("Torso")
  67. hum = char:findFirstChild("Humanoid")
  68. main = Instance.new("Part")
  69. prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
  70. mme = Instance.new("SpecialMesh")
  71. mesh(mme,main,1,1,1,"Head")
  72. part1 = Instance.new("Part")
  73. prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  74. p1m = Instance.new("BlockMesh",part1)
  75. w1 = Instance.new("Weld")
  76. weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
  77. part2 = Instance.new("Part")
  78. prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  79. p2m = Instance.new("BlockMesh",part2)
  80. w2 = Instance.new("Weld")
  81. weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
  82. part3 = Instance.new("Part")
  83. prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  84. p3m = Instance.new("BlockMesh",part3)
  85. w3 = Instance.new("Weld")
  86. weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
  87. part4 = Instance.new("Part")
  88. prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  89. p4m = Instance.new("BlockMesh",part4)
  90. w4 = Instance.new("Weld")
  91. weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
  92. part5 = Instance.new("Part")
  93. prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  94. p5m = Instance.new("BlockMesh",part5)
  95. w5 = Instance.new("Weld")
  96. weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
  97. part6 = Instance.new("Part")
  98. prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
  99. p6m = Instance.new("SpecialMesh")
  100. mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
  101. w6 = Instance.new("Weld")
  102. weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
  103. blade1 = Instance.new("Part")
  104. prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
  105. b1m = Instance.new("SpecialMesh")
  106. mesh(b1m,blade1,1,1,1,"Torso")
  107. bw1 = Instance.new("Weld")
  108. weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
  109. uns = Instance.new("Sound",blade1)
  110. uns.Volume = 1
  111. uns.Pitch = 1
  112. uns.SoundId = "rbxasset://sounds\\unsheath.wav"
  113. slash = Instance.new("Sound",blade1)
  114. slash.Volume = 1
  115. slash.Pitch = 1
  116. slash.SoundId = "rbxasset://sounds\\swordslash.wav"
  117. shea = Instance.new("Sound",blade1)
  118. shea.Volume = 1
  119. shea.Pitch = -0.9
  120. shea.SoundId = "rbxasset://sounds\\unsheath.wav"
  121. spi = Instance.new("Sound",blade1)
  122. spi.Volume = 1
  123. spi.Pitch = 1
  124. spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
  125. charge = Instance.new("Sound",blade1)
  126. charge.Volume = 1
  127. charge.Pitch = 0.5
  128. charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
  129. boom = Instance.new("Sound",blade1)
  130. boom.Volume = 1
  131. boom.Pitch = 2.2
  132. boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  133. blade2 = Instance.new("Part")
  134. prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
  135. b2m = Instance.new("BlockMesh",blade2)
  136. bw2 = Instance.new("Weld")
  137. weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
  138. blade3 = Instance.new("Part")
  139. prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  140. b3m = Instance.new("SpecialMesh")
  141. mesh(b3m,blade3,1,1,1,"Wedge")
  142. bw3 = Instance.new("Weld")
  143. weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
  144. blade4 = Instance.new("Part")
  145. prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  146. b4m = Instance.new("SpecialMesh")
  147. mesh(b4m,blade4,1,1,1,"Wedge")
  148. bw4 = Instance.new("Weld")
  149. weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
  150. blade5 = Instance.new("Part")
  151. prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
  152. b5m = Instance.new("BlockMesh",blade5)
  153. bw5 = Instance.new("Weld")
  154. weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
  155. part7 = Instance.new("Part")
  156. prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
  157. p7m = Instance.new("SpecialMesh")
  158. mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
  159. w7 = Instance.new("Weld")
  160. weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
  161. tup1 = Instance.new("Part")
  162. prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
  163. tw1 = Instance.new("Weld")
  164. weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
  165. holdpart = Instance.new("Part")
  166. prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
  167. hu = Instance.new("Weld")
  168. weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
  169. holdweld = Instance.new("Weld")
  170. weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
  171. weaponweld = Instance.new("Weld")
  172. weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
  173. --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
  174. rb = Instance.new("Part")
  175. prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  176. rh = Instance.new("Weld")
  177. weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
  178. lb = Instance.new("Part")
  179. prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  180. lh = Instance.new("Weld")
  181. weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
  182. rw = Instance.new("Weld")
  183. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  184. lw = Instance.new("Weld")
  185. weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
  186. neck = torso.Neck
  187. neor = neck.C1
  188. rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
  189. leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
  190. function selectmotion()
  191. weaponweld.C0 = CFrame.new(0,0,0)
  192. rw.C0 = CFrame.new(0,0,0)
  193. lw.C0 = CFrame.new(0,0,0)
  194. rw.Part1 = rarm
  195. lw.Part1 = larm
  196. for i=1, 15 do
  197. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  198. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
  199. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
  200. wait()
  201. end
  202. weaponweld.Part1 = main
  203. holdweld.Part1 = nil
  204. wait(0.14)
  205. uns:play()
  206. for i=1, 4 do
  207. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
  208. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
  209. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
  210. wait()
  211. end
  212. for i=1, 10 do
  213. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
  214. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
  215. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
  216. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
  217. wait()
  218. end
  219. wait(0.1)
  220. for i=1, 6 do
  221. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
  222. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
  223. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
  224. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
  225. wait()
  226. end
  227. rw.C0 = rightfight
  228. lw.C0 = leftfight
  229. neck.C1 = neor
  230. weaponweld.C0 = CFrame.new(0,0,0)
  231. selected = true
  232. end
  233. function deselmotion()
  234. for i=1, 12 do
  235. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  236. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
  237. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
  238. wait()
  239. end
  240. shea:play()
  241. weaponweld.Part1 = nil
  242. holdweld.Part1 = tup1
  243. wait(0.1)
  244. for i=1, 8 do
  245. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
  246. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
  247. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
  248. wait()
  249. end
  250. rw.Part1 = nil
  251. lw.Part1 = nil
  252. rw.C0 = CFrame.new(0,0,0)
  253. lw.C0 = CFrame.new(0,0,0)
  254. neck.C1 = neor
  255. weaponweld.C0 = CFrame.new(0,0,0)
  256. selected = false
  257. end
  258. ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
  259. function fade(brick,mesh,scale,tran,speed)
  260. coroutine.resume(coroutine.create(function()
  261. for i=tran,1,speed do
  262. wait()
  263. brick.Transparency = i
  264. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  265. end
  266. brick:remove()
  267. end))
  268. end
  269. function block(part,avg,cols)
  270. for i=1, math.random(1,3) do
  271. local s = (avg*1.4)*100
  272. local s2 = (avg/5)*100
  273. local size = math.random(s2,s)/100
  274. local p = Instance.new("Part",me.Character)
  275. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  276. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  277. coroutine.resume(coroutine.create(function()
  278. for i=p.Transparency, 1, 0.2 do
  279. wait(0.15)
  280. p.Transparency = i
  281. local cf = p.CFrame
  282. p.Size = Vector3.new(size,size,size)
  283. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  284. size = size - 0.2
  285. end
  286. p:remove()
  287. end))
  288. end
  289. end
  290. function blocks(part,avg,cols)
  291. for i=1, math.random(1,3) do
  292. local s = (avg*1.4)*100
  293. local s2 = (avg/5)*100
  294. local size = math.random(s2,s)/100
  295. local p = Instance.new("Part",me.Character)
  296. local pos = p.CFrame
  297. local pos2 = pos * CFrame.new(0,12,-15)
  298. local pos3 = pos2 * CFrame.new(0,-12,-12)
  299.  
  300.  
  301. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  302. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  303. coroutine.resume(coroutine.create(function()
  304. for i=p.Transparency, 1, 0.2 do
  305. wait(0.15)
  306. p.Transparency = i
  307. local cf = p.CFrame
  308. p.Size = Vector3.new(size,size,size)
  309. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  310. size = size - 0.2
  311. end
  312. p:remove()
  313. end))
  314. end
  315. end
  316. function blading(part,color)
  317. local p = Instance.new("Part",me.Character)
  318. prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
  319. p.CFrame = part.CFrame
  320. coroutine.resume(coroutine.create(function()
  321. for i=p.Transparency, 1, 0.04 do
  322. wait()
  323. p.Transparency = i
  324. end
  325. p:remove()
  326. end))
  327. end
  328. function spikes(part,color)
  329. local p = Instance.new("Part",me.Character)
  330. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  331. p.CFrame = part.CFrame * CFrame.new(0,-3,0)
  332. local mww = Instance.new("SpecialMesh")
  333. mesh(mww,p,6,5,6,"FileMesh")
  334. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  335. fade(p,mww,0.55,p.Transparency,0.08)
  336. end
  337. function spikes2(part,color)
  338. local p = Instance.new("Part",me.Character)
  339. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  340. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  341. local mww = Instance.new("SpecialMesh")
  342. mesh(mww,p,8,7,8,"FileMesh")
  343. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  344. fade(p,mww,0.55,p.Transparency,0.06)
  345. end
  346. function bal(part,color,dist)
  347. local p = Instance.new("Part",me.Character)
  348. prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
  349. p.CFrame = part.CFrame
  350. local mww = Instance.new("SpecialMesh")
  351. mesh(mww,p,dist,dist,dist,"Sphere")
  352. fade(p,mww,3,p.Transparency,0.06)
  353. end
  354. --Kill function----------------------Kill function----------------------Kill function--------------------
  355. function blast(dmg,part,crit)
  356. local randomposx = math.random(-30,30)
  357. local randomposy = math.random(-50,-10)
  358. local bil = Instance.new("BillboardGui",part)
  359. bil.Adornee = bil.Parent
  360. bil.Size = UDim2.new(0,110,0,70)
  361. local img = Instance.new("ImageLabel",bil)
  362. img.Size = UDim2.new(1,0,1,0)
  363. img.Image = "http://www.roblox.com/asset/?id=42621332"
  364. img.Position = UDim2.new(0,randomposx,0,randomposy)
  365. img.BackgroundTransparency = 1
  366. local txt = Instance.new("TextLabel",img)
  367. txt.Size = UDim2.new(1,0,1,0)
  368. txt.BackgroundTransparency = 1
  369. txt.Text = dmg
  370. txt.TextColor3 = Color3.new(0,0,0)
  371. txt.FontSize = "Size18"
  372. if crit then
  373. img.Image = "http://www.roblox.com/asset/?id=42621315"
  374. txt.FontSize = "Size24"
  375. txt.TextColor3 = Color3.new(0.6,0,0)
  376. end
  377. coroutine.resume(coroutine.create(function()
  378. wait(0.2)
  379. for i=1, math.random(30,50) do
  380. img.Position = UDim2.new(0,randomposx,0,randomposy)
  381. randomposy = randomposy - 4
  382. wait()
  383. end
  384. bil:remove()
  385. end))
  386. end
  387. deb = true
  388. function kill(hit,mod)
  389. if deb and attack and hit.Parent.Name ~= name then
  390. local ch = hit.Parent
  391. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  392. deb = false
  393. local dm = math.random(0,avgdmg*2)
  394. local cri = false
  395. local cripro = math.random(1,criticalchance)
  396. if cripro == 1 then
  397. cri = true
  398. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  399. end
  400. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  401. blast(dm,ch.Head,cri)
  402. if cri then
  403. coroutine.resume(coroutine.create(function()
  404. local lol = math.random(1,plat)
  405. if lol == 1 then
  406. ch["Humanoid"].PlatformStand = true
  407. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  408. wait(0.9)
  409. ch["Humanoid"].PlatformStand = false
  410. if mod == true then
  411. ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  412. ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
  413. end
  414. end
  415. end))
  416. end
  417. wait(dela)
  418. deb = true
  419. end
  420. end
  421. end
  422. function ris(hit,mod)
  423. if deb and attack and hit.Parent.Name ~= name then
  424. local ch = hit.Parent
  425. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  426. deb = false
  427. local dm = math.random(0,avgdmg*2)
  428. local cri = false
  429. local cripro = math.random(1,criticalchance)
  430. if cripro == 1 then
  431. cri = true
  432. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  433. end
  434. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  435. blast(dm,ch.Head,cri)
  436. if cri then
  437. coroutine.resume(coroutine.create(function()
  438. local lol = math.random(1,plat)
  439. if lol == 1 then
  440. ch["Humanoid"].PlatformStand = true
  441. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  442. wait(0.9)
  443. ch["Humanoid"].PlatformStand = false
  444. if mod == true then
  445. ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  446. ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
  447. end
  448. end
  449. end))
  450. end
  451. wait(dela)
  452. deb = true
  453. end
  454. end
  455. end
  456. blade3.Touched:connect(kill)
  457. blade4.Touched:connect(kill)
  458. blade2.Touched:connect(kill)
  459. blade1.Touched:connect(kill)
  460. blade5.Touched:connect(kill)
  461. blade5.Touched:connect(ris)
  462. ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
  463. -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  464. -- blading(blade2,"Bright red")
  465. function att()
  466. attacking = true
  467. for i=1,8 do
  468. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  469. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  470. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  471. wait()
  472. end
  473. slash:play()
  474. wait(0.13)
  475. attack = true
  476. for i=1,6 do
  477. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  478. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  479. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  480. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  481. wait()
  482. end
  483. attack = false
  484. wait(0.08)
  485. for i=1,3 do
  486. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  487. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  488. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  489. wait()
  490. end
  491. rw.C0 = rightfight
  492. lw.C0 = leftfight
  493. neck.C1 = neor
  494. weaponweld.C0 = CFrame.new(0,0,0)
  495. attacking = false
  496. end
  497. function stab()
  498. attacking = true
  499. for i=1,8 do
  500. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  501. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  502. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  503. wait()
  504. end
  505. slash:play()
  506. avgdmg = 15
  507. criticalchance = 95
  508. wait(0.13)
  509. attack = true
  510. for i=1,6 do
  511. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
  512. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  513. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  514. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  515. bal(blade5,"Tr. Blue",25)
  516. wait()
  517. end
  518. attack = false
  519. wait(0.08)
  520. for i=1,3 do
  521. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  522. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  523. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  524. blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  525. bal(blade5,"Tr. Blue",25)
  526. wait()
  527. end
  528. rw.C0 = rightfight
  529. lw.C0 = leftfight
  530. neck.C1 = neor
  531. weaponweld.C0 = CFrame.new(0,0,0)
  532. attacking = false
  533. end
  534. function attas()
  535. attacking = true
  536. local pos = torso.CFrame
  537. local pos2 = pos * CFrame.new(0,12,-15)
  538. local pos3 = pos2 * CFrame.new(0,-12,-12)
  539. for i=1,6 do
  540. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  541. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  542. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  543. spikes(torso,"Light blue")
  544. spikes2(torso,"Bright blue")
  545. bal(torso,"Tr. Blue",25)
  546. wait()
  547. end
  548. slash:play()
  549. avgdmg = 15
  550. criticalchance = 65
  551. wait(0.13)
  552. attack = true
  553.  
  554.  
  555. for i=1,6 do
  556. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
  557. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
  558. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
  559. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  560. wait()
  561. end
  562. attack = false
  563. wait(0.08)
  564. for i=1,3 do
  565. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  566. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  567. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  568. wait()
  569. end
  570. rw.C0 = rightfight
  571. lw.C0 = leftfight
  572.  
  573. neck.C1 = neor
  574. weaponweld.C0 = CFrame.new(0,0,0)
  575. attacking = false
  576. end
  577. function spin()
  578. attacking = true
  579. hum.WalkSpeed = 0
  580. for i=1,7 do
  581. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  582. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  583. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  584. wait()
  585. end
  586. spi:play()
  587. wait(0.3)
  588. spi:play()
  589. dela = 0.1
  590. avgdmg = 6
  591. criticalchance = 12
  592.  
  593. attack = true
  594. for i=1, 30 do
  595. wait()
  596. spikes(torso,"Medium blue")
  597. end
  598.  
  599. hum.WalkSpeed = normal
  600. attack = false
  601. avgdmg = normdmg
  602. for i=1,5 do
  603. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  604. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  605. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  606. wait()
  607. end
  608. dela = 0.4
  609. rw.C0 = rightfight
  610. lw.C0 = leftfight
  611. neck.C1 = neor
  612. weaponweld.C0 = CFrame.new(0,0,0)
  613. attacking = false
  614. criticalchance = normchance
  615. end
  616. function spins()
  617. attacking = true
  618. hum.WalkSpeed = 0
  619. for i=1,7 do
  620. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  621. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  622. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  623. bal(torso,"Tr. Blue",25)
  624. wait()
  625. end
  626. spi:play()
  627. wait(0.3)
  628. spi:play()
  629. dela = 0.1
  630. avgdmg = 6
  631. criticalchance = 12
  632.  
  633. attack = true
  634. for i=1, 30 do
  635. wait()
  636. spikes(torso,"Medium blue")
  637. end
  638.  
  639. hum.WalkSpeed = normal
  640. attack = false
  641. avgdmg = normdmg
  642. for i=1,5 do
  643. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  644. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  645. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  646. wait()
  647. end
  648. dela = 0.4
  649. rw.C0 = rightfight
  650. lw.C0 = leftfight
  651. neck.C1 = neor
  652. weaponweld.C0 = CFrame.new(0,0,0)
  653. attacking = false
  654. criticalchance = normchance
  655. end
  656. function rise()
  657. attacking = true
  658. local pos = torso.CFrame
  659. local pos2 = pos * CFrame.new(0,5,-15)
  660. local pos3 = pos2 * CFrame.new(0,-3,-12)
  661. hum.WalkSpeed = 0
  662. for i=1,7 do
  663. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  664. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  665. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  666. bal(torso,"Tr. Blue",25)
  667. wait()
  668. end
  669. spi:play()
  670. wait(0.3)
  671. spi:play()
  672. dela = 0.1
  673. avgdmg = 6
  674. criticalchance = 12
  675.  
  676. attack = true
  677. for i=1, 30 do
  678. wait()
  679. spikes2(torso,"Medium blue")
  680. end
  681.  
  682.  
  683. hum.WalkSpeed = normal
  684. attack = false
  685. avgdmg = normdmg
  686. for i=1,5 do
  687. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  688. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  689. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  690. wait()
  691. end
  692. dela = 0.4
  693. rw.C0 = rightfight
  694. lw.C0 = leftfight
  695. neck.C1 = neor
  696. weaponweld.C0 = CFrame.new(0,0,0)
  697. attacking = false
  698. criticalchance = normchance
  699. end
  700. function sprint()
  701. attacking = true
  702. hum.WalkSpeed = 0
  703. local pos = torso.CFrame
  704. local pos2 = pos * CFrame.new(0,12,-15)
  705. local pos3 = pos2 * CFrame.new(0,-12,-12)
  706. for i=1,6 do
  707. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  708. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  709. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  710. wait()
  711. end
  712. avgdmg = 14
  713.  
  714. for i=1, 7 do
  715. wait()
  716. spikes2(torso,"Medium blue")
  717. end
  718. wait(0.1)
  719. coroutine.resume(coroutine.create(function()
  720. for i=1, 17 do
  721. wait()
  722. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  723. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  724. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  725. end
  726. end))
  727. coroutine.resume(coroutine.create(function()
  728. for i=0.4, 5.3,0.07 do
  729. wait(0.04)
  730. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  731. end
  732. end))
  733. charge:play()
  734. coroutine.resume(coroutine.create(function()
  735. wait(2.5)
  736. for i=1, 11 do
  737. wait()
  738. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  739. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  740. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  741. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  742. end
  743. end))
  744. criticalchance = 1
  745. plat = 1
  746. dela = 0
  747. wait(3.8)
  748. boom:play()
  749. attack = true
  750. coroutine.resume(coroutine.create(function()
  751. for i=1, 5 do
  752. wait()
  753. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  754. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  755. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  756. end
  757. end))
  758.  
  759. for i=1, 7 do
  760. wait()
  761. spikes2(torso,"Medium blue")
  762. end
  763. coroutine.resume(coroutine.create(function()
  764. for i=1, 12 do
  765. wait()
  766. bal(blade5,"Medium blue",splashdist*2)
  767. end
  768. end))
  769. local parts = getcharparts(workspace)
  770. for _,v in pairs(parts) do
  771. if (v.Position - blade5.Position).magnitude < 14 then
  772. kill(v,true)
  773. end
  774. end
  775. wait(0.3)
  776. attack = false
  777.  
  778. hum.WalkSpeed = normal
  779. avgdmg = normdmg
  780. rw.C0 = rightfight
  781. lw.C0 = leftfight
  782. neck.C1 = neor
  783. weaponweld.C0 = CFrame.new(0,0,0)
  784. attacking = false
  785. criticalchance = normchance
  786. plat = 2
  787. end
  788. function sprint2()
  789. attacking = true
  790. hum.WalkSpeed = 0
  791. local pos = torso.CFrame
  792. local pos2 = pos * CFrame.new(0,15,-15)
  793. local pos3 = pos2 * CFrame.new(0,-13,-12)
  794. for i=1,6 do
  795. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  796. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  797. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  798. wait()
  799. end
  800. avgdmg = 14
  801.  
  802. for i=1, 4 do
  803. wait()
  804. spikes2(torso,"Medium blue")
  805. spikes2(torso,"Light blue")
  806. spikes2(torso,"Bright blue")
  807. end
  808. wait(0.1)
  809. coroutine.resume(coroutine.create(function()
  810. for i=1, 34 do
  811. wait()
  812. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  813. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  814. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  815. end
  816. end))
  817. coroutine.resume(coroutine.create(function()
  818. for i=0.4, 5.3,0.07 do
  819. wait(0.04)
  820. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  821. end
  822. end))
  823. charge:play()
  824. coroutine.resume(coroutine.create(function()
  825. wait(2.5)
  826. for i=1, 11 do
  827. wait()
  828. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  829. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  830. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  831. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  832. end
  833. end))
  834. criticalchance = 1
  835. plat = 1
  836. dela = 0
  837. wait(3.8)
  838. boom:play()
  839. attack = true
  840. coroutine.resume(coroutine.create(function()
  841. for i=1, 5 do
  842. wait()
  843. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  844. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  845. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  846. end
  847. end))
  848.  
  849. for i=1, 7 do
  850. wait()
  851. spikes2(torso,"Medium blue")
  852. end
  853. coroutine.resume(coroutine.create(function()
  854. for i=1, 12 do
  855. wait()
  856. bal(blade5,"Medium blue",splashdist*2)
  857. end
  858. end))
  859. local parts = getcharparts(workspace)
  860. for _,v in pairs(parts) do
  861. if (v.Position - blade5.Position).magnitude < 14 then
  862. kill(v,true)
  863. end
  864. end
  865. wait(0.3)
  866. attack = false
  867.  
  868. hum.WalkSpeed = normal
  869. avgdmg = normdmg
  870. rw.C0 = rightfight
  871. lw.C0 = leftfight
  872. neck.C1 = neor
  873. weaponweld.C0 = CFrame.new(0,0,0)
  874. attacking = false
  875. criticalchance = normchance
  876. plat = 2
  877. end
  878. function combo()
  879. att()
  880. attas()
  881. sprint()
  882. spin()
  883. end
  884. function run()
  885. spin()
  886. spin()
  887. spin()
  888. end
  889. function rush()
  890. attacking = true
  891. for i=1,8 do
  892. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  893. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  894. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  895. wait(0.1)
  896. end
  897. slash:play()
  898. wait(0.13)
  899. attack = true
  900.  
  901. for i=1,6 do
  902. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  903. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  904. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  905. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  906. wait()
  907. end
  908. attack = false
  909. wait(0.08)
  910. for i=1,3 do
  911. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  912. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  913. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  914. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  915. wait()
  916. end
  917. rw.C0 = rightfight
  918. lw.C0 = leftfight
  919.  
  920. neck.C1 = neor
  921. weaponweld.C0 = CFrame.new(0,0,0)
  922. attacking = false
  923. end
  924. function masta()
  925. attacking = true
  926. for i=1,8 do
  927. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  928. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  929. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  930. bal(torso,"Tr. Blue",25)
  931. spikes2(torso,"Medium blue")
  932. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  933. wait(0.1)
  934. end
  935. slash:play()
  936. avgdmg = 37
  937. criticalchance = 125
  938. wait(0.13)
  939. attack = true
  940.  
  941. for i=1,6 do
  942. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  943. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  944. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  945. bal(torso,"Tr. Blue",25)
  946. spikes2(torso,"Medium blue")
  947. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  948. wait()
  949. end
  950. attack = false
  951. wait(0.08)
  952. for i=1,3 do
  953. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  954. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  955. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  956. bal(torso,"Tr. Blue",25)
  957. spikes2(torso,"Medium blue")
  958. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  959. wait()
  960. end
  961. rw.C0 = rightfight
  962. lw.C0 = leftfight
  963.  
  964. neck.C1 = neor
  965. weaponweld.C0 = CFrame.new(0,0,0)
  966. attacking = false
  967. end
  968. if script.Parent.className ~= "HopperBin" then
  969. local h = Instance.new("HopperBin",me.Backpack)
  970. h.Name = "SoulSword"
  971. script.Parent = h
  972. end
  973. local bin = script.Parent
  974. function sel(mouse)
  975. neck.C1 = neor
  976. if (selected == false) then
  977. selectmotion()
  978. end
  979. mouse.Button1Down:connect(function()
  980. if (attacking == false) then
  981. att()
  982. end
  983. end)
  984. mouse.KeyDown:connect(function(kuu)
  985. local kai = kuu:lower()
  986. if attacking == false then
  987. if (kai == "q") then
  988. spin()
  989. elseif (kai == "e") then
  990. att()
  991. elseif (kai == "r") then
  992. sprint()
  993. elseif (kai == "l") then
  994. stab()
  995. elseif (kai == "t") then
  996. attas()
  997. elseif (kai == "z") then
  998. masta()
  999. elseif (kai == "y") then
  1000. spins()
  1001. elseif (kai == "g") then
  1002. combo()
  1003. elseif (kai == "p") then
  1004. rise()
  1005. elseif (kai == "j") then
  1006. sprint2()
  1007. elseif (kai == "h") then
  1008. run()
  1009. elseif (kai == "f") then
  1010. rush()
  1011. end
  1012. end
  1013. end)
  1014. while selected do
  1015. wait(0.8)
  1016. local k = math.random(1,5)
  1017. if k == 1 then
  1018. if hum.Health < 50 then
  1019. for i=1, math.random(4,24) do
  1020. wait(0.1)
  1021. local col = healcols[math.random(1,#healcols)]
  1022. local sa = math.random(30,90)/100
  1023. local p = Instance.new("Part")
  1024. prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
  1025. p.CFrame = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) * CFrame.new(0,0,math.random(4,12))
  1026. local mes = Instance.new("SpecialMesh")
  1027. mesh(mes,p,sa,sa,sa,"Sphere")
  1028.  
  1029. coroutine.resume(coroutine.create(function()
  1030. repeat
  1031.  
  1032. wait()
  1033. until (p.Position - torso.Position).magnitude < 1.8
  1034. hum.Health = hum.Health + 1.2
  1035. p:remove()
  1036. end))
  1037. end
  1038. end
  1039. end
  1040. end
  1041. end
  1042. function desel()
  1043. neck.C1 = neor
  1044. if selected then
  1045. deselmotion()
  1046. end
  1047. end
  1048. bin.Selected:connect(sel)
  1049. bin.Deselected:connect(desel)
  1050. print 'Hello world!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement