D0MiN0_FX

Dual Varja Weapons

Nov 26th, 2016
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.33 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  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. bladecolor = BrickColor.new("New Yeller")
  16. attack = false
  17. attackdebounce = false
  18. attacktype = 1
  19. combo = 0
  20. damage = 3
  21. oridamage = 3
  22. walkdebounce = false
  23. sheathed = true
  24. holdingW = false
  25. holdingA = false
  26. holdingS = false
  27. holdingD = false
  28. --player
  29. player = nil
  30. --save shoulders
  31. RSH, LSH = nil, nil
  32. --welds
  33. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  34. RW2, LW2 = Instance.new("Weld"), Instance.new("Weld")
  35. --what anim
  36. anim = "none"
  37. if Character:findFirstChild("Vajra",true) ~= nil then
  38. Character:findFirstChild("Vajra",true).Parent = nil
  39. end
  40.  
  41. local modelzorz = Instance.new("Model")
  42. modelzorz.Name = "Vajra"
  43. modelzorz.Parent = Character
  44. local prt1 = Instance.new("Part")
  45. prt1.formFactor = 1
  46. prt1.Parent = modelzorz
  47. prt1.CanCollide = false
  48. prt1.BrickColor = Character.Torso.BrickColor
  49. prt1.Name = "Handle1"
  50. prt1.Size = Vector3.new(1,2,1)
  51. prt1.CFrame = Torso.CFrame
  52. local prt2 = Instance.new("Part")
  53. prt2.formFactor = 1
  54. prt2.Parent = modelzorz
  55. prt2.CanCollide = false
  56. prt2.BrickColor = BrickColor.new("Bright blue")
  57. prt2.Name = "Handle2"
  58. prt2.Size = Vector3.new(1,1,1)
  59. prt2.CFrame = Torso.CFrame
  60. local prt3 = Instance.new("Part")
  61. prt3.formFactor = 1
  62. prt3.Parent = modelzorz
  63. prt3.CanCollide = false
  64. prt3.BrickColor = BrickColor.new("Bright yellow")
  65. prt3.Name = "Handle3"
  66. prt3.Size = Vector3.new(1,1,1)
  67. prt3.CFrame = Torso.CFrame
  68. local prt4 = Instance.new("Part")
  69. prt4.formFactor = 1
  70. prt4.Parent = modelzorz
  71. prt4.CanCollide = false
  72. prt4.BrickColor = BrickColor.new("White")
  73. prt4.Name = "Handle4"
  74. prt4.Size = Vector3.new(0.5,0.5,0.5)
  75. prt4.CFrame = Torso.CFrame
  76. local prt5 = Instance.new("Part")
  77. prt5.formFactor = 1
  78. prt5.Parent = modelzorz
  79. prt5.CanCollide = false
  80. prt5.BrickColor = BrickColor.new("Bright blue")
  81. prt5.Name = "Handle5"
  82. prt5.Size = Vector3.new(1,0.5,1)
  83. prt5.CFrame = Torso.CFrame
  84. local prt6 = Instance.new("Part")
  85. prt6.formFactor = 1
  86. prt6.Parent = modelzorz
  87. prt6.CanCollide = false
  88. prt6.BrickColor = BrickColor.new("White")
  89. prt6.Name = "Blade1"
  90. prt6.Size = Vector3.new(1,0.5,1)
  91. prt6.CFrame = Torso.CFrame
  92. local prt7 = Instance.new("Part")
  93. prt7.formFactor = 1
  94. prt7.Parent = modelzorz
  95. prt7.CanCollide = false
  96. prt7.BrickColor = BrickColor.new("White")
  97. prt7.Name = "Blade2"
  98. prt7.Size = Vector3.new(1,0.5,1)
  99. prt7.CFrame = Torso.CFrame
  100. local prt8 = Instance.new("Part")
  101. prt8.formFactor = 1
  102. prt8.Parent = modelzorz
  103. prt8.CanCollide = false
  104. prt8.BrickColor = BrickColor.new("White")
  105. prt8.Name = "Blade3"
  106. prt8.Size = Vector3.new(1,0.5,1)
  107. prt8.CFrame = Torso.CFrame
  108. local prt9 = prt2:Clone()
  109. prt9.Parent = modelzorz
  110. prt9.Name = "Handle6"
  111. prt9.Size = Vector3.new(1,1,1)
  112. prt9.CFrame = Torso.CFrame
  113. local prt10 = prt3:Clone()
  114. prt10.Parent = modelzorz
  115. prt10.Name = "Handle7"
  116. prt10.Size = Vector3.new(1,1,1)
  117. prt10.CFrame = Torso.CFrame
  118. local prt11 = prt4:Clone()
  119. prt11.Parent = modelzorz
  120. prt11.Name = "Handle8"
  121. prt11.Size = Vector3.new(1,0.5,1)
  122. prt11.CFrame = Torso.CFrame
  123. local prt12 = prt5:Clone()
  124. prt12.Parent = modelzorz
  125. prt12.Name = "Handle9"
  126. prt12.Size = Vector3.new(1,0.5,1)
  127. prt12.CFrame = Torso.CFrame
  128. local prt13 = prt6:Clone()
  129. prt13.Parent = modelzorz
  130. prt13.Name = "Blade4"
  131. prt13.Size = Vector3.new(1,0.5,1)
  132. prt13.CFrame = Torso.CFrame
  133. local prt14 = prt7:Clone()
  134. prt14.Parent = modelzorz
  135. prt14.Name = "Blade5"
  136. prt14.Size = Vector3.new(1,0.5,1)
  137. prt14.CFrame = Torso.CFrame
  138. local prt15 = prt8:Clone()
  139. prt15.Parent = modelzorz
  140. prt15.Name = "Blade6"
  141. prt15.Size = Vector3.new(1,0.5,1)
  142. prt15.CFrame = Torso.CFrame
  143. local part1 = Instance.new("Part")
  144. part1.formFactor = 1
  145. part1.Parent = modelzorz
  146. part1.CanCollide = false
  147. part1.BrickColor = Character.Torso.BrickColor
  148. part1.Name = "2Handle1"
  149. part1.Size = Vector3.new(1,2,1)
  150. part1.CFrame = Torso.CFrame
  151. local part2 = Instance.new("Part")
  152. part2.formFactor = 1
  153. part2.Parent = modelzorz
  154. part2.CanCollide = false
  155. part2.BrickColor = BrickColor.new("Bright blue")
  156. part2.Name = "2Handle2"
  157. part2.Size = Vector3.new(1,1,1)
  158. part2.CFrame = Torso.CFrame
  159. local part3 = Instance.new("Part")
  160. part3.formFactor = 1
  161. part3.Parent = modelzorz
  162. part3.CanCollide = false
  163. part3.BrickColor = BrickColor.new("Bright yellow")
  164. part3.Name = "2Handle3"
  165. part3.Size = Vector3.new(1,1,1)
  166. part3.CFrame = Torso.CFrame
  167. local part4 = Instance.new("Part")
  168. part4.formFactor = 1
  169. part4.Parent = modelzorz
  170. part4.CanCollide = false
  171. part4.BrickColor = BrickColor.new("White")
  172. part4.Name = "2Handle4"
  173. part4.Size = Vector3.new(1,0.5,1)
  174. part4.CFrame = Torso.CFrame
  175. local part5 = Instance.new("Part")
  176. part5.formFactor = 1
  177. part5.Parent = modelzorz
  178. part5.CanCollide = false
  179. part5.BrickColor = BrickColor.new("Bright blue")
  180. part5.Name = "2Handle5"
  181. part5.Size = Vector3.new(1,0.5,1)
  182. part5.CFrame = Torso.CFrame
  183. local part6 = Instance.new("Part")
  184. part6.formFactor = 1
  185. part6.Parent = modelzorz
  186. part6.CanCollide = false
  187. part6.BrickColor = BrickColor.new("White")
  188. part6.Name = "2Blade1"
  189. part6.Size = Vector3.new(1,0.5,1)
  190. part6.CFrame = Torso.CFrame
  191. local part7 = Instance.new("Part")
  192. part7.formFactor = 1
  193. part7.Parent = modelzorz
  194. part7.CanCollide = false
  195. part7.BrickColor = BrickColor.new("White")
  196. part7.Name = "2Blade2"
  197. part7.Size = Vector3.new(1,0.5,1)
  198. part7.CFrame = Torso.CFrame
  199. local part8 = Instance.new("Part")
  200. part8.formFactor = 1
  201. part8.Parent = modelzorz
  202. part8.CanCollide = false
  203. part8.BrickColor = BrickColor.new("White")
  204. part8.Name = "2Blade3"
  205. part8.Size = Vector3.new(1,0.5,1)
  206. part8.CFrame = Torso.CFrame
  207. local part9 = part2:Clone()
  208. part9.Parent = modelzorz
  209. part9.Name = "2Handle6"
  210. part9.Size = Vector3.new(1,1,1)
  211. part9.CFrame = Torso.CFrame
  212. local part10 = part3:Clone()
  213. part10.Parent = modelzorz
  214. part10.Name = "2Handle7"
  215. part10.Size = Vector3.new(1,1,1)
  216. part10.CFrame = Torso.CFrame
  217. local part11 = part4:Clone()
  218. part11.Parent = modelzorz
  219. part11.Name = "2Handle8"
  220. part11.Size = Vector3.new(1,0.5,1)
  221. part11.CFrame = Torso.CFrame
  222. local part12 = part5:Clone()
  223. part12.Parent = modelzorz
  224. part12.Name = "2Handle9"
  225. part12.Size = Vector3.new(1,0.5,1)
  226. part12.CFrame = Torso.CFrame
  227. local part13 = part6:Clone()
  228. part13.Parent = modelzorz
  229. part13.Name = "2Blade4"
  230. part13.Size = Vector3.new(1,0.5,1)
  231. part13.CFrame = Torso.CFrame
  232. local part14 = part7:Clone()
  233. part14.Parent = modelzorz
  234. part14.Name = "2Blade5"
  235. part14.Size = Vector3.new(1,0.5,1)
  236. part14.CFrame = Torso.CFrame
  237. local part15 = part8:Clone()
  238. part15.Parent = modelzorz
  239. part15.Name = "2Blade6"
  240. part15.Size = Vector3.new(1,0.5,1)
  241. part15.CFrame = Torso.CFrame
  242. modelzorz:BreakJoints()
  243. local msh1 = Instance.new("CylinderMesh")
  244. msh1.Parent = prt1
  245. msh1.Scale = Vector3.new(0.31,0.7,0.31)
  246. local msh2 = Instance.new("CylinderMesh")
  247. msh2.Parent = prt2
  248. msh2.Scale = Vector3.new(0.4,0.3,0.4)
  249. local msh3 = Instance.new("CylinderMesh")
  250. msh3.Parent = prt3
  251. msh3.Scale = Vector3.new(0.41,0.3,0.41)
  252. local msh4 = Instance.new("BlockMesh")
  253. msh4.Parent = prt4
  254. msh4.Scale = Vector3.new(0.47,0.35,0.4)
  255. local msh5 = Instance.new("BlockMesh")
  256. msh5.Parent = prt5
  257. msh5.Scale = Vector3.new(0.37,0.55,0.6)
  258. local msh6 = Instance.new("SpecialMesh")
  259. msh6.Parent = prt6
  260. msh6.MeshId = "http://www.roblox.com/asset/?id=1778999"
  261. msh6.Scale = Vector3.new(0.35,0.4,0.25)
  262. local msh7 = Instance.new("SpecialMesh")
  263. msh7.Parent = prt7
  264. msh7.MeshId = "http://www.roblox.com/asset/?id=1778999"
  265. msh7.Scale = Vector3.new(0.35,0.4,0.25)
  266. local msh8 = Instance.new("SpecialMesh")
  267. msh8.Parent = prt8
  268. msh8.MeshId = "http://www.roblox.com/asset/?id=1778999"
  269. msh8.Scale = Vector3.new(0.35,0.6,0.25)
  270. local msh9 = msh2:Clone()
  271. msh9.Parent = prt9
  272. local msh10 = msh3:Clone()
  273. msh10.Parent = prt10
  274. local msh11 = msh4:Clone()
  275. msh11.Parent = prt11
  276. local msh12 = msh5:Clone()
  277. msh12.Parent = prt12
  278. local msh13 = msh6:Clone()
  279. msh13.Parent = prt13
  280. local msh14 = msh7:Clone()
  281. msh14.Parent = prt14
  282. local msh15 = msh8:Clone()
  283. msh15.Parent = prt15
  284. local mesh1 = Instance.new("CylinderMesh")
  285. mesh1.Parent = part1
  286. mesh1.Scale = Vector3.new(0.31,0.7,0.31)
  287. local mesh2 = Instance.new("CylinderMesh")
  288. mesh2.Parent = part2
  289. mesh2.Scale = Vector3.new(0.4,0.3,0.4)
  290. local mesh3 = Instance.new("CylinderMesh")
  291. mesh3.Parent = part3
  292. mesh3.Scale = Vector3.new(0.41,0.3,0.41)
  293. local mesh4 = Instance.new("BlockMesh")
  294. mesh4.Parent = part4
  295. mesh4.Scale = Vector3.new(0.47,0.35,0.4)
  296. local mesh5 = Instance.new("BlockMesh")
  297. mesh5.Parent = part5
  298. mesh5.Scale = Vector3.new(0.37,0.55,0.6)
  299. local mesh6 = Instance.new("SpecialMesh")
  300. mesh6.Parent = part6
  301. mesh6.MeshId = "http://www.roblox.com/asset/?id=1778999"
  302. mesh6.Scale = Vector3.new(0.35,0.4,0.25)
  303. local mesh7 = Instance.new("SpecialMesh")
  304. mesh7.Parent = part7
  305. mesh7.MeshId = "http://www.roblox.com/asset/?id=1778999"
  306. mesh7.Scale = Vector3.new(0.35,0.4,0.25)
  307. local mesh8 = Instance.new("SpecialMesh")
  308. mesh8.Parent = part8
  309. mesh8.MeshId = "http://www.roblox.com/asset/?id=1778999"
  310. mesh8.Scale = Vector3.new(0.35,0.6,0.25)
  311. local mesh9 = mesh2:Clone()
  312. mesh9.Parent = part9
  313. local mesh10 = mesh3:Clone()
  314. mesh10.Parent = part10
  315. local mesh11 = mesh4:Clone()
  316. mesh11.Parent = part11
  317. local mesh12 = mesh5:Clone()
  318. mesh12.Parent = part12
  319. local mesh13 = mesh6:Clone()
  320. mesh13.Parent = part13
  321. local mesh14 = mesh7:Clone()
  322. mesh14.Parent = part14
  323. local mesh15 = mesh8:Clone()
  324. mesh15.Parent = part15
  325. local wld1 = Instance.new("Weld")
  326. wld1.Parent = prt1
  327. wld1.Part0 = prt1
  328. wld1.Part1 = Torso
  329. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.7) * CFrame.new(0,0,-0.75)
  330. local wld2 = Instance.new("Weld")
  331. wld2.Parent = prt2
  332. wld2.Part0 = prt2
  333. wld2.Part1 = prt1
  334. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  335. local wld3 = Instance.new("Weld")
  336. wld3.Parent = prt3
  337. wld3.Part0 = prt3
  338. wld3.Part1 = prt1
  339. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.9,0)
  340. local wld4 = Instance.new("Weld")
  341. wld4.Parent = prt4
  342. wld4.Part0 = prt4
  343. wld4.Part1 = prt1
  344. wld4.C0 = CFrame.fromEulerAnglesXYZ(0.8,math.rad(90),0) * CFrame.new(0,1.2,0)
  345. local wld5 = Instance.new("Weld")
  346. wld5.Parent = prt5
  347. wld5.Part0 = prt5
  348. wld5.Part1 = prt4
  349. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  350. local wld6 = Instance.new("Weld")
  351. wld6.Parent = prt6
  352. wld6.Part0 = prt6
  353. wld6.Part1 = prt1
  354. wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(0.5,1.25,0)
  355. local wld7 = Instance.new("Weld")
  356. wld7.Parent = prt7
  357. wld7.Part0 = prt7
  358. wld7.Part1 = prt1
  359. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(-0.5,1.25,0)
  360. local wld8 = Instance.new("Weld")
  361. wld8.Parent = prt8
  362. wld8.Part0 = prt8
  363. wld8.Part1 = prt1
  364. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)) * CFrame.new(0,1.7,0)
  365. local wld9 = Instance.new("Weld")
  366. wld9.Parent = prt9
  367. wld9.Part0 = prt9
  368. wld9.Part1 = prt1
  369. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.6,0)
  370. local wld10 = Instance.new("Weld")
  371. wld10.Parent = prt10
  372. wld10.Part0 = prt10
  373. wld10.Part1 = prt1
  374. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.9,0)
  375. local wld11 = Instance.new("Weld")
  376. wld11.Parent = prt11
  377. wld11.Part0 = prt11
  378. wld11.Part1 = prt1
  379. wld11.C0 = CFrame.fromEulerAnglesXYZ(0.8,math.rad(90),0) * CFrame.new(0,-1.2,0)
  380. local wld12 = Instance.new("Weld")
  381. wld12.Parent = prt12
  382. wld12.Part0 = prt12
  383. wld12.Part1 = prt11
  384. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  385. local wld13 = Instance.new("Weld")
  386. wld13.Parent = prt13
  387. wld13.Part0 = prt13
  388. wld13.Part1 = prt1
  389. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(0.5,-1.25,0)
  390. local wld14 = Instance.new("Weld")
  391. wld14.Parent = prt14
  392. wld14.Part0 = prt14
  393. wld14.Part1 = prt1
  394. wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(-0.5,-1.25,0)
  395. local wld15 = Instance.new("Weld")
  396. wld15.Parent = prt15
  397. wld15.Part0 = prt15
  398. wld15.Part1 = prt1
  399. wld15.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),0,math.rad(180)) * CFrame.new(0,-1.7,0)
  400. local weld1 = Instance.new("Weld")
  401. weld1.Parent = part1
  402. weld1.Part0 = part1
  403. weld1.Part1 = Torso
  404. weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.7) * CFrame.new(0,0,-0.75)
  405. local weld2 = Instance.new("Weld")
  406. weld2.Parent = part2
  407. weld2.Part0 = part2
  408. weld2.Part1 = part1
  409. weld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  410. local weld3 = Instance.new("Weld")
  411. weld3.Parent = part3
  412. weld3.Part0 = part3
  413. weld3.Part1 = part1
  414. weld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.9,0)
  415. local weld4 = Instance.new("Weld")
  416. weld4.Parent = part4
  417. weld4.Part0 = part4
  418. weld4.Part1 = part1
  419. weld4.C0 = CFrame.fromEulerAnglesXYZ(0.8,math.rad(90),0) * CFrame.new(0,1.2,0)
  420. local weld5 = Instance.new("Weld")
  421. weld5.Parent = part5
  422. weld5.Part0 = part5
  423. weld5.Part1 = part4
  424. weld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  425. local weld6 = Instance.new("Weld")
  426. weld6.Parent = part6
  427. weld6.Part0 = part6
  428. weld6.Part1 = part1
  429. weld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(0.5,1.25,0)
  430. local weld7 = Instance.new("Weld")
  431. weld7.Parent = part7
  432. weld7.Part0 = part7
  433. weld7.Part1 = part1
  434. weld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(-0.5,1.25,0)
  435. local weld8 = Instance.new("Weld")
  436. weld8.Parent = part8
  437. weld8.Part0 = part8
  438. weld8.Part1 = part1
  439. weld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)) * CFrame.new(0,1.7,0)
  440. local weld9 = Instance.new("Weld")
  441. weld9.Parent = part9
  442. weld9.Part0 = part9
  443. weld9.Part1 = part1
  444. weld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.6,0)
  445. local weld10 = Instance.new("Weld")
  446. weld10.Parent = part10
  447. weld10.Part0 = part10
  448. weld10.Part1 = part1
  449. weld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.9,0)
  450. local weld11 = Instance.new("Weld")
  451. weld11.Parent = part11
  452. weld11.Part0 = part11
  453. weld11.Part1 = part1
  454. weld11.C0 = CFrame.fromEulerAnglesXYZ(0.8,math.rad(90),0) * CFrame.new(0,-1.2,0)
  455. local weld12 = Instance.new("Weld")
  456. weld12.Parent = part12
  457. weld12.Part0 = part12
  458. weld12.Part1 = part11
  459. weld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  460. local weld13 = Instance.new("Weld")
  461. weld13.Parent = part13
  462. weld13.Part0 = part13
  463. weld13.Part1 = part1
  464. weld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,-math.rad(90)) * CFrame.new(0.5,-1.25,0)
  465. local weld14 = Instance.new("Weld")
  466. weld14.Parent = part14
  467. weld14.Part0 = part14
  468. weld14.Part1 = part1
  469. weld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(-0.5,-1.25,0)
  470. local weld15 = Instance.new("Weld")
  471. weld15.Parent = part15
  472. weld15.Part0 = part15
  473. weld15.Part1 = part1
  474. weld15.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),0,math.rad(180)) * CFrame.new(0,-1.7,0)
  475. local gairo = Instance.new("BodyGyro")
  476. gairo.Parent = nil
  477. if (script.Parent.className ~= "HopperBin") then
  478. Tool = Instance.new("HopperBin")
  479. Tool.Parent = Backpack
  480. Tool.Name = "Vajra"
  481. script.Parent = Tool
  482. end
  483. Bin = script.Parent
  484. function unequipweld()
  485. wld1.Part1 = Torso
  486. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.7) * CFrame.new(0,0,-0.75)
  487. weld1.Part1 = Torso
  488. weld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.7) * CFrame.new(0,0,-0.75)
  489. end
  490. function equipweld()
  491. wld1.Part1 = LeftArm
  492. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  493. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  494. weld1.Part1 = RightArm
  495. weld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  496. weld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  497. end
  498. function hideanim()
  499. for i = 0 , 1 , 0.07 do
  500. wait(0)
  501. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  502. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  503. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  504. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  505. end
  506. unequipweld()
  507. wait(0.2)
  508. for i = 0 , 1 , 0.07 do
  509. wait(0)
  510. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  511. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  512. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  513. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  514. end
  515. end
  516. function equipanim()
  517. for i = 0 , 1 , 0.085 do
  518. wait(0)
  519. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0.3*i,-0.3*i)
  520. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  521. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2*i,0.2*i,0.5*i)
  522. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  523. end
  524. equipweld()
  525. wait(0.1)
  526. for i = 0 , 1 , 0.075 do
  527. wait(0)
  528. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  529. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  530. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  531. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  532. end
  533. end
  534. function oneslash()
  535. attack = true
  536. combo = 1
  537. walking = nil
  538. Walk = nil
  539. local vel = Instance.new("BodyVelocity")
  540. vel.Parent = Torso
  541. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  542. vel.velocity = Head.CFrame.lookVector * 20
  543. ss(workspace,1)
  544. con1=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  545. for i = 0,1,0.2 do
  546. wait()
  547. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.3*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  548. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  549. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-2.8*i,1.57,0)
  550. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  551. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.2,0,-0.5*i)
  552. end
  553. vel.Parent = nil
  554. con1:disconnect()
  555. wait(0.1)
  556. attack = false
  557. end
  558. function twoslash()
  559. attack = true
  560. combo = 2
  561. local vel = Instance.new("BodyVelocity")
  562. vel.Parent = Torso
  563. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  564. vel.velocity = Head.CFrame.lookVector * 20
  565. ss(workspace,1)
  566. con1=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  567. for i = 0,1,0.2 do
  568. wait()
  569. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.3-0.4*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  570. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  571. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-2.8,-0.3,1.3*i)
  572. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  573. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.2,0,-0.5)
  574. end
  575. vel.Parent = nil
  576. con1:disconnect()
  577. wait(0.1)
  578. attack = false
  579. end
  580. function threeslash()
  581. attack = true
  582. combo = 3
  583. gairo.Parent = Head
  584. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  585. gairo.P = 20e+003
  586. gairo.cframe = Head.CFrame
  587. for i = 0,1,0.2 do
  588. wait()
  589. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57+1.57*i) * CFrame.new(0,0,-0.5)
  590. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3+2.8*i,0.3,-0.3+0.3*i)
  591. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,-0.3+0.3*i,1.3-1.3*i)
  592. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2+2.3*i,0.2-0.5*i,0.5-0.5*i)
  593. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.2-0.2*i,0,-0.5+0.5*i)
  594. end
  595. wait(0.2)
  596. boomeffect()
  597. bewm(workspace,1)
  598. ss(workspace,1)
  599. for i = 0,1,0.25 do
  600. wait()
  601. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.2*i,3.14,0) * CFrame.new(0,0,-0.5)
  602. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-1.8*i,0.3-0.6*i,0)
  603. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  604. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-1.8*i,-0.3+0.6*i,0)
  605. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  606. end
  607. wait(0.05)
  608. attack = false
  609. end
  610. function fourslash()
  611. attack = true
  612. combo = 4
  613. gairo.Parent = Head
  614. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  615. gairo.P = 20e+003
  616. gairo.cframe = Head.CFrame
  617. wait()
  618. for i = 0,1,0.2 do
  619. wait()
  620. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57*i) * CFrame.new(0,0,-0.5)
  621. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.7-1*i,-0.3,-0.3*i)
  622. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,1.3*i)
  623. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-1.8,-0.3+0.6*i,0)
  624. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,-1*i)
  625. end
  626. wait(0.2)
  627. boomeffect2(LeftArm,10,20)
  628. bewm(workspace,1)
  629. ss(workspace,1)
  630. for i = 0,1,0.3 do
  631. wait()
  632. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  633. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.7-1,-0.3,-0.3)
  634. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,1.3+0.3*i)
  635. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-1.8,-0.3+0.6,0)
  636. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,-1)
  637. end
  638. for i = 0,1,0.3 do
  639. wait()
  640. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  641. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.7-1,-0.3,-0.3)
  642. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,1.3+0.3-0.3*i)
  643. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-1.8,-0.3+0.6,0)
  644. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,-1)
  645. end
  646. wait(0.1)
  647. gairo.Parent = nil
  648. attack = false
  649. end
  650. function dashslash()
  651. attack = true
  652. combo = 4
  653. gairo.Parent = Head
  654. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  655. gairo.P = 20e+003
  656. gairo.cframe = Head.CFrame
  657. wait()
  658. for i = 0,1,0.2 do
  659. wait()
  660. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  661. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.7-1*i,-0.3,-0.3*i)
  662. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,1.3*i)
  663. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-1.8,-0.3+0.6*i,0)
  664. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,-1*i)
  665. end
  666. wait(0.2)
  667. boomeffect2(LeftArm,5,10)
  668. bewm(workspace,1)
  669. ss(workspace,1)
  670. for i = 0,1,0.3 do
  671. wait()
  672. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  673. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.7-1,-0.3,-0.3)
  674. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,1.3+0.3*i)
  675. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-1.8,-0.3+0.6,0)
  676. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,-1)
  677. end
  678. for i = 0,1,0.3 do
  679. wait()
  680. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  681. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.7-1,-0.3,-0.3)
  682. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,1.3+0.3-0.3*i)
  683. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-1.8,-0.3+0.6,0)
  684. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,-1)
  685. end
  686. wait(0.1)
  687. gairo.Parent = nil
  688. attack = false
  689. end
  690. function Onslaught()
  691. attack = true
  692. Character.Humanoid.WalkSpeed = 0
  693. walking = false
  694. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  695. gairo.Parent = Head
  696. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  697. gairo.P = 20e+003
  698. gairo.cframe = Head.CFrame
  699. for i = 0,1,0.1 do
  700. wait()
  701. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  702. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  703. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,-2*i)
  704. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5+0.5*i)
  705. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.37*i,0,0)
  706. end
  707. ss(workspace,1)
  708. wait(0.2)
  709. con1=prt1.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  710. for i = 0,1,0.15 do
  711. wait()
  712. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57+3.5*i) * CFrame.new(0,0,-0.5)
  713. LW.C0 = CFrame.new(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  714. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8-2*i,0,-2)
  715. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,1+0.67*i)
  716. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.37,0,0)
  717. end
  718. con1:disconnect()
  719. wait(0.2)
  720. boomeffect2(RightArm,30,50)
  721. bewm(workspace,1)
  722. ss(workspace,1)
  723. for i = 0,1,0.3 do
  724. wait()
  725. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57+3.5) * CFrame.new(0,0,-0.5)
  726. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  727. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8-2,0,-2)
  728. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,1+0.67)
  729. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.37,0,-0.3*i)
  730. end
  731. for i = 0,1,0.3 do
  732. wait()
  733. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57+3.5) * CFrame.new(0,0,-0.5)
  734. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  735. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8-2,0,-2)
  736. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,1+0.67)
  737. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.37,0,-0.3+0.3*i)
  738. end
  739. wait(0.2)
  740. gairo.Parent = nil
  741. attack = false
  742. end
  743. function DestroyerOfHeaven()
  744. attack = true
  745. Character.Humanoid.WalkSpeed = 0
  746. walking = false
  747. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  748. gairo.Parent = Head
  749. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  750. gairo.P = 20e+003
  751. gairo.cframe = Head.CFrame
  752. for i = 0,1,0.1 do
  753. wait()
  754. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57) * CFrame.new(0,0,-0.5)
  755. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  756. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0.3*i,-0.2*i)
  757. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  758. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.2*i,0.2*i,-0.3*i)
  759. end
  760. ss(workspace,1)
  761. wait(0.2)
  762. local vel = Instance.new("BodyVelocity")
  763. vel.Parent = Torso
  764. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  765. vel.velocity = Head.CFrame.lookVector * 80
  766. slasheffect()
  767. con1=Torso.Touched:connect(function(hit) DOH(hit,5,0) end)
  768. con2=part1.Touched:connect(function(hit) DOH(hit,5,0) end)
  769. con3=prt1.Touched:connect(function(hit) DOH(hit,5,0) end)
  770. for i = 0,1,0.2 do
  771. wait()
  772. Clone()
  773. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,-1.57+3.14*i) * CFrame.new(0,0,-0.5)
  774. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3-1.3*i)
  775. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.2)
  776. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  777. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,-0.3-0.6*i)
  778. end
  779. wait(0.1)
  780. vel.Parent = nil
  781. wait(0.2)
  782. con1:disconnect()
  783. con2:disconnect()
  784. con3:disconnect()
  785. wait(0.3)
  786. gairo.Parent = nil
  787. attack = false
  788. end
  789. function OT(hit)
  790. if hit.Parent == nil then return end
  791. local hum = hit.Parent:findFirstChild("Humanoid")
  792. if hum ~= nil and hum ~= Character.Humanoid then
  793. hum:TakeDamage(damage)
  794. end
  795. end
  796. function OT2(hit)
  797. if hit.Parent == nil then return end
  798. local hum = hit.Parent:findFirstChild("Humanoid")
  799. if hum ~= nil and hum ~= Character.Humanoid then
  800. hum:TakeDamage(damage)
  801. local torso = hit.Parent:findFirstChild("Torso")
  802. if torso.Parent ~= nil then
  803. if (torso.Position-RightArm.Position).magnitude<=25 then
  804. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  805. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  806. local Gyro=Instance.new("BodyGyro")
  807. Gyro.P=1000
  808. Gyro.D=Gyro.D/2
  809. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  810. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  811. Gyro.Parent=torso
  812. local bodyVelocity=Instance.new("BodyVelocity")
  813. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  814. bodyVelocity.P=500
  815. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  816. bodyVelocity.Parent=torso
  817. coroutine.resume(coroutine.create(function()
  818. wait(0.3)
  819. bodyVelocity:Remove()
  820. end))
  821. coroutine.resume(coroutine.create(function()
  822. wait(0.8)
  823. Gyro:Remove()
  824. end))
  825. end
  826. end
  827. end
  828. end
  829. function ss(parent,pitch)
  830. local SlashSound = Instance.new("Sound")
  831. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  832. SlashSound.Parent = parent
  833.  
  834. SlashSound.Volume = .7
  835. SlashSound.Pitch = pitch
  836. SlashSound.PlayOnRemove = true
  837. coroutine.resume(coroutine.create(function()
  838. wait(0)
  839. SlashSound.Parent = nil
  840. end))
  841. end
  842. function bewm(parent,pitch)
  843. local SlashSound = Instance.new("Sound")
  844. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  845. SlashSound.Parent = parent
  846.  
  847. SlashSound.Volume = .7
  848. SlashSound.Pitch = pitch
  849. SlashSound.PlayOnRemove = true
  850. coroutine.resume(coroutine.create(function()
  851. wait(0)
  852. SlashSound.Parent = nil
  853. end))
  854. end
  855. function boomeffect()
  856. local mesh = Instance.new("SpecialMesh")
  857. mesh.Scale = Vector3.new(2,2,2)
  858. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  859. local shell = Instance.new("Part")
  860. mesh.Parent = shell
  861. shell.Anchored = true
  862. shell.formFactor = 1
  863. shell.Size = Vector3.new(3,2,2)
  864. shell.CFrame = Torso.CFrame * CFrame.new(0,-2,-3)
  865. shell.Parent = game.workspace
  866. shell.Transparency = 0
  867. shell.BrickColor = BrickColor.new("Bright red")
  868. shell.CanCollide = false
  869. local mesh2 = Instance.new("SpecialMesh")
  870. mesh2.Scale = Vector3.new(2,2,2)
  871. mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  872. local shell2 = Instance.new("Part")
  873. mesh2.Parent = shell2
  874. shell2.Anchored = true
  875. shell2.formFactor = 1
  876. shell2.Size = Vector3.new(3,2,2)
  877. shell2.CFrame = Torso.CFrame * CFrame.new(0,-2,-3)
  878. shell2.Parent = game.workspace
  879. shell2.Transparency = 0
  880. shell2.BrickColor = BrickColor.new("Bright yellow")
  881. shell2.CanCollide = false
  882. local c = game.Workspace:GetChildren();
  883. for i = 1, #c do
  884. local hum = c[i]:findFirstChild("Humanoid")
  885. if hum ~= nil and hum.Health ~= 0 then
  886. local head = c[i]:findFirstChild("Head");
  887. if head ~= nil then
  888. local targ = head.Position - shell.Position;
  889. local mag = targ.magnitude;
  890. if mag <= 6 and c[i].Name ~= Player.Name then
  891. DBHit(head,math.random(5,10))
  892. end
  893. end
  894. end
  895. end
  896. coroutine.resume(coroutine.create(function(part,mash)
  897. for i = 0 , 1 , 0.1 do
  898. wait(0.045)
  899. mash.Scale = mesh.Scale + Vector3.new(1,1.2,1)
  900. part.CFrame = shell.CFrame * CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1.5,0)
  901. part.Transparency = shell.Transparency + 0.2
  902. end
  903. part.Transparency = 1
  904. part.Parent = nil
  905. end),shell,mesh)
  906. coroutine.resume(coroutine.create(function(part,mash)
  907. for i = 0 , 1 , 0.1 do
  908. wait(0.035)
  909. mash.Scale = mesh.Scale + Vector3.new(0.8,0.6,0.8)
  910. part.CFrame = shell.CFrame * CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1.5,0)
  911. part.Transparency = shell.Transparency + 0.2
  912. end
  913. part.Transparency = 1
  914. part.Parent = nil
  915. end),shell2,mesh2)
  916. end
  917. function boomeffect2(Arm,Numb1,Numb2)
  918. local mesh = Instance.new("BlockMesh")
  919. local shell = Instance.new("Part")
  920. mesh.Parent = shell
  921. shell.Anchored = true
  922. shell.formFactor = 1
  923. shell.Size = Vector3.new(2,2,2)
  924. shell.CFrame = Arm.CFrame * CFrame.new(0,-1.2,0)
  925. shell.Parent = game.workspace
  926. shell.Transparency = 0
  927. shell.BrickColor = BrickColor.new("Bright red")
  928. shell.CanCollide = false
  929. local mesh2 = Instance.new("SpecialMesh")
  930. mesh2.MeshType = "Sphere"
  931. local shell2 = Instance.new("Part")
  932. mesh2.Parent = shell2
  933. shell2.Anchored = true
  934. shell2.formFactor = 1
  935. shell2.Size = Vector3.new(2,2,2)
  936. shell2.CFrame = Arm.CFrame * CFrame.new(0,-1.2,0)
  937. shell2.Parent = game.workspace
  938. shell2.Transparency = 0
  939. shell2.BrickColor = BrickColor.new("Bright yellow")
  940. shell2.CanCollide = false
  941. local c = game.Workspace:GetChildren();
  942. for i = 1, #c do
  943. local hum = c[i]:findFirstChild("Humanoid")
  944. if hum ~= nil and hum.Health ~= 0 then
  945. local head = c[i]:findFirstChild("Head");
  946. if head ~= nil then
  947. local targ = head.Position - shell.Position;
  948. local mag = targ.magnitude;
  949. if mag <= 6 and c[i].Name ~= Player.Name then
  950. DBHit2(head,math.random(Numb1,Numb2))
  951. end
  952. end
  953. end
  954. end
  955. coroutine.resume(coroutine.create(function(part,mash)
  956. for i = 0 , 1 , 0.1 do
  957. wait(0.038)
  958. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  959. part.Transparency = part.Transparency + 0.2
  960. mash.Scale = mash.Scale + Vector3.new(0.1,0.1,0.1)
  961. end
  962. part.Transparency = 1
  963. part.Parent = nil
  964. end),shell,mesh)
  965. coroutine.resume(coroutine.create(function(part2,mash2)
  966. for i = 0 , 1 , 0.1 do
  967. wait(0.038)
  968. part2.CFrame = part2.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  969. part2.Transparency = part2.Transparency + 0.3
  970. mash2.Scale = mash2.Scale + Vector3.new(0.6,0.4,0.6)
  971. end
  972. part2.Transparency = 1
  973. part2.Parent = nil
  974. end),shell2,mesh2)
  975. end
  976. function DOHeffect(Arm,Numb1,Numb2,x,y,z)
  977. local mesh = Instance.new("BlockMesh")
  978. local shell = Instance.new("Part")
  979. mesh.Parent = shell
  980. shell.Anchored = true
  981. shell.formFactor = 1
  982. shell.Size = Vector3.new(2,2,2)
  983. shell.CFrame = Arm.CFrame * CFrame.new(x,y,z)
  984. shell.Parent = game.workspace
  985. shell.Transparency = 0
  986. shell.BrickColor = BrickColor.new("Bright red")
  987. shell.CanCollide = false
  988. local mesh2 = Instance.new("SpecialMesh")
  989. mesh2.MeshType = "Sphere"
  990. local shell2 = Instance.new("Part")
  991. mesh2.Parent = shell2
  992. shell2.Anchored = true
  993. shell2.formFactor = 1
  994. shell2.Size = Vector3.new(2,2,2)
  995. shell2.CFrame = Arm.CFrame * CFrame.new(x,y,z)
  996. shell2.Parent = game.workspace
  997. shell2.Transparency = 0
  998. shell2.BrickColor = BrickColor.new("Bright yellow")
  999. shell2.CanCollide = false
  1000. local c = game.Workspace:GetChildren();
  1001. for i = 1, #c do
  1002. local hum = c[i]:findFirstChild("Humanoid")
  1003. if hum ~= nil and hum.Health ~= 0 then
  1004. local head = c[i]:findFirstChild("Head");
  1005. if head ~= nil then
  1006. local targ = head.Position - shell.Position;
  1007. local mag = targ.magnitude;
  1008. if mag <= 6 and c[i].Name ~= Player.Name then
  1009. DOHHit(head,math.random(Numb1,Numb2),10)
  1010. end
  1011. end
  1012. end
  1013. end
  1014. coroutine.resume(coroutine.create(function(part)
  1015. for i = 0 , 1 , 0.1 do
  1016. wait(0.038)
  1017. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1018. part.Transparency = part.Transparency + 0.2
  1019. mesh.Scale = mesh.Scale + Vector3.new(0.1,0.1,0.1)
  1020. end
  1021. part.Transparency = 1
  1022. part.Parent = nil
  1023. end),shell)
  1024. coroutine.resume(coroutine.create(function(part)
  1025. for i = 0 , 1 , 0.1 do
  1026. wait(0.038)
  1027. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1028. part.Transparency = part.Transparency + 0.3
  1029. mesh2.Scale = mesh2.Scale + Vector3.new(0.6,0.4,0.6)
  1030. end
  1031. part.Transparency = 1
  1032. part.Parent = nil
  1033. end),shell2)
  1034. end
  1035. function slasheffect()
  1036. local mesh = Instance.new("BlockMesh")
  1037. mesh.Scale = Vector3.new(0.2,0.2,10)
  1038. local shell = Instance.new("Part")
  1039. mesh.Parent = shell
  1040. shell.Anchored = true
  1041. shell.formFactor = 1
  1042. shell.Size = Vector3.new(2,2,2)
  1043. shell.CFrame = Head.CFrame * CFrame.new(0,-2,-10)
  1044. shell.Parent = game.workspace
  1045. shell.Transparency = 0
  1046. shell.BrickColor = BrickColor.new("Bright yellow")
  1047. shell.CanCollide = false
  1048. coroutine.resume(coroutine.create(function(part)
  1049. for i = 0 , 1 , 0.1 do
  1050. wait(0.038)
  1051. --part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1052. part.Transparency = part.Transparency + 0.15
  1053. --mesh.Scale = mesh.Scale + Vector3.new(0.1,0.1,0.1)
  1054. end
  1055. part.Transparency = 1
  1056. part.Parent = nil
  1057. end),shell)
  1058. end
  1059. function effect()
  1060. local clone = blade1:clone()
  1061. clone.Parent = workspace
  1062. clone.Anchored = true
  1063. clone.Transparency = 0.6
  1064. clone.Reflectance = 0
  1065. clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  1066. clone.BrickColor = BrickColor.new("New Yeller")
  1067. coroutine.resume(coroutine.create(function()
  1068. wait(0.25)
  1069. clone.Parent = nil
  1070. end))
  1071. end
  1072. DBHit=function(hit,Damage) --credits to turdulator for making this function :D
  1073. if hit.Parent==nil then
  1074. return
  1075. end
  1076. h=hit.Parent:FindFirstChild("Humanoid")
  1077. t=hit.Parent:FindFirstChild("Torso")
  1078. if h~=nil and t~=nil then
  1079. if h.Parent==Character then
  1080. return
  1081. end
  1082. if math.random(0,99)+math.random()<=7.8 then
  1083. CRIT=true
  1084. Damage=Damage*3
  1085. --[[ Knockback=Knockback*2
  1086. r=Instance.new("BodyAngularVelocity")
  1087. r.P=3000
  1088. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1089. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1090. r.Parent=hit.Parent.Torso]]
  1091. s=Instance.new("Sound")
  1092. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1093. s.Volume=1
  1094. s.Pitch=2
  1095. s.Parent=hit
  1096. s.PlayOnRemove=true
  1097. s.Parent=nil
  1098.  
  1099. end
  1100. h:TakeDamage(Damage)
  1101. showDamage(hit.Parent,Damage,.5)
  1102. vl=Instance.new("BodyVelocity")
  1103. vl.P=4500
  1104. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1105. -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  1106. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,45,0)
  1107. vl.Parent=t
  1108. game:GetService("Debris"):AddItem(vl,.2)
  1109. rl=Instance.new("BodyAngularVelocity")
  1110. rl.P=3000
  1111. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1112. -- rl.angularvelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  1113. local tes = math.random(1,2)
  1114. if tes == 1 then
  1115. rl.angularvelocity=Vector3.new(0,0,math.random(-40,40))
  1116. elseif tes == 2 then
  1117. rl.angularvelocity=Vector3.new(math.random(-40,40),0,0)
  1118. end
  1119. rl.Parent=t
  1120. game:GetService("Debris"):AddItem(rl,.2)
  1121. else
  1122. if hit.CanCollide==false then
  1123. return
  1124. end
  1125. MagicCom:disconnect()
  1126. -- DBExplode(DB)
  1127. end
  1128. end
  1129. DBHit2=function(hit,Damage) --credits to turdulator for making this function :D
  1130. if hit.Parent==nil then
  1131. return
  1132. end
  1133. h=hit.Parent:FindFirstChild("Humanoid")
  1134. t=hit.Parent:FindFirstChild("Torso")
  1135. if h~=nil and t~=nil then
  1136. if h.Parent==Character then
  1137. return
  1138. end
  1139. if math.random(0,99)+math.random()<=7.8 then
  1140. CRIT=true
  1141. Damage=Damage*3
  1142. --[[ Knockback=Knockback*2
  1143. r=Instance.new("BodyAngularVelocity")
  1144. r.P=3000
  1145. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1146. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1147. r.Parent=hit.Parent.Torso]]
  1148. s=Instance.new("Sound")
  1149. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1150. s.Volume=1
  1151. s.Pitch=2
  1152. s.Parent=hit
  1153. s.PlayOnRemove=true
  1154. s.Parent=nil
  1155.  
  1156. end
  1157. h:TakeDamage(Damage)
  1158. showDamage(hit.Parent,Damage,.5)
  1159. vl=Instance.new("BodyVelocity")
  1160. vl.P=4500
  1161. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1162. -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,30,0)
  1163. vl.velocity=Head.CFrame.lookVector*35+Head.Velocity/1.05
  1164. vl.Parent=t
  1165. game:GetService("Debris"):AddItem(vl,.2)
  1166. rl=Instance.new("BodyAngularVelocity")
  1167. rl.P=3000
  1168. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1169. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1170. rl.Parent=t
  1171. game:GetService("Debris"):AddItem(rl,.2)
  1172. else
  1173. if hit.CanCollide==false then
  1174. return
  1175. end
  1176. MagicCom:disconnect()
  1177. -- DBExplode(DB)
  1178. end
  1179. end
  1180. DOHHit=function(hit,Damage,Pos) --credits to turdulator for making this function :D
  1181. if hit.Parent==nil then
  1182. return
  1183. end
  1184. h=hit.Parent:FindFirstChild("Humanoid")
  1185. t=hit.Parent:FindFirstChild("Torso")
  1186. if h~=nil and t~=nil then
  1187. if h.Parent==Character then
  1188. return
  1189. end
  1190. if math.random(0,99)+math.random()<=7.8 then
  1191. CRIT=true
  1192. Damage=Damage*3
  1193. --[[ Knockback=Knockback*2
  1194. r=Instance.new("BodyAngularVelocity")
  1195. r.P=3000
  1196. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1197. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1198. r.Parent=hit.Parent.Torso]]
  1199. s=Instance.new("Sound")
  1200. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1201. s.Volume=1
  1202. s.Pitch=2
  1203. s.Parent=hit
  1204. s.PlayOnRemove=true
  1205. s.Parent=nil
  1206.  
  1207. end
  1208. h:TakeDamage(Damage)
  1209. showDamage(hit.Parent,Damage,.5)
  1210. vl=Instance.new("BodyVelocity")
  1211. vl.P=4500
  1212. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1213. -- vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,60,0)
  1214. vl.velocity=Head.CFrame.lookVector+Head.Velocity/1.05
  1215. vl.Parent=t
  1216. game:GetService("Debris"):AddItem(vl,.2)
  1217. rl=Instance.new("BodyAngularVelocity")
  1218. rl.P=3000
  1219. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1220. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1221. rl.Parent=t
  1222. game:GetService("Debris"):AddItem(rl,.2)
  1223. else
  1224. if hit.CanCollide==false then
  1225. return
  1226. end
  1227. MagicCom:disconnect()
  1228. -- DBExplode(DB)
  1229. end
  1230. end
  1231. Damagefunc1=function(hit,Damage,Knockback)
  1232. if attackdebounce == false then
  1233. attackdebounce = true
  1234. coroutine.resume(coroutine.create(function()
  1235. wait(0.1)
  1236. attackdebounce = false
  1237. end))
  1238. if hit.Parent==nil then
  1239. return
  1240. end
  1241. CPlayer=Bin
  1242. h=hit.Parent:FindFirstChild("Humanoid")
  1243. if h~=nil and hit.Parent.Name~=Player.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1244. Damage=Damage
  1245. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1246. return
  1247. end]]
  1248. c=Instance.new("ObjectValue")
  1249. c.Name="creator"
  1250. c.Value=game.Players.LocalPlayer
  1251. c.Parent=h
  1252. game:GetService("Debris"):AddItem(c,.5)
  1253. -- print(c.Value)
  1254. if math.random(0,99)+math.random()<=7.8 then
  1255. CRIT=true
  1256. Damage=Damage*3
  1257. --[[ Knockback=Knockback*2
  1258. r=Instance.new("BodyAngularVelocity")
  1259. r.P=3000
  1260. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1261. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1262. r.Parent=hit.Parent.Torso]]
  1263. s=Instance.new("Sound")
  1264. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1265. s.Volume=1
  1266. s.Pitch=2
  1267. s.Parent=hit
  1268. s.PlayOnRemove=true
  1269. s.Parent=nil
  1270.  
  1271. end
  1272. Damage=Damage+math.random(0,10)
  1273. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1274. h:TakeDamage(Damage)
  1275. showDamage(hit.Parent,Damage,.5)
  1276. vp=Instance.new("BodyVelocity")
  1277. vp.P=500
  1278. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1279. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1280. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1281. if Knockback>0 then
  1282. vp.Parent=hit.Parent.Torso
  1283. end
  1284. game:GetService("Debris"):AddItem(vp,.25)
  1285. --[[ r=Instance.new("BodyAngularVelocity")
  1286. r.P=3000
  1287. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1288. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1289. r.Parent=hit.Parent.Torso]]
  1290. game:GetService("Debris"):AddItem(r,.5)
  1291. c=Instance.new("ObjectValue")
  1292. c.Name="creator"
  1293. c.Value=Player
  1294. c.Parent=h
  1295. game:GetService("Debris"):AddItem(c,.5)
  1296. CRIT=false
  1297. hitDeb=true
  1298. AttackPos=6
  1299. end
  1300. end
  1301. end
  1302. DOH=function(hit,Damage,Knockback)
  1303. if attackdebounce == false then
  1304. attackdebounce = true
  1305. coroutine.resume(coroutine.create(function()
  1306. wait(0.2)
  1307. attackdebounce = false
  1308. end))
  1309. if hit.Parent==nil then
  1310. return
  1311. end
  1312. CPlayer=Bin
  1313. h=hit.Parent:FindFirstChild("Humanoid")
  1314. if h~=nil and hit.Parent.Name~=Player.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1315. Damage=Damage
  1316. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1317. return
  1318. end]]
  1319. c=Instance.new("ObjectValue")
  1320. c.Name="creator"
  1321. c.Value=game.Players.LocalPlayer
  1322. c.Parent=h
  1323. game:GetService("Debris"):AddItem(c,.5)
  1324. -- print(c.Value)
  1325. if math.random(0,99)+math.random()<=7.8 then
  1326. CRIT=true
  1327. Damage=Damage*3
  1328. --[[ Knockback=Knockback*2
  1329. r=Instance.new("BodyAngularVelocity")
  1330. r.P=3000
  1331. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1332. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1333. r.Parent=hit.Parent.Torso]]
  1334. s=Instance.new("Sound")
  1335. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1336. s.Volume=1
  1337. s.Pitch=2
  1338. s.Parent=hit
  1339. s.PlayOnRemove=true
  1340. s.Parent=nil
  1341.  
  1342. end
  1343. Damage=Damage+math.random(0,10)
  1344. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1345. h:TakeDamage(Damage)
  1346. showDamage(hit.Parent,Damage,.5)
  1347. vp=Instance.new("BodyVelocity")
  1348. vp.P=500
  1349. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1350. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1351. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1352. if Knockback>0 then
  1353. vp.Parent=hit.Parent.Torso
  1354. end
  1355. game:GetService("Debris"):AddItem(vp,.25)
  1356. --[[ r=Instance.new("BodyAngularVelocity")
  1357. r.P=3000
  1358. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1359. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1360. r.Parent=hit.Parent.Torso]]
  1361. game:GetService("Debris"):AddItem(r,.5)
  1362. c=Instance.new("ObjectValue")
  1363. c.Name="creator"
  1364. c.Value=Player
  1365. c.Parent=h
  1366. game:GetService("Debris"):AddItem(c,.5)
  1367. wait(1)
  1368. DOHeffect(hit,5,15,2,0,0)
  1369. bewm(workspace,1)
  1370. wait(0.1)
  1371. DOHeffect(hit,5,15,-2,0.5,0)
  1372. bewm(workspace,1)
  1373. wait(0.1)
  1374. DOHeffect(hit,5,15,2,1,0)
  1375. bewm(workspace,1)
  1376. wait(0.1)
  1377. DOHeffect(hit,5,15,-2,1.5,0)
  1378. bewm(workspace,1)
  1379. CRIT=false
  1380. hitDeb=true
  1381. AttackPos=6
  1382. end
  1383. end
  1384. end
  1385. showDamage=function(Char,Dealt,du)
  1386. m=Instance.new("Model")
  1387. m.Name=tostring(Dealt)
  1388. h=Instance.new("Humanoid")
  1389. h.Health=0
  1390. h.MaxHealth=0
  1391. h.Parent=m
  1392. c=Instance.new("Part")
  1393. c.Transparency=0
  1394. c.BrickColor=BrickColor:Red()
  1395. if CRIT==true then
  1396. c.BrickColor=BrickColor.new("Really red")
  1397. end
  1398. c.Name="Head"
  1399. c.TopSurface=0
  1400. c.BottomSurface=0
  1401. c.formFactor="Plate"
  1402. c.Size=Vector3.new(1,.4,1)
  1403. ms=Instance.new("CylinderMesh")
  1404. ms.Scale=Vector3.new(.8,.8,.8)
  1405. if CRIT==true then
  1406. ms.Scale=Vector3.new(1.25,1.5,1.25)
  1407. end
  1408. ms.Parent=c
  1409. c.Reflectance=0
  1410. Instance.new("BodyGyro").Parent=c
  1411. c.Parent=m
  1412. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1413. f=Instance.new("BodyPosition")
  1414. f.P=2000
  1415. f.D=100
  1416. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1417. f.position=c.Position+Vector3.new(0,3,0)
  1418. f.Parent=c
  1419. game:GetService("Debris"):AddItem(m,.5+du)
  1420. c.CanCollide=false
  1421. m.Parent=workspace
  1422. c.CanCollide=false
  1423. end
  1424. function Clone()
  1425. for _,v in pairs(Torso.Parent:children()) do
  1426. if v.className=="Part" then
  1427. n=v:clone()
  1428. n.archivable=true
  1429. n.Anchored=true
  1430. n.CanCollide=false
  1431. n.Name="TRAILER"
  1432. n.BrickColor=v.BrickColor
  1433. n.Parent=workspace
  1434. coroutine.resume(coroutine.create(function(ne) for i=1, 40 do ne.Transparency=i/40 wait() end ne.Parent=nil end),n)
  1435. elseif v.className=="Hat" then
  1436. n=v.Handle:clone()
  1437. n.archivable=true
  1438. n.Anchored=true
  1439. n.CanCollide=false
  1440. n.Name="TRAILER"
  1441. n.BrickColor=v.Handle.BrickColor
  1442. n.Parent=workspace
  1443. coroutine.resume(coroutine.create(function(ne) for i=1, 40 do ne.Transparency=i/40 wait() end ne.Parent=nil end),n)
  1444. end
  1445. end
  1446. --[[ for _,v in pairs(modelzorz:children()) do
  1447. if v.className=="Part" then
  1448. n=v:clone()
  1449. n.archivable=true
  1450. n.Anchored=true
  1451. n.CanCollide=false
  1452. n.Name="TRAILER"
  1453. n.BrickColor=v.BrickColor
  1454. n.Parent=workspace
  1455. coroutine.resume(coroutine.create(function(ne) for i=1, 12 do ne.Transparency=i/12 wait() end ne.Parent=nil end),n)
  1456. end
  1457. end]]
  1458. end
  1459. function Stance()
  1460. while walking == false do
  1461. for i = 0,1,0.03 do
  1462. wait()
  1463. if walking == false and attack == false then
  1464. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.1*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  1465. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3-0.1*i,-0.3+0.1*i)
  1466. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1467. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2-0.1*i,0.5-0.1*i)
  1468. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1469. end
  1470. end
  1471. for i = 0,1,0.03 do
  1472. wait()
  1473. if walking == false and attack == false then
  1474. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.1-0.1*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  1475. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3-0.1+0.1*i,-0.3+0.1-0.1*i)
  1476. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1477. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2-0.1+0.1*i,0.5-0.1+0.1*i)
  1478. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1479. end
  1480. end
  1481. end
  1482. end
  1483. GetWalk=function()--tell whenever the Humanoid is walking.
  1484. if (Torso.Velocity-Vector3.new(0,Torso.Velocity.y,0)).magnitude>=1 then
  1485. Walk = true
  1486. else
  1487. Walk = false
  1488. end
  1489. print(Walk)
  1490. end
  1491. hold = false
  1492. function ob1d(mouse)
  1493. if attack == true then return end
  1494. hold = true
  1495. if walking == true and combo == 0 then
  1496. attack = true
  1497. Character.Humanoid.WalkSpeed = 0
  1498. wait(0.1)
  1499. walking = false
  1500. fourslash()
  1501. combo = 0
  1502. Stance()
  1503. wait(0.2)
  1504. Character.Humanoid.WalkSpeed = 16
  1505. Stance()
  1506. elseif walking == false then
  1507. if combo == 0 then
  1508. oneslash()
  1509. walking = false
  1510. coroutine.resume(coroutine.create(function()
  1511. wait(0.5)
  1512. if attack == false then
  1513. combo = 0
  1514. walking = false
  1515. Stance()
  1516. end
  1517. end))
  1518. elseif combo == 1 then
  1519. twoslash()
  1520. walking = false
  1521. coroutine.resume(coroutine.create(function()
  1522. wait(0.5)
  1523. if attack == false then
  1524. combo = 0
  1525. walking = false
  1526. Stance()
  1527. end
  1528. end))
  1529. elseif combo == 2 then
  1530. threeslash()
  1531. walking = false
  1532. coroutine.resume(coroutine.create(function()
  1533. wait(0.6)
  1534. gairo.Parent = nil
  1535. if attack == false then
  1536. combo = 0
  1537. walking = false
  1538. Stance()
  1539. end
  1540. end))
  1541. elseif combo == 3 then
  1542. fourslash()
  1543. walking = false
  1544. coroutine.resume(coroutine.create(function()
  1545. wait(0.2)
  1546. if attack == false then
  1547. combo = 0
  1548. walking = false
  1549. Stance()
  1550. end
  1551. end))
  1552. end
  1553. end
  1554. end
  1555. function ob1u(mouse)
  1556. hold = false
  1557. end
  1558. buttonhold = false
  1559. function key(key)
  1560. if key == "w" or key == "a" or key == "s" or key == "d" then
  1561. if key == "w" then
  1562. holdingW = true
  1563. elseif key == "a" then
  1564. holdingA = true
  1565. elseif key == "s" then
  1566. holdingS = true
  1567. elseif key == "d" then
  1568. holdingD = true
  1569. end
  1570. walking = true
  1571. gairo.Parent = nil
  1572. Character.Humanoid.WalkSpeed = 16
  1573. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  1574. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1575. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1576. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1577. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1578. for i = 0,1,0.1 do
  1579. wait()
  1580. if walking == true then
  1581. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  1582. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1583. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  1584. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1585. end
  1586. end
  1587. wait(0.1)
  1588. while walking == true do
  1589. wait()
  1590. for i = 0,1,0.1 do
  1591. wait()
  1592. if walking == true and attack == false then
  1593. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-2*i,0,0)
  1594. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1595. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0)
  1596. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1597. end
  1598. end
  1599. for i = 0,1,0.1 do
  1600. wait()
  1601. if walking == true and attack == false then
  1602. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-2+2*i,0,0)
  1603. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1604. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2-2*i,0,0)
  1605. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1606. end
  1607. end
  1608. end
  1609. --Character.Humanoid.WalkSpeed = 16
  1610. end
  1611. if attack == true then return end
  1612. if key == "z" then
  1613. Onslaught()
  1614. end
  1615. if key == "x" then
  1616. DestroyerOfHeaven()
  1617. end
  1618. end
  1619. function key2(key)
  1620. if attack == true then return end
  1621. if key == "w" then
  1622. holdingW = false
  1623. elseif key == "a" then
  1624. holdingA = false
  1625. elseif key == "s" then
  1626. holdingS = false
  1627. elseif key == "d" then
  1628. holdingD = false
  1629. end
  1630. if key == "w" or key == "a" or key == "s" or key == "d" then
  1631. if walkdebounce == false then
  1632. if holdingW == false and holdingA == false and holdingS == false and holdingD == false then
  1633. coroutine.resume(coroutine.create(function()
  1634. for i = 0,50 do
  1635. wait(0)
  1636. walkdebounce = true
  1637. end
  1638. walkdebounce = false
  1639. end))
  1640. walking = false
  1641. Character.Humanoid.WalkSpeed = 0
  1642. gairo.Parent = Head
  1643. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1644. gairo.P = 20e+003
  1645. gairo.cframe = Head.CFrame
  1646. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  1647. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1648. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  1649. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1650. for i = 0,1,0.1 do
  1651. wait()
  1652. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.1*i,3.14,-1.57*i) * CFrame.new(0,0,-0.5)
  1653. end
  1654. gairo.Parent = nil
  1655. wait(0.1)
  1656. while walking == false do
  1657. for i = 0,1,0.03 do
  1658. wait()
  1659. if walking == false and attack == false then
  1660. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.1*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  1661. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3-0.1*i,-0.3+0.1*i)
  1662. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1663. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2-0.1*i,0.5-0.1*i)
  1664. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1665. end
  1666. end
  1667. for i = 0,1,0.03 do
  1668. wait()
  1669. if walking == false and attack == false then
  1670. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.1-0.1*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  1671. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3-0.1+0.1*i,-0.3+0.1-0.1*i)
  1672. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1673. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2-0.1+0.1*i,0.5-0.1+0.1*i)
  1674. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1675. end
  1676. end
  1677. end
  1678. end
  1679. end
  1680. end
  1681. end
  1682. function s(mouse)
  1683. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1684. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1685. mouse.KeyDown:connect(key)
  1686. mouse.KeyUp:connect(key2)
  1687. sheathed = false
  1688. player = Player
  1689. ch = Character
  1690. RSH = ch.Torso["Right Shoulder"]
  1691. LSH = ch.Torso["Left Shoulder"]
  1692. RHP = ch.Torso["Right Hip"]
  1693. LHP = ch.Torso["Left Hip"]
  1694. --
  1695. RSH.Parent = nil
  1696. LSH.Parent = nil
  1697. --[[RHP.C0 = CFrame.new(-0.5, -1.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1698. RHP.C1 = CFrame.new(0, 0.5, 0)
  1699. LHP.C0 = CFrame.new(0.5, -1.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1700. LHP.C1 = CFrame.new(0, 0.5, 0) ]]
  1701. --
  1702. RW.Part0 = ch.Torso
  1703. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1704. RW.C1 = CFrame.new(0, 0.5, 0)
  1705. RW.Part1 = ch["Right Arm"]
  1706. RW.Parent = ch.Torso
  1707. --_G.R = RW
  1708. --
  1709. LW.Part0 = ch.Torso
  1710. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1711. LW.C1 = CFrame.new(0, 0.5, 0)
  1712. LW.Part1 = ch["Left Arm"]
  1713. LW.Parent = ch.Torso
  1714. --_G.L = LW
  1715. --
  1716. --[[RW2.Part0 = ch.Torso
  1717. RW2.C0 = CFrame.new(0.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1718. RW2.C1 = CFrame.new(0, 0.5, 0)
  1719. RW2.Part1 = ch["Right Leg"]
  1720. RW2.Parent = ch.Torso
  1721. --_G.L = LW
  1722. --
  1723. LW2.Part0 = ch.Torso
  1724. LW2.C0 = CFrame.new(-0.5, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1725. LW2.C1 = CFrame.new(0, 0.5, 0)
  1726. LW2.Part1 = ch["Left Leg"]
  1727. LW2.Parent = ch.Torso
  1728. --_G.L = LW
  1729. -- ]]
  1730. equipanim()
  1731. end
  1732. function ds(mouse)
  1733. sheathed = true
  1734. guardy = false
  1735. walking = nil
  1736. Character.Humanoid.WalkSpeed = 16
  1737. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  1738. --[[RHP.C0 = CFrame.new(0.5, -1.5, 0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1739. RHP.C1 = CFrame.new(0, 0, 0)
  1740. LHP.C0 = CFrame.new(-0.5, -1.5, 0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1741. LHP.C1 = CFrame.new(0, 0, 0) ]]
  1742. gairo.Parent = nil
  1743. hideanim()
  1744. RW.Parent = nil
  1745. LW.Parent = nil
  1746. RSH.Parent = player.Character.Torso
  1747. LSH.Parent = player.Character.Torso
  1748. end
  1749. Bin.Selected:connect(s)
  1750. Bin.Deselected:connect(ds)
  1751. --[[function onRunning(speed)
  1752. if sheathed == false and attack == false then
  1753. if speed>0 then
  1754. walking = true
  1755. gairo.Parent = nil
  1756. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  1757. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1758. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1759. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1760. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1761. for i = 0,1,0.1 do
  1762. wait()
  1763. if walking == true then
  1764. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  1765. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1766. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  1767. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1768. end
  1769. end
  1770. wait(0.1)
  1771. while walking == true do
  1772. wait()
  1773. for i = 0,1,0.1 do
  1774. wait()
  1775. if walking == true and attack == false then
  1776. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-2*i,0,0)
  1777. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1778. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0)
  1779. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1780. end
  1781. end
  1782. for i = 0,1,0.1 do
  1783. wait()
  1784. if walking == true and attack == false then
  1785. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1-2+2*i,0,0)
  1786. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1787. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2-2*i,0,0)
  1788. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1789. end
  1790. end
  1791. end
  1792. Character.Humanoid.WalkSpeed = 16
  1793. else
  1794. if walkdebounce == false then
  1795. coroutine.resume(coroutine.create(function()
  1796. for i = 0,50 do
  1797. wait(0)
  1798. walkdebounce = true
  1799. end
  1800. walkdebounce = false
  1801. end))
  1802. walking = false
  1803. Character.Humanoid.WalkSpeed = 0
  1804. gairo.Parent = Head
  1805. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1806. gairo.P = 20e+003
  1807. gairo.cframe = Head.CFrame
  1808. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  1809. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1810. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  1811. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1812. for i = 0,1,0.1 do
  1813. wait()
  1814. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.1*i,3.14,-1.57*i) * CFrame.new(0,0,-0.5)
  1815. end
  1816. gairo.Parent = nil
  1817. wait(0.1)
  1818. while walking == false do
  1819. for i = 0,1,0.03 do
  1820. wait()
  1821. if walking == false and attack == false then
  1822. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.1*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  1823. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3-0.1*i,-0.3+0.1*i)
  1824. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1825. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2-0.1*i,0.5-0.1*i)
  1826. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1827. end
  1828. end
  1829. for i = 0,1,0.03 do
  1830. wait()
  1831. if walking == false and attack == false then
  1832. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.67+0.1-0.1*i,3.14,-1.57) * CFrame.new(0,0,-0.5)
  1833. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3-0.1+0.1*i,-0.3+0.1-0.1*i)
  1834. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1835. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2-0.1+0.1*i,0.5-0.1+0.1*i)
  1836. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1837. end
  1838. end
  1839. end
  1840. end
  1841. end
  1842. end
  1843. end
  1844. Character.Humanoid.Running:connect(onRunning)]]
  1845. wait(1)
  1846. -- lego blockland This acts as a chat filter. Don't ask why I do it. I just do >.>
  1847. --[[
  1848. Copyrighted (C) Fenrier 2011
  1849. This script is copyrighted for Fenrier. Any use of this script is breaking
  1850. this copyright.
  1851. All Rights Reserved.
  1852. ]]
Add Comment
Please, Sign In to add comment