Advertisement
mathmasterphil

Twin

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