Advertisement
memberhero

Grande

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