Advertisement
memberhero

scython blades added swait

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