Advertisement
Dark_EccentricYT

Untitled

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