roblox katana script


SUBMITTED BY: Guest

DATE: Nov. 29, 2013, 2:46 p.m.

FORMAT: Text only

SIZE: 65.8 kB

HITS: 635

  1. Player = script.Parent.Parent
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. attackdebounce = false
  17. combo = 0
  18. mana = 400
  19. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  20. lightning = false
  21. restoring = false
  22. --player
  23. player = nil
  24. --save shoulders
  25. RSH, LSH = nil, nil
  26. --welds
  27. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  28. --what anim
  29. anim = "none"
  30. if Character:findFirstChild("Katana",true) ~= nil then
  31. Character:findFirstChild("Katana",true).Parent = nil
  32. end
  33. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  34. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  35. end
  36. local modelzorz = Instance.new("Model")
  37. modelzorz.Name = "Katana"
  38. modelzorz.Parent = Character
  39. local prt1 = Instance.new("Part")
  40. prt1.formFactor = 1
  41. prt1.Parent = modelzorz
  42. prt1.CanCollide = false
  43. prt1.BrickColor = BrickColor.new("Really red")
  44. prt1.Name = "Handle"
  45. prt1.Transparency = 0
  46. prt1.Size = Vector3.new(1,1,1)
  47. prt1.CFrame = Torso.CFrame
  48. local prt2 = Instance.new("Part")
  49. prt2.formFactor = 1
  50. prt2.Parent = modelzorz
  51. prt2.CanCollide = false
  52. prt2.BrickColor = BrickColor.new("Really black")
  53. prt2.Name = "Handle2"
  54. prt2.Transparency = 0
  55. prt2.Size = Vector3.new(1,1,1)
  56. prt2.CFrame = Torso.CFrame
  57. local prt3 = Instance.new("Part")
  58. prt3.formFactor = 1
  59. prt3.Parent = modelzorz
  60. prt3.CanCollide = false
  61. prt3.BrickColor = BrickColor.new("Dark grey")
  62. prt3.Name = "Handle3"
  63. prt3.Transparency = 0
  64. prt3.Size = Vector3.new(1,1,1)
  65. prt3.CFrame = Torso.CFrame
  66. local prt4 = Instance.new("Part")
  67. prt4.formFactor = 1
  68. prt4.Parent = modelzorz
  69. prt4.CanCollide = false
  70. prt4.BrickColor = BrickColor.new("Really black")
  71. prt4.Name = "Blade1"
  72. prt4.Reflectance = 0.4
  73. prt4.Transparency = 0
  74. prt4.Size = Vector3.new(1,3,1)
  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("Really black")
  81. prt5.Name = "Blade2"
  82. prt5.Transparency = 0
  83. prt5.Size = Vector3.new(1,1,1)
  84. prt5.CFrame = Torso.CFrame
  85. local prt6 = Instance.new("Part")
  86. prt6.formFactor = 1
  87. prt6.Parent = modelzorz
  88. prt6.CanCollide = false
  89. prt6.BrickColor = BrickColor.new("Really black")
  90. prt6.Name = "Blade3"
  91. prt6.Reflectance = 0.4
  92. prt6.Transparency = 0
  93. prt6.Size = Vector3.new(1,1,1)
  94. prt6.CFrame = Torso.CFrame
  95. local prt7 = Instance.new("Part")
  96. prt7.formFactor = 1
  97. prt7.Parent = modelzorz
  98. prt7.CanCollide = false
  99. prt7.BrickColor = BrickColor.new("Really red")
  100. prt7.Name = "Handle3"
  101. prt7.Transparency = 0
  102. prt7.Size = Vector3.new(1,1,1)
  103. prt7.CFrame = Torso.CFrame
  104. local prt8 = Instance.new("Part")
  105. prt8.formFactor = 1
  106. prt8.Parent = modelzorz
  107. prt8.CanCollide = false
  108. prt8.BrickColor = BrickColor.new("Really black")
  109. prt8.Name = "Handle4"
  110. prt8.Transparency = 0
  111. prt8.Size = Vector3.new(1,1,1)
  112. prt8.CFrame = Torso.CFrame
  113. local prt9 = Instance.new("Part")
  114. prt9.formFactor = 1
  115. prt9.Parent = modelzorz
  116. prt9.CanCollide = false
  117. prt9.BrickColor = BrickColor.new("Really black")
  118. prt9.Name = "Handle5"
  119. prt9.Transparency = 0
  120. prt9.Size = Vector3.new(1,1,1)
  121. prt9.CFrame = Torso.CFrame
  122. local prt10 = Instance.new("Part")
  123. prt10.formFactor = 1
  124. prt10.Parent = modelzorz
  125. prt10.CanCollide = false
  126. prt10.BrickColor = BrickColor.new("Really red")
  127. prt10.Name = "Handle6"
  128. prt10.Transparency = 0
  129. prt10.Size = Vector3.new(1,1,1)
  130. prt10.CFrame = Torso.CFrame
  131. local prt11 = Instance.new("Part")
  132. prt11.formFactor = 1
  133. prt11.Parent = modelzorz
  134. prt11.CanCollide = false
  135. prt11.BrickColor = BrickColor.new("Really red")
  136. prt11.Name = "Handle7"
  137. prt11.Transparency = 0
  138. prt11.Size = Vector3.new(1,1,1)
  139. prt11.CFrame = Torso.CFrame
  140. local prt12 = Instance.new("Part")
  141. prt12.formFactor = 1
  142. prt12.Parent = modelzorz
  143. prt12.CanCollide = false
  144. prt12.BrickColor = BrickColor.new("Dark grey")
  145. prt12.Name = "Handle8"
  146. prt12.Transparency = 0
  147. prt12.Size = Vector3.new(1,1,1)
  148. prt12.CFrame = Torso.CFrame
  149. local prt13 = Instance.new("Part")
  150. prt13.formFactor = 1
  151. prt13.Parent = modelzorz
  152. prt13.CanCollide = false
  153. prt13.BrickColor = BrickColor.new("Really black")
  154. prt13.Name = "Blade4"
  155. prt13.Reflectance = 0.4
  156. prt13.Transparency = 0
  157. prt13.Size = Vector3.new(1,1,1)
  158. prt13.CFrame = Torso.CFrame
  159. local prt14 = Instance.new("Part")
  160. prt14.formFactor = 1
  161. prt14.Parent = modelzorz
  162. prt14.CanCollide = false
  163. prt14.BrickColor = BrickColor.new("Really black")
  164. prt14.Name = "Blade5"
  165. prt14.Reflectance = 0.4
  166. prt14.Transparency = 0
  167. prt14.Size = Vector3.new(1,1,1)
  168. prt14.CFrame = Torso.CFrame
  169. local prt15 = Instance.new("Part")
  170. prt15.formFactor = 1
  171. prt15.Parent = modelzorz
  172. prt15.CanCollide = false
  173. prt15.BrickColor = BrickColor.new("Really black")
  174. prt15.Name = "Blade6"
  175. prt15.Reflectance = 0.4
  176. prt15.Transparency = 0
  177. prt15.Size = Vector3.new(1,1,1)
  178. prt15.CFrame = Torso.CFrame
  179. local prt16 = Instance.new("Part")
  180. prt16.formFactor = 1
  181. prt16.Parent = modelzorz
  182. prt16.CanCollide = false
  183. prt16.BrickColor = BrickColor.new("Really black")
  184. prt16.Name = "Blade7"
  185. prt16.Reflectance = 0.4
  186. prt16.Transparency = 0
  187. prt16.Size = Vector3.new(1,1,1)
  188. prt16.CFrame = Torso.CFrame
  189. modelzorz:BreakJoints()
  190. local msh1 = Instance.new("CylinderMesh")
  191. msh1.Parent = prt1
  192. msh1.Scale = Vector3.new(0.3,1,0.5)
  193. local msh2 = Instance.new("CylinderMesh")
  194. msh2.Parent = prt2
  195. msh2.Scale = Vector3.new(0.3,0.1,0.5)
  196. local msh3 = Instance.new("BlockMesh")
  197. msh3.Parent = prt3
  198. msh3.Scale = Vector3.new(0.4,0.3,0.4)
  199. local msh4 = Instance.new("BlockMesh")
  200. msh4.Parent = prt4
  201. msh4.Scale = Vector3.new(0.1,1,0.3)
  202. local msh5 = Instance.new("CylinderMesh")
  203. msh5.Parent = prt5
  204. msh5.Scale = Vector3.new(0.2,1,0.5)
  205. local msh6 = Instance.new("SpecialMesh")
  206. msh6.Parent = prt6
  207. msh6.MeshType = "Wedge"
  208. msh6.Scale = Vector3.new(0.1,0.7,0.3)
  209. local msh7 = Instance.new("CylinderMesh")
  210. msh7.Parent = prt7
  211. msh7.Scale = Vector3.new(0.2,0.1,0.5)
  212. local msh8 = Instance.new("CylinderMesh")
  213. msh8.Parent = prt8
  214. msh8.Scale = Vector3.new(0.2,0.1,0.5)
  215. local msh9 = Instance.new("CylinderMesh")
  216. msh9.Parent = prt9
  217. msh9.Scale = Vector3.new(0.2,0.1,0.5)
  218. local msh10 = Instance.new("CylinderMesh")
  219. msh10.Parent = prt10
  220. msh10.Scale = Vector3.new(0.2,0.1,0.5)
  221. local msh11 = Instance.new("CylinderMesh")
  222. msh11.Parent = prt11
  223. msh11.Scale = Vector3.new(0.2,0.1,0.5)
  224. local msh12 = Instance.new("BlockMesh")
  225. msh12.Parent = prt12
  226. msh12.Scale = Vector3.new(0.2,0.2,0.3)
  227. local msh13 = Instance.new("BlockMesh")
  228. msh13.Parent = prt13
  229. msh13.Scale = Vector3.new(0.1,0.5,0.3)
  230. local msh14 = Instance.new("BlockMesh")
  231. msh14.Parent = prt14
  232. msh14.Scale = Vector3.new(0.1,0.1,0.1)
  233. local msh15 = Instance.new("BlockMesh")
  234. msh15.Parent = prt15
  235. msh15.Scale = Vector3.new(0.1,0.3,0.3)
  236. local msh16 = Instance.new("SpecialMesh")
  237. msh16.Parent = prt16
  238. msh16.MeshType = "Wedge"
  239. msh16.Scale = Vector3.new(0.1,0.5,0.3)
  240. local wld1 = Instance.new("Weld")
  241. wld1.Parent = prt1
  242. wld1.Part0 = prt1
  243. wld1.Part1 = Torso
  244. wld1.C0 = CFrame.fromEulerAnglesXYZ(-1.7,0,0) * CFrame.new(1,1,0.5)
  245. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  246. local wld2 = Instance.new("Weld")
  247. wld2.Parent = prt2
  248. wld2.Part0 = prt2
  249. wld2.Part1 = prt1
  250. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.66,0)
  251. wld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  252. local wld3 = Instance.new("Weld")
  253. wld3.Parent = prt3
  254. wld3.Part0 = prt3
  255. wld3.Part1 = prt1
  256. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.78,0)
  257. wld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  258. local wld4 = Instance.new("Weld")
  259. wld4.Parent = prt4
  260. wld4.Part0 = prt4
  261. wld4.Part1 = prt3
  262. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.35,0)
  263. wld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  264. local wld5 = Instance.new("Weld")
  265. wld5.Parent = prt5
  266. wld5.Part0 = prt5
  267. wld5.Part1 = prt3
  268. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.77,0)
  269. wld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  270. local wld6 = Instance.new("Weld")
  271. wld6.Parent = prt6
  272. wld6.Part0 = prt6
  273. wld6.Part1 = prt4
  274. wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.61,0)
  275. wld6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  276. local wld7 = Instance.new("Weld")
  277. wld7.Parent = prt7
  278. wld7.Part0 = prt7
  279. wld7.Part1 = Torso
  280. wld7.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1.57,0) * CFrame.new(0.6,1,-0.6)
  281. wld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  282. local wld8 = Instance.new("Weld")
  283. wld8.Parent = prt8
  284. wld8.Part0 = prt8
  285. wld8.Part1 = prt7
  286. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.12,0)
  287. wld8.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  288. local wld9 = Instance.new("Weld")
  289. wld9.Parent = prt9
  290. wld9.Part0 = prt9
  291. wld9.Part1 = prt7
  292. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.12,0)
  293. wld9.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  294. local wld10 = Instance.new("Weld")
  295. wld10.Parent = prt10
  296. wld10.Part0 = prt10
  297. wld10.Part1 = prt7
  298. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,0)
  299. wld10.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  300. local wld11 = Instance.new("Weld")
  301. wld11.Parent = prt11
  302. wld11.Part0 = prt11
  303. wld11.Part1 = prt7
  304. wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.24,0)
  305. wld11.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  306. local wld12 = Instance.new("Weld")
  307. wld12.Parent = prt12
  308. wld12.Part0 = prt12
  309. wld12.Part1 = prt7
  310. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.4,0)
  311. wld12.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  312. local wld13 = Instance.new("Weld")
  313. wld13.Parent = prt13
  314. wld13.Part0 = prt13
  315. wld13.Part1 = prt12
  316. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.42,0)
  317. wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  318. local wld14 = Instance.new("Weld")
  319. wld14.Parent = prt14
  320. wld14.Part0 = prt14
  321. wld14.Part1 = prt13
  322. wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.35,0.1)
  323. wld14.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  324. local wld15 = Instance.new("Weld")
  325. wld15.Parent = prt15
  326. wld15.Part0 = prt15
  327. wld15.Part1 = prt14
  328. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,-0.1)
  329. wld15.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  330. local wld16 = Instance.new("Weld")
  331. wld16.Parent = prt16
  332. wld16.Part0 = prt16
  333. wld16.Part1 = prt15
  334. wld16.C0 = CFrame.fromEulerAnglesXYZ(3.14,0,0) * CFrame.new(0,0.48,0)
  335. wld16.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  336. local SlashSound = Instance.new("Sound") -- PRELOADING SOUNDS TROLOLOL
  337. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  338. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  339. SlashSound.Parent = modelzorz
  340. SlashSound.Volume = .7
  341. SlashSound.Pitch = 1
  342. local SlashSound = Instance.new("Sound")
  343. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  344. SlashSound.Parent = modelzorz
  345. SlashSound.Volume = .5
  346. SlashSound.Pitch = 1
  347. local SlashSound = Instance.new("Sound")
  348. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  349. SlashSound.Parent = modelzorz
  350. SlashSound.Volume = .7
  351. SlashSound.Pitch = 1
  352. local SlashSound = Instance.new("Sound")
  353. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  354. SlashSound.Parent = modelzorz
  355. SlashSound.Volume = .7
  356. SlashSound.Pitch = 1
  357. local fengui = Instance.new("GuiMain")
  358. fengui.Parent = Player.PlayerGui
  359. fengui.Name = "manaGUI"
  360. local fenframe = Instance.new("Frame")
  361. fenframe.Parent = fengui
  362. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  363. fenframe.BackgroundTransparency = 1
  364. fenframe.BorderColor3 = Color3.new(17,17,17)
  365. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  366. local fentext = Instance.new("TextLabel")
  367. fentext.Parent = fenframe
  368. fentext.Text = "Mana("..mana..")"
  369. fentext.BackgroundTransparency = 1
  370. fentext.SizeConstraint = "RelativeXY"
  371. fentext.TextXAlignment = "Center"
  372. fentext.TextYAlignment = "Center"
  373. fentext.Position = UDim2.new(0,80,1,200)
  374. local fentext2 = Instance.new("TextLabel")
  375. fentext2.Parent = fenframe
  376. fentext2.Text = " "
  377. fentext2.BackgroundTransparency = 0
  378. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  379. fentext2.SizeConstraint = "RelativeXY"
  380. fentext2.TextXAlignment = "Center"
  381. fentext2.TextYAlignment = "Center"
  382. fentext2.Position = UDim2.new(0,10,1,170)
  383. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  384. local fentext3 = Instance.new("TextLabel")
  385. fentext3.Parent = fenframe
  386. fentext3.Text = " "
  387. fentext3.BackgroundTransparency = 0
  388. fentext3.BackgroundColor3 = Color3.new(1,1,0)
  389. fentext3.SizeConstraint = "RelativeXY"
  390. fentext3.TextXAlignment = "Center"
  391. fentext3.TextYAlignment = "Center"
  392. fentext3.Position = UDim2.new(0,10,1,170)
  393. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  394. --2.9000001, 0}, {0.450000018, 0}
  395. local gairo = Instance.new("BodyGyro")
  396. gairo.Parent = nil
  397. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  398. gairo.P = 20e+003
  399. if (script.Parent.className ~= "HopperBin") then
  400. Tool = Instance.new("HopperBin")
  401. Tool.Parent = Backpack
  402. Tool.Name = "Katana"
  403. script.Parent = Tool
  404. end
  405. Bin = script.Parent
  406. function hideanim()
  407. for i = 0,1,0.1 do
  408. wait()
  409. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5*i,0,0.4*i)
  410. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  411. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0)
  412. RW.C0 = CFrame.new(1.5-1.2*i,0.5-0.2*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-1*i)
  413. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3.14*i,0)
  414. end
  415. wld1.Part1 = Torso
  416. wld1.C0 = CFrame.fromEulerAnglesXYZ(-1.7,0,0) * CFrame.new(1,1,0.5)
  417. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  418. wld7.Part1 = Torso
  419. wld7.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1.57,0) * CFrame.new(0.6,1,-0.6)
  420. wld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  421. for i = 0,1,0.1 do
  422. wait()
  423. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,0.4-0.4*i)
  424. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  425. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0)
  426. RW.C0 = CFrame.new(1.5-1.2+1.2*i,0.5-0.2+0.2*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-1+1*i)
  427. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3.14+3.14*i,0)
  428. end
  429. end
  430. function equipanim()
  431. for i = 0,1,0.1 do
  432. wait()
  433. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5*i,0,0.4*i)
  434. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  435. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  436. RW.C0 = CFrame.new(1.5-1.2*i,0.5-0.2*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-1*i)
  437. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,3.14*i,0)
  438. end
  439. wld1.Part1 = RightArm
  440. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  441. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  442. for i = 0,1,0.2 do
  443. wait()
  444. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.6*i,0,0.4-0.4*i)
  445. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  446. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  447. RW.C0 = CFrame.new(1.5-1.2+1.2*i,0.5-0.2+0.2*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-1+2.77*i)
  448. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,3.14+4.14*i,0)
  449. end
  450. wait(0.2)
  451. for i = 0,1,0.1 do
  452. wait()
  453. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.6+0.1*i,0,0)
  454. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  455. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0)
  456. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,1.77-1.77*i)
  457. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,7.28-7.28*i,0)
  458. end
  459. wld7.Part1 = LeftArm
  460. wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  461. wld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  462. for i = 0,1,0.1 do
  463. wait()
  464. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  465. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0)
  466. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  467. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  468. end
  469. Torso.Neck.C0=necko
  470. end
  471. function onehit()
  472. attack = true
  473. for i = 0,1,0.1 do
  474. wait()
  475. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  476. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  477. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,1*i)
  478. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  479. end
  480. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  481. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  482. ss(1)
  483. for i = 0,1,0.2 do
  484. wait()
  485. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3*i,0,0)
  486. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  487. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  488. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  489. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2-1*i,0,1-2*i)
  490. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  491. end
  492. con1:disconnect()
  493. con2:disconnect()
  494. attack = false
  495. end
  496. function twohit()
  497. attack = true
  498. for i = 0,1,0.1 do
  499. wait()
  500. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.5*i,0,0)
  501. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  502. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  503. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  504. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-1+1.5*i,0,1-2+1*i)
  505. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0)
  506. end
  507. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  508. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  509. ss(1.2)
  510. for i = 0,1,0.2 do
  511. wait()
  512. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.5+0.5*i,0,0)
  513. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  514. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  515. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  516. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-1+1.5-2*i,0,0)
  517. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  518. end
  519. con1:disconnect()
  520. con2:disconnect()
  521. attack = false
  522. end
  523. function threehit()
  524. attack = true
  525. for i = 0,1,0.1 do
  526. wait()
  527. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.3*i,0,0)
  528. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  529. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  530. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  531. RW.C0 = CFrame.new(1.5-0.5*i,0.5+0.4*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07*i,0,-1.57*i)
  532. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0)
  533. end
  534. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  535. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  536. ss(0.9)
  537. for i = 0,1,0.2 do
  538. wait()
  539. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  540. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  541. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  542. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5+0.4-0.4*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07,0,-1.57+3.14*i)
  543. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57,0)
  544. end
  545. con1:disconnect()
  546. con2:disconnect()
  547. attack = false
  548. end
  549. function fourhit()
  550. attack = true
  551. gairo.Parent = Head
  552. gairo.cframe = Head.CFrame
  553. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  554. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  555. ss(0.6)
  556. for i = 0,1,0.2 do
  557. wait()
  558. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.4*i)
  559. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90),0,0) * CFrame.new(0,1,0)
  560. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,-0.5*i)
  561. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  562. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.2*i)
  563. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0)
  564. end
  565. wait(0.1)
  566. con1:disconnect()
  567. con2:disconnect()
  568. attack = false
  569. end
  570. function fivehit()
  571. attack = true
  572. for i = 0,1,0.1 do
  573. wait()
  574. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.4+0.8*i)
  575. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  576. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,0,-0.5+1.5*i)
  577. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,0)
  578. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-2.07*i,0,0.37-0.37*i)
  579. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  580. end
  581. con1=prt14.Touched:connect(function(hit) Damagefunc1(hit,15,10) end)
  582. con2=prt15.Touched:connect(function(hit) Damagefunc1(hit,25,10) end)
  583. con3=prt16.Touched:connect(function(hit) Damagefunc1(hit,25,10) end)
  584. ss(1.4)
  585. for i = 0,1,0.2 do
  586. wait()
  587. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.4+0.8-0.4*i)
  588. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90),0,0) * CFrame.new(0,1,0)
  589. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,0,1-2.57*i)
  590. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,0)
  591. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  592. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  593. end
  594. wait(0.2)
  595. con1:disconnect()
  596. con2:disconnect()
  597. con3:disconnect()
  598. gairo.Parent = nil
  599. Torso.Neck.C0=necko
  600. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  601. attack = false
  602. end
  603. function WindCharge()
  604. if mana >= 20 then
  605. attack = true
  606. gairo.Parent = Head
  607. gairo.cframe = Head.CFrame
  608. efect()
  609. for i = 0,1,0.1 do
  610. wait()
  611. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  612. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  613. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  614. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  615. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,1*i)
  616. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  617. end
  618. mana = mana - 0
  619. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  620. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,30,10) end)
  621. ss(1)
  622. lightning = true
  623. coroutine.resume(coroutine.create(function()
  624. Stun2(prt4,10,25,10)
  625. --Stun2(prt4,10,25,10)
  626. end))
  627. for i = 0,1,0.2 do
  628. wait()
  629. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  630. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.5*i)
  631. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5*i)
  632. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  633. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-1.43*i,0,1-0.5*i)
  634. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  635. end
  636. wait()
  637. local vel = Instance.new("BodyVelocity")
  638. vel.Parent = Player.Character.Torso
  639. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  640. vel.velocity = Player.Character.Head.CFrame.lookVector * 100
  641. wait(0.5)
  642. vel.Parent = nil
  643. lightning = false
  644. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  645. Torso.Neck.C0=necko
  646. con1:disconnect()
  647. con2:disconnect()
  648. gairo.Parent = nil
  649. attack = false
  650. end
  651. end
  652. function Restore()
  653. attack = true
  654. for i = 0,1,0.1 do
  655. wait()
  656. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1*i,0,0) * CFrame.new(0,1,0)
  657. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-0.4*i,0,0)
  658. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  659. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  660. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5*i,0,0)
  661. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  662. end
  663. local lol = Instance.new("Part")
  664. lol.Parent = modelzorz
  665. lol.Shape = "Ball"
  666. lol.Position = Torso.Position
  667. lol.Anchored = false
  668. lol.Transparency = 0.5
  669. lol.CanCollide = false
  670. lol.Size = Vector3.new(1,1,1)
  671. lol.BrickColor = BrickColor.new("Really red")
  672. lol.CFrame = Torso.CFrame
  673. local lolmesh = Instance.new("SpecialMesh")
  674. lolmesh.Parent = lol
  675. lolmesh.Scale = Vector3.new(0.5,0.5,0.5)
  676. lolmesh.MeshType = "Sphere"
  677. local lolweld = Instance.new("Weld")
  678. lolweld.Parent = lol
  679. lolweld.Part0 = lol
  680. lolweld.Part1 = prt6
  681. wait(0)
  682. coroutine.resume(coroutine.create(function()
  683. for i = 0, 1, 0.05 do
  684. wait(0)
  685. lolmesh.Scale = lolmesh.Scale + Vector3.new(0.15,0.15,0.15)
  686. end
  687. end))
  688. while restoring == true do
  689. wait(0.15)
  690. lolweld.C0 = CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  691. MMMAGIC(lol,2,2,2,0,0,0,BrickColor.new("Really red"))
  692. DifferentEffect()
  693. if mana >= 400 then
  694. mana = 400
  695. else
  696. Character.Humanoid.Health = Character.Humanoid.Health + 0.05
  697. mana = mana + 5
  698. end
  699. end
  700. for i = 0, 1, 0.05 do
  701. wait(0)
  702. lol.Transparency = lol.Transparency + 0.03
  703. lolmesh.Scale = lolmesh.Scale - Vector3.new(0.2,0.2,0.2)
  704. end
  705. for i = 0,1,0.1 do
  706. wait()
  707. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1-1*i,0,0) * CFrame.new(0,1,0)
  708. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-0.4+0.4*i,0,0)
  709. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  710. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  711. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-2.5*i,0,0)
  712. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  713. end
  714. lol.Parent = nil
  715. attack = false
  716. end
  717. function JetStream()
  718. if mana >= 1 then
  719. attack = true
  720. charging = true
  721. for i = 0,1,0.1 do
  722. wait()
  723. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+0.3*i,0,0) * CFrame.new(0,1,0)
  724. wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,-0.5*i)
  725. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  726. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.4*i,0,0.3*i)
  727. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  728. RW.C0 = CFrame.new(1.5-0.8*i,0.5,-0.8*i) * CFrame.fromEulerAnglesXYZ(1.2*i,0,-1.2*i)
  729. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  730. end
  731. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,35,20) end)
  732. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,45,20) end)
  733. local vel = Instance.new("BodyVelocity")
  734. vel.Parent = Player.Character.Torso
  735. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  736. vel.velocity = Player.Character.Head.CFrame.lookVector * 100
  737. while charging == true and mana >= 1 do
  738. wait(0)
  739. mana = mana - 0
  740. vel.velocity = Player.Character.Head.CFrame.lookVector * 100
  741. MMMAGIC(prt2,1,1,1,0,0,0,BrickColor.new("Really red"))
  742. MOREMAGIX(prt2,0,1,1,1,BrickColor.new("Really red"))
  743. end
  744. wait(0.1)
  745. con1:disconnect()
  746. con2:disconnect()
  747. vel.Parent = nil
  748. gairo.Parent = nil
  749. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  750. wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  751. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  752. attack = false
  753. end
  754. end
  755. function Stab()
  756. attack = true
  757. gairo.Parent = Head
  758. gairo.cframe = Head.CFrame
  759. ss(1.2)
  760. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,20,20) end)
  761. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,30,20) end)
  762. for i = 0,1,0.2 do
  763. wait()
  764. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  765. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.3*i)
  766. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2*i,0,-0.2*i)
  767. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  768. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,0.5*i)
  769. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  770. end
  771. wait(0.1)
  772. con1:disconnect()
  773. con2:disconnect()
  774. for i = 0,1,0.2 do
  775. wait()
  776. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  777. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.3+0.3*i)
  778. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2+0.2*i,0,-0.2+0.2*i)
  779. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  780. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,0.5-0.5*i)
  781. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  782. end
  783. gairo.Parent = nil
  784. Torso.Neck.C0=necko
  785. attack = false
  786. end
  787. function WindKatanaWheelSpin()
  788. if mana >= 20 then
  789. attack = true
  790. for i = 0,1,0.1 do
  791. wait()
  792. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0)
  793. wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0)
  794. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  795. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i)
  796. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  797. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i)
  798. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  799. end
  800. mana = mana - 0
  801. lightning = true
  802. coroutine.resume(coroutine.create(function()
  803. Stun2(prt6,1,1,1)
  804. end))
  805. con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,30,20) end)
  806. con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,40,20) end)
  807. con3=prt14.Touched:connect(function(hit) Damagefunc1(hit,25,10) end)
  808. con4=prt15.Touched:connect(function(hit) Damagefunc1(hit,35,10) end)
  809. con5=prt16.Touched:connect(function(hit) Damagefunc1(hit,35,10) end)
  810. cf = Head.CFrame
  811. gairo.Parent = Head
  812. gairo.cframe = Head.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  813. for i = 0,1,0.03 do
  814. wait()
  815. ss(1.1)
  816. gairo.cframe = gairo.cframe * CFrame.fromEulerAnglesXYZ(0,0.8,0)
  817. end
  818. gairo.cframe = cf
  819. con1:disconnect()
  820. con2:disconnect()
  821. con3:disconnect()
  822. con4:disconnect()
  823. con5:disconnect()
  824. lightning = false
  825. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90),math.rad(90),0) * CFrame.new(0,1,0)
  826. wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90),math.rad(90),0) * CFrame.new(0,1,0)
  827. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  828. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57-0.5)
  829. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  830. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57+0.5)
  831. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  832. wait(3)
  833. gairo.Parent = nil
  834. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  835. wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  836. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  837. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  838. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  839. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  840. attack = false
  841. end
  842. end
  843. function SlashShockwave()
  844. if mana >= 20 then
  845. attack = true
  846. for i = 0,1,0.1 do
  847. wait()
  848. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57*i,0,0) * CFrame.new(0,1,0)
  849. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3*i,0,0)
  850. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  851. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  852. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i,0,0)
  853. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  854. end
  855. wait(0.1)
  856. ss(1)
  857. mana = mana - 20
  858. local slash = Instance.new("Part")
  859. slash.Parent = modelzorz
  860. slash.Position = Torso.Position
  861. slash.Anchored = true
  862. slash.Transparency = 0.2
  863. slash.CanCollide = false
  864. slash.Size = Vector3.new(1,1,1)
  865. slash.BrickColor = BrickColor.new("Really red")
  866. slash.CFrame = Torso.CFrame * CFrame.new(1.5,-3,-4)
  867. local testbrick = Instance.new("Part")
  868. testbrick.Parent = modelzorz
  869. testbrick.Anchored = true
  870. testbrick.Transparency = 1
  871. testbrick.CFrame = Torso.CFrame * CFrame.new(1.5,0,-4)
  872. coroutine.resume(coroutine.create(function()
  873. local c = game.Workspace:GetChildren();
  874. for i = 1, #c do
  875. local hum = c[i]:findFirstChild("Humanoid")
  876. if hum ~= nil and hum.Health ~= 0 then
  877. local head = c[i]:findFirstChild("Head");
  878. if head ~= nil then
  879. local targ = head.Position - testbrick.Position;
  880. local mag = targ.magnitude;
  881. if mag <= 3 and c[i].Name ~= Player.Name then
  882. Damagefunc1(head,20,20)
  883. end
  884. end
  885. end
  886. end
  887. testbrick.Parent = nil
  888. end))
  889. local lolmesh = Instance.new("SpecialMesh")
  890. lolmesh.Parent = slash
  891. lolmesh.Scale = Vector3.new(0.6,1,0.6)
  892. lolmesh.MeshType = "Sphere"
  893. coroutine.resume(coroutine.create(function(Part,Mesh)
  894. for i = 0, 1, 0.2 do
  895. wait(0)
  896. Mesh.Scale = Mesh.Scale + Vector3.new(0,0.7,0)
  897. end
  898. wait(0.5)
  899. for i = 0,1,0.1 do
  900. wait()
  901. Part.Transparency = Part.Transparency + 0.1
  902. end
  903. Part.Parent = nil
  904. end),slash,lolmesh)
  905. coroutine.resume(coroutine.create(function()
  906. CF = -4
  907. scale = 0.6
  908. scale2 = 0.7
  909. for i = 0,10 do
  910. wait(0.1)
  911. CF = CF * 1.2
  912. scale = scale + 0.1
  913. scale2 = scale2 + 0.2
  914. ss(math.random()+math.random())
  915. local slash = Instance.new("Part")
  916. slash.Parent = modelzorz
  917. slash.Position = Torso.Position
  918. slash.Anchored = true
  919. slash.Transparency = 0.2
  920. slash.CanCollide = false
  921. slash.Size = Vector3.new(1,1,1)
  922. slash.BrickColor = BrickColor.new("Really red")
  923. slash.CFrame = Torso.CFrame * CFrame.new(1+math.random(),-3,CF)
  924. local testbrick = Instance.new("Part")
  925. testbrick.Parent = modelzorz
  926. testbrick.Anchored = true
  927. testbrick.Transparency = 1
  928. testbrick.CFrame = Torso.CFrame * CFrame.new(1+math.random(),0,CF)
  929. coroutine.resume(coroutine.create(function()
  930. local c = game.Workspace:GetChildren();
  931. for i = 1, #c do
  932. local hum = c[i]:findFirstChild("Humanoid")
  933. if hum ~= nil and hum.Health ~= 0 then
  934. local head = c[i]:findFirstChild("Head");
  935. if head ~= nil then
  936. local targ = head.Position - testbrick.Position;
  937. local mag = targ.magnitude;
  938. if mag <= 3 and c[i].Name ~= Player.Name then
  939. Damagefunc1(head,20,20)
  940. end
  941. end
  942. end
  943. end
  944. testbrick.Parent = nil
  945. end))
  946. local lolmesh = Instance.new("SpecialMesh")
  947. lolmesh.Parent = slash
  948. lolmesh.Scale = Vector3.new(scale,1,scale)
  949. lolmesh.MeshType = "Sphere"
  950. coroutine.resume(coroutine.create(function(Part,Mesh)
  951. Part.CFrame = Part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  952. for i = 0, 1, 0.2 do
  953. wait(0)
  954. Mesh.Scale = Mesh.Scale + Vector3.new(0,scale2,0)
  955. end
  956. wait(0.5)
  957. for i = 0,1,0.1 do
  958. wait()
  959. Part.Transparency = Part.Transparency + 0.1
  960. end
  961. Part.Parent = nil
  962. end),slash,lolmesh)
  963. end
  964. end))
  965. for i = 0,1,0.2 do
  966. wait()
  967. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57-1.57*i,0,0) * CFrame.new(0,1,0)
  968. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.6*i,0,0)
  969. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0)
  970. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  971. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+2*i,0,0)
  972. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  973. end
  974. attack = false
  975. end
  976. end
  977. function efect()
  978. local lol = Instance.new("Part")
  979. lol.Parent = Character
  980. lol.Shape = "Ball"
  981. lol.Position = Torso.Position
  982. lol.Anchored = true
  983. lol.CanCollide = false
  984. lol.Size = Vector3.new(1,1,1)
  985. lol.BrickColor = BrickColor.new("Really red")
  986. lol.Reflectance = 1
  987. lol.CFrame = Torso.CFrame
  988. local lolmesh = Instance.new("SpecialMesh")
  989. lolmesh.Parent = lol
  990. lolmesh.Scale = Vector3.new(0.5,0.5,0.5)
  991. lolmesh.MeshType = "Sphere"
  992. wait(0)
  993. coroutine.resume(coroutine.create(function()
  994. for i = 0, 1, 0.05 do
  995. wait(0)
  996. lolmesh.Scale = lolmesh.Scale + Vector3.new(9,9,9)
  997. lol.Transparency = lol.Transparency + 0.20
  998. lol.Reflectance = lol.Reflectance - 0.25
  999. lol.CFrame = Torso.CFrame
  1000. end
  1001. lol:Remove()
  1002. end))
  1003. end
  1004. Stun2=function(Feh,x,y,z)
  1005. coroutine.resume(coroutine.create(function(part)
  1006. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1007. return
  1008. end]]
  1009. Torsoh2=part
  1010. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1011. ST2=Torsoh2.Position
  1012. --[[ p=Instance.new("BodyPosition")
  1013. p.P=3000
  1014. p.D=100
  1015. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1016. p.position=Torsoh2.Position
  1017. p.Parent=Torsoh2]]
  1018. while part.Parent ~= nil and lightning == true do
  1019. -- f1:Play()
  1020. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1021. Start2=End2
  1022. End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,math.random(-y,y)/10,math.random(-z,z)/10)
  1023. e=Instance.new("Part")
  1024. e.TopSurface=0
  1025. e.BottomSurface=0
  1026. e.CanCollide=false
  1027. e.Anchored=true
  1028. e.formFactor="Symmetric"
  1029. e.Size=Vector3.new(1,1,1)
  1030. Look2=(End2.p-Start2.p).unit
  1031. m=Instance.new("BlockMesh")
  1032. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1033. m.Parent=e
  1034. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1035. e.Reflectance=.3
  1036. e.Name="Zap"
  1037. e.BrickColor=BrickColor.new("Really red")
  1038. e.Parent=part.Parent
  1039. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1040. wait()
  1041. end
  1042. wait(.25)
  1043. -- p.Parent=nil
  1044. end),Feh)
  1045. end
  1046. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1047. local msh1 = Instance.new("BlockMesh")
  1048. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1049. S=Instance.new("Part")
  1050. S.Name="Effect"
  1051. S.formFactor=0
  1052. S.Size=Vector3.new(x1,y1,z1)
  1053. S.BrickColor=color
  1054. S.Reflectance = 0
  1055. S.TopSurface=0
  1056. S.BottomSurface=0
  1057. S.Transparency=0
  1058. S.Anchored=true
  1059. S.CanCollide=false
  1060. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1061. S.Parent=Character
  1062. msh1.Parent = S
  1063. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1064. end
  1065. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1066. local msh1 = Instance.new("BlockMesh")
  1067. msh1.Scale = Vector3.new(x1,y1,z1)
  1068. S=Instance.new("Part")
  1069. S.Name="Effect"
  1070. S.formFactor=0
  1071. S.Size=Vector3.new(1,1,1)
  1072. S.BrickColor=color
  1073. S.Reflectance = 0
  1074. S.TopSurface=0
  1075. S.BottomSurface=0
  1076. S.Transparency=0
  1077. S.Anchored=true
  1078. S.CanCollide=false
  1079. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1080. S.Parent=Character
  1081. msh1.Parent = S
  1082. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1083. end
  1084. function MOREMAGIX(part,cframe,x,y,z,color)
  1085. p2=Instance.new("Part")
  1086. p2.Name="Blast"
  1087. p2.TopSurface=0
  1088. p2.BottomSurface=0
  1089. p2.CanCollide=false
  1090. p2.Anchored=true
  1091. p2.BrickColor=color
  1092. p2.Size=Vector3.new(x,y,z)
  1093. p2.formFactor="Symmetric"
  1094. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  1095. p2.Parent=workspace
  1096. m=Instance.new("BlockMesh")
  1097. m.Parent=p2
  1098. m.Name="BlastMesh"
  1099. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  1100. end
  1101. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1102. local msh1 = Instance.new("SpecialMesh")
  1103. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1104. msh1.MeshType = "Sphere"
  1105. S=Instance.new("Part")
  1106. S.Name="Effect"
  1107. S.formFactor=0
  1108. S.Size=Vector3.new(x1,y1,z1)
  1109. S.BrickColor=color
  1110. S.Reflectance = 0
  1111. S.TopSurface=0
  1112. S.BottomSurface=0
  1113. S.Transparency=0
  1114. S.Anchored=true
  1115. S.CanCollide=false
  1116. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1117. S.Parent=Character
  1118. msh1.Parent = S
  1119. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1120. end
  1121. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1122. local msh1 = Instance.new("SpecialMesh")
  1123. msh1.Scale = Vector3.new(x1,y1,z1)
  1124. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1125. S=Instance.new("Part")
  1126. S.Name="Effect"
  1127. S.formFactor=0
  1128. S.Size=Vector3.new(1,1,1)
  1129. S.BrickColor=color
  1130. S.Reflectance = 0
  1131. S.TopSurface=0
  1132. S.BottomSurface=0
  1133. S.Transparency=0
  1134. S.Anchored=true
  1135. S.CanCollide=false
  1136. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1137. S.Parent=Character
  1138. msh1.Parent = S
  1139. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1140. end
  1141. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1142. local msh1 = Instance.new("SpecialMesh")
  1143. msh1.Scale = Vector3.new(x1,y1,z1)
  1144. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  1145. S=Instance.new("Part")
  1146. S.Name="Effect"
  1147. S.formFactor=0
  1148. S.Size=Vector3.new(1,1,1)
  1149. S.BrickColor=color
  1150. S.Reflectance = 0
  1151. S.TopSurface=0
  1152. S.BottomSurface=0
  1153. S.Transparency=0
  1154. S.Anchored=true
  1155. S.CanCollide=false
  1156. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1157. S.Parent=Character
  1158. msh1.Parent = S
  1159. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1160. end
  1161. function DifferentEffect()
  1162. p=Instance.new("Part")
  1163. p.Name="FlameEm"
  1164. p.Shape=0
  1165. p.TopSurface=0
  1166. p.BottomSurface=0
  1167. p.BrickColor=BrickColor.new("Really red")
  1168. p.Anchored=true
  1169. p.CanCollide=false
  1170. p.Size=Vector3.new(1,1,1)
  1171. p.CFrame=CFrame.new(Character["Torso"].CFrame.p+Vector3.new(0,-3,0))+Vector3.new(math.random(-10,10)/3,0,math.random(-10,10)/3)
  1172. p.Parent=workspace
  1173. m=Instance.new("SpecialMesh")
  1174. m.MeshType="Sphere"
  1175. m.Parent=p
  1176. m.Scale=Vector3.new(1,1,1)
  1177. coroutine.resume(coroutine.create(function(p) for i=1, 9 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(0,1.5,0) p.Transparency=p.Transparency+1/9 wait(0) end p.Parent=nil end),p)
  1178. end
  1179. function ss(pitch)
  1180. local SlashSound = Instance.new("Sound")
  1181. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1182. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  1183. SlashSound.Parent = workspace
  1184. SlashSound.Volume = .7
  1185. SlashSound.Pitch = pitch
  1186. SlashSound.PlayOnRemove = true
  1187. coroutine.resume(coroutine.create(function()
  1188. wait(0)
  1189. SlashSound.Parent = nil
  1190. end))
  1191. end
  1192. function magicsound(pitch)
  1193. local SlashSound = Instance.new("Sound")
  1194. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1195. SlashSound.Parent = workspace
  1196. SlashSound.Volume = .5
  1197. SlashSound.Pitch = pitch
  1198. SlashSound.PlayOnRemove = true
  1199. coroutine.resume(coroutine.create(function()
  1200. wait(0)
  1201. SlashSound.Parent = nil
  1202. end))
  1203. end
  1204. function critsound(pitch)
  1205. local SlashSound = Instance.new("Sound")
  1206. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  1207. SlashSound.Parent = workspace
  1208. SlashSound.Volume = .7
  1209. SlashSound.Pitch = pitch
  1210. SlashSound.PlayOnRemove = true
  1211. coroutine.resume(coroutine.create(function()
  1212. wait(0)
  1213. SlashSound.Parent = nil
  1214. end))
  1215. end
  1216. function spikesound(pitch)
  1217. local SlashSound = Instance.new("Sound")
  1218. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  1219. SlashSound.Parent = workspace
  1220. SlashSound.Volume = .7
  1221. SlashSound.Pitch = pitch
  1222. SlashSound.PlayOnRemove = true
  1223. coroutine.resume(coroutine.create(function()
  1224. wait(0)
  1225. SlashSound.Parent = nil
  1226. end))
  1227. end
  1228. Damagefunc1=function(hit,Damage,Knockback)
  1229. if attackdebounce == false then
  1230. attackdebounce = true
  1231. coroutine.resume(coroutine.create(function()
  1232. wait(0.1)
  1233. attackdebounce = false
  1234. end))
  1235. if hit.Parent==nil then
  1236. return
  1237. end
  1238. CPlayer=Bin
  1239. h=hit.Parent:FindFirstChild("Humanoid")
  1240. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1241. if mana < 400 then
  1242. mana = mana + math.random(5,15)
  1243. end
  1244. if mana > 400 then
  1245. mana = 400
  1246. end
  1247. Damage=Damage
  1248. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1249. return
  1250. end]]
  1251. c=Instance.new("ObjectValue")
  1252. c.Name="creator"
  1253. c.Value=game.Players.LocalPlayer
  1254. c.Parent=h
  1255. game:GetService("Debris"):AddItem(c,.5)
  1256. -- print(c.Value)
  1257. if math.random(0,99)+math.random()<=10 then
  1258. CRIT=true
  1259. Damage=Damage*1.5
  1260. --[[ Knockback=Knockback*2
  1261. r=Instance.new("BodyAngularVelocity")
  1262. r.P=3000
  1263. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1264. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1265. r.Parent=hit.Parent.Torso]]
  1266. critsound(2)
  1267. end
  1268. Damage=Damage+math.random(0,10)
  1269. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1270. h:TakeDamage(Damage)
  1271. showDamage(hit.Parent,Damage,.5)
  1272. vp=Instance.new("BodyVelocity")
  1273. vp.P=500
  1274. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1275. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1276. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1277. if Knockback>0 then
  1278. vp.Parent=hit.Parent.Torso
  1279. end
  1280. game:GetService("Debris"):AddItem(vp,.25)
  1281. --[[ r=Instance.new("BodyAngularVelocity")
  1282. r.P=3000
  1283. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1284. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1285. r.Parent=hit.Parent.Torso]]
  1286. game:GetService("Debris"):AddItem(r,.5)
  1287. c=Instance.new("ObjectValue")
  1288. c.Name="creator"
  1289. c.Value=Player
  1290. c.Parent=h
  1291. game:GetService("Debris"):AddItem(c,.5)
  1292. CRIT=false
  1293. hitDeb=true
  1294. AttackPos=6
  1295. end
  1296. end
  1297. end
  1298. showDamage=function(Char,Dealt,du)
  1299. m=Instance.new("Model")
  1300. m.Name=tostring(Dealt)
  1301. h=Instance.new("Humanoid")
  1302. h.Health=0
  1303. h.MaxHealth=0
  1304. h.Parent=m
  1305. c=Instance.new("Part")
  1306. c.Transparency=0
  1307. c.BrickColor=BrickColor:Red()
  1308. if CRIT==true then
  1309. c.BrickColor=BrickColor.new("Really red")
  1310. end
  1311. c.Name="Head"
  1312. c.TopSurface=0
  1313. c.BottomSurface=0
  1314. c.formFactor="Plate"
  1315. c.Size=Vector3.new(1,.4,1)
  1316. ms=Instance.new("CylinderMesh")
  1317. ms.Bevel=.1
  1318. ms.Scale=Vector3.new(.8,.8,.8)
  1319. if CRIT==true then
  1320. ms.Scale=Vector3.new(1.25,1.5,1.25)
  1321. ms.Bevel=.2
  1322. end
  1323. ms.Parent=c
  1324. c.Reflectance=0
  1325. Instance.new("BodyGyro").Parent=c
  1326. c.Parent=m
  1327. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1328. f=Instance.new("BodyPosition")
  1329. f.P=2000
  1330. f.D=100
  1331. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1332. f.position=c.Position+Vector3.new(0,3,0)
  1333. f.Parent=c
  1334. game:GetService("Debris"):AddItem(m,.5+du)
  1335. c.CanCollide=false
  1336. m.Parent=workspace
  1337. c.CanCollide=false
  1338. end
  1339. hold = false
  1340. function ob1d(mouse)
  1341. if attack == true then return end
  1342. hold = true
  1343. if combo == 0 then
  1344. combo = 1
  1345. onehit()
  1346. coroutine.resume(coroutine.create(function()
  1347. wait(0.5)
  1348. if attack == false then
  1349. combo = 0
  1350. gairo.Parent = nil
  1351. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1352. Torso.Neck.C0=necko
  1353. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1354. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1355. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1356. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1357. end
  1358. end))
  1359. elseif combo == 1 then
  1360. combo = 2
  1361. twohit()
  1362. coroutine.resume(coroutine.create(function()
  1363. wait(0.5)
  1364. if attack == false then
  1365. combo = 0
  1366. gairo.Parent = nil
  1367. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1368. Torso.Neck.C0=necko
  1369. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1370. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1371. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1372. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1373. end
  1374. end))
  1375. elseif combo == 2 then
  1376. combo = 3
  1377. threehit()
  1378. coroutine.resume(coroutine.create(function()
  1379. wait(0.5)
  1380. if attack == false then
  1381. combo = 0
  1382. gairo.Parent = nil
  1383. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1384. Torso.Neck.C0=necko
  1385. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1386. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1387. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1388. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1389. end
  1390. end))
  1391. elseif combo == 3 then
  1392. combo = 4
  1393. fourhit()
  1394. coroutine.resume(coroutine.create(function()
  1395. wait(0.5)
  1396. if attack == false then
  1397. combo = 0
  1398. gairo.Parent = nil
  1399. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1400. Torso.Neck.C0=necko
  1401. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1402. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1403. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1404. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1405. end
  1406. end))
  1407. elseif combo == 4 then
  1408. combo = 5
  1409. fivehit()
  1410. combo = 0
  1411. coroutine.resume(coroutine.create(function()
  1412. wait(0.5)
  1413. if attack == false then
  1414. combo = 0
  1415. gairo.Parent = nil
  1416. wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1417. Torso.Neck.C0=necko
  1418. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1419. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1420. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1421. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1422. end
  1423. end))
  1424. end
  1425. --[[onehit()
  1426. twohit()
  1427. threehit()
  1428. fourhit()
  1429. fivehit() ]]
  1430. end
  1431. function ob1u(mouse)
  1432. hold = false
  1433. end
  1434. buttonhold = false
  1435. function key(key)
  1436. if attack == true then return end
  1437. if key == "f" then
  1438. WindCharge()
  1439. end
  1440. if key == "g" then
  1441. restoring = true
  1442. Restore()
  1443. end
  1444. if key == "z" then
  1445. JetStream()
  1446. end
  1447. if key == "x" then
  1448. Stab()
  1449. end
  1450. if key == "r" then
  1451. WindKatanaWheelSpin()
  1452. end
  1453. if key == "t" then
  1454. SlashShockwave()
  1455. end
  1456. end
  1457. function key2(key)
  1458. if key == "g"then
  1459. restoring = false
  1460. end
  1461. if key == "z" then
  1462. charging = false
  1463. end
  1464. end
  1465. function s(mouse)
  1466. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1467. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1468. mouse.KeyDown:connect(key)
  1469. mouse.KeyUp:connect(key2)
  1470. player = Player
  1471. ch = Character
  1472. RSH = ch.Torso["Right Shoulder"]
  1473. LSH = ch.Torso["Left Shoulder"]
  1474. --
  1475. RW.Part0 = ch.Torso
  1476. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1477. RW.C1 = CFrame.new(0, 0.5, 0)
  1478. RW.Part1 = ch["Right Arm"]
  1479. RW.Parent = ch.Torso
  1480. --_G.R = RW
  1481. --
  1482. LW.Part0 = ch.Torso
  1483. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1484. LW.C1 = CFrame.new(0, 0.5, 0)
  1485. LW.Part1 = ch["Left Arm"]
  1486. LW.Parent = ch.Torso
  1487. --_G.L = LW
  1488. --
  1489. equipanim()
  1490. end
  1491. function ds(mouse)
  1492. hideanim()
  1493. RW.Parent = nil
  1494. LW.Parent = nil
  1495. RSH.Parent = player.Character.Torso
  1496. LSH.Parent = player.Character.Torso
  1497. end
  1498. Bin.Selected:connect(s)
  1499. Bin.Deselected:connect(ds)
  1500. function onRunning(speed)
  1501. if attack == true then return end
  1502. if speed>0 then
  1503. walking = true
  1504. for i = 0,1,0.1 do
  1505. wait()
  1506. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1507. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1508. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1509. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1510. end
  1511. else
  1512. walking = false
  1513. for i = 0,1,0.1 do
  1514. wait()
  1515. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1516. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1517. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1518. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1519. end
  1520. end
  1521. end
  1522. Character.Humanoid.Running:connect(onRunning)
  1523. while true do
  1524. wait(0)
  1525. fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
  1526. fentext.Text = "Mana("..mana..")"
  1527. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  1528. end

comments powered by Disqus