Advertisement
jordan83221

katana

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