Advertisement
CrazIIZen

ZFKJAZEGF

May 25th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.00 KB | None | 0 0
  1. Player=game.Players[pl.Name]
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. print('Player is Eliagable')
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Neck=Torso.Neck
  18. it=Instance.new
  19. vt=Vector3.new
  20. cf=CFrame.new
  21. euler=CFrame.fromEulerAnglesXYZ
  22. angles=CFrame.Angles
  23. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  26. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  27. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  28. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  29. RootPart=Character.HumanoidRootPart
  30. RootJoint=RootPart.RootJoint
  31. RootCF=euler(-1.57,0,3.14)
  32. attack=false
  33. attackdebounce=false
  34. MMouse=nil
  35. combo=0
  36. local Anim="Idle"
  37. local Effects={}
  38. equipped=false
  39. local idle=0
  40. local hold=false
  41. local con1=nil
  42. local con2=nil
  43. local Mode="Binary"
  44. local idleanim=0
  45. local idleanim2=false
  46. local impulse=1
  47. local hitfloor,posfloor=nil,nil
  48. local damcount=0
  49. local guard=false
  50. --player
  51. player=nil
  52. --save shoulders
  53. RSH, LSH=nil, nil
  54. --welds
  55. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  56. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  57. LH=Torso["Left Hip"]
  58. RH=Torso["Right Hip"]
  59. Asset="http://www.roblox.com/asset/?id="
  60. Health=879000
  61. Humanoid.MaxHealth=879000
  62. Humanoid.Health=879000
  63. coroutine.resume(coroutine.create(function()
  64. for i=1,20 do
  65. Humanoid.MaxHealth=879000
  66. Humanoid.Health=879000
  67. end
  68. Humanoid.MaxHealth=879000
  69. Humanoid.Health=879000
  70. Humanoid:TakeDamage(0)
  71. Humanoid.Health=Health
  72. end))
  73. Humanoid.Health=Health
  74.  
  75. function swait(num)
  76. if num==0 or num==nil then
  77. game:service'RunService'.RenderStepped:wait()
  78. else
  79. for i=0,num do
  80. game:service'RunService'.RenderStepped:wait()
  81. end
  82. end
  83. end
  84.  
  85. if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
  86. Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
  87. end
  88. if Character:findFirstChild("Demon Blade",true) ~= nil then
  89. Character:findFirstChild("Demon Blade",true).Parent = nil
  90. end
  91. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  92. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  93. end
  94.  
  95.  
  96. function NoOutline(Part)
  97. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  98. end
  99.  
  100. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  101. local fp=it("Part")
  102. fp.formFactor=formfactor
  103. fp.Parent=parent
  104. fp.Reflectance=reflectance
  105. fp.Transparency=transparency
  106. fp.CanCollide=false
  107. fp.Locked=true
  108. fp.BrickColor=brickcolor
  109. fp.Name=name
  110. fp.Size=size
  111. fp.Position=Torso.Position
  112. NoOutline(fp)
  113. fp.Material="Neon"
  114. fp:BreakJoints()
  115. return fp
  116. end
  117.  
  118. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  119. local mesh=it(Mesh)
  120. mesh.Parent=part
  121. if Mesh=="SpecialMesh" then
  122. mesh.MeshType=meshtype
  123. mesh.MeshId=meshid
  124. end
  125. mesh.Offset=offset
  126. mesh.Scale=scale
  127. return mesh
  128. end
  129.  
  130. function weld(parent,part0,part1,c0)
  131. local weld=it("Weld")
  132. weld.Parent=parent
  133. weld.Part0=part0
  134. weld.Part1=part1
  135. weld.C0=c0
  136. return weld
  137. end
  138.  
  139. local fengui=it("GuiMain")
  140. fengui.Parent=Player.PlayerGui
  141. fengui.Name="WeaponGUI"
  142.  
  143. local Color1=BrickColor.new("Cyan")
  144. local Color2=BrickColor.new("Black")
  145. local Colorr3=BrickColor.new("Black")
  146. local Color4=BrickColor.new("Cyan")
  147.  
  148. local model1=Instance.new("Model")
  149. model1.Parent=Character
  150. model1.Name="Hades Judgement Blade"
  151. BSword={}
  152. BSwordWelds={}
  153. local model2=Instance.new("Model")
  154. model2.Parent=nil
  155. model2.Name="Demon Blade"
  156. DBlade={}
  157. DBladeWelds={}
  158.  
  159. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  160. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  161. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  162. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  163. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  164. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  165. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  166. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  167. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  168. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  169. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  170. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  171.  
  172. prtd1=part(3,model2,0,0.4,BrickColor.new("Cyan"),"DPart1",vt())
  173. prtd2=part(3,model2,0,0,BrickColor.new("Really White"),"DPart2",vt())
  174. prtd3=part(3,model2,0,0,BrickColor.new("Really White"),"DPart3",vt())
  175. prtd4=part(3,model2,0,0,BrickColor.new("Really White"),"DPart4",vt())
  176. prtd5=part(3,model2,0,0,BrickColor.new("Really White"),"DPart5",vt())
  177. prtd6=part(3,model2,0,0,BrickColor.new("Really White"),"DPart6",vt())
  178. prtd7=part(3,model2,0.8,0,BrickColor.new("Cyan"),"DPart7",vt())
  179. prtd8=part(3,model2,0.8,0,BrickColor.new("Cyan"),"DPart8",vt())
  180. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Cyan"),"DPart9",vt())
  181. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Cyan"),"DPart10",vt())
  182. prtd11=part(3,model2,0.5,0,BrickColor.new("Cyan"),"DPart11",vt())
  183. prtd12=part(3,model2,0,0,BrickColor.new("Really White"),"DPart12",vt())
  184. for _,c in pairs(model2:children()) do
  185. if c.className=="Part" then
  186. table.insert(DBlade,c)
  187. end
  188. end
  189. light=it("PointLight")
  190. light.Brightness=.8
  191. light.Color=Color3.new(255/255,50/255,0)
  192. --light.Color=BrickColor.new("Cyan")
  193. light.Range=10
  194. light.Parent=prtd9
  195.  
  196. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  197. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  198. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  199. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  200. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  201. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  202. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  203. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  204. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  205. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  206. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  207. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  208.  
  209. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  210. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  211. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  212. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  213. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  214. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  215. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  216. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  217. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  218. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  219. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  220. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  221.  
  222. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  223. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  224. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  225. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  226. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  227. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  228. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  229. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  230. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  231. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  232. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  233. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  234.  
  235. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  236. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  237. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  238. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  239. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  240. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  241. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  242. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  243. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  244. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  245. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  246. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  247. for _,c in pairs(prtd1:children()) do
  248. if c.className=="Weld" then
  249. table.insert(DBladeWelds,c)
  250. print(c)
  251. end
  252. end
  253.  
  254. for i=-.9,.9,0.2 do
  255. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  256. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  257. wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
  258. end
  259.  
  260. local hitbox1=part(3,nil,0,1,BrickColor.new("White"),"Hitbox",vt(1,1,1))
  261. local hitbox2=part(3,nil,0,1,BrickColor.new("White"),"Hitbox",vt(1,1,1))
  262.  
  263. Tool=Instance.new("HopperBin")
  264. Tool.Parent=Backpack
  265. Tool.Name="9th Mannitus Legend's sword"
  266. script.Parent=Tool
  267. Bin=script.Parent
  268. --Bin=Tool
  269.  
  270. local bodvel=Instance.new("BodyVelocity")
  271. bodvel.Name="FixerVel"
  272. local bg=Instance.new("BodyGyro")
  273. bg.Name="FixerGyro"
  274.  
  275. so = function(id,par,vol,pit)
  276. coroutine.resume(coroutine.create(function()
  277. local sou = Instance.new("Sound",par or workspace)
  278. sou.Parent=par
  279. sou.Volume=vol
  280. sou.Pitch=pit or 1
  281. sou.SoundId=id
  282. swait()
  283. sou:Play()
  284. game:GetService("Debris"):AddItem(sou,6)
  285. end))
  286. end
  287.  
  288. function clerp(a,b,t)
  289. local qa = {QuaternionFromCFrame(a)}
  290. local qb = {QuaternionFromCFrame(b)}
  291. local ax, ay, az = a.x, a.y, a.z
  292. local bx, by, bz = b.x, b.y, b.z
  293. local _t = 1-t
  294. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  295. end
  296.  
  297. function QuaternionFromCFrame(cf)
  298. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  299. local trace = m00 + m11 + m22
  300. if trace > 0 then
  301. local s = math.sqrt(1 + trace)
  302. local recip = 0.5/s
  303. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  304. else
  305. local i = 0
  306. if m11 > m00 then
  307. i = 1
  308. end
  309. if m22 > (i == 0 and m00 or m11) then
  310. i = 2
  311. end
  312. if i == 0 then
  313. local s = math.sqrt(m00-m11-m22+1)
  314. local recip = 0.5/s
  315. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  316. elseif i == 1 then
  317. local s = math.sqrt(m11-m22-m00+1)
  318. local recip = 0.5/s
  319. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  320. elseif i == 2 then
  321. local s = math.sqrt(m22-m00-m11+1)
  322. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  323. end
  324. end
  325. end
  326.  
  327. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  328. local xs, ys, zs = x + x, y + y, z + z
  329. local wx, wy, wz = w*xs, w*ys, w*zs
  330. local xx = x*xs
  331. local xy = x*ys
  332. local xz = x*zs
  333. local yy = y*ys
  334. local yz = y*zs
  335. local zz = z*zs
  336. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  337. end
  338.  
  339. function QuaternionSlerp(a, b, t)
  340. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  341. local startInterp, finishInterp;
  342. if cosTheta >= 0.0001 then
  343. if (1 - cosTheta) > 0.0001 then
  344. local theta = math.acos(cosTheta)
  345. local invSinTheta = 1/math.sin(theta)
  346. startInterp = math.sin((1-t)*theta)*invSinTheta
  347. finishInterp = math.sin(t*theta)*invSinTheta
  348. else
  349. startInterp = 1-t
  350. finishInterp = t
  351. end
  352. else
  353. if (1+cosTheta) > 0.0001 then
  354. local theta = math.acos(-cosTheta)
  355. local invSinTheta = 1/math.sin(theta)
  356. startInterp = math.sin((t-1)*theta)*invSinTheta
  357. finishInterp = math.sin(t*theta)*invSinTheta
  358. else
  359. startInterp = t-1
  360. finishInterp = t
  361. end
  362. end
  363. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  364. end
  365.  
  366. function hideanim()
  367. equipped=false
  368. attack=true
  369. if Mode=="Binary" then
  370. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  371. for i=0,1,0.1 do
  372. swait()
  373. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  374. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  375. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  376. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  377. end
  378. wld1.Part1=Torso
  379. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  380. for i=0,1,0.2 do
  381. swait()
  382. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  383. end
  384. for i=0,1,0.1 do
  385. swait()
  386. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  388. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  389. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  390. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  391. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  392. end
  393. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  394. else
  395. for i=0,1,0.1 do
  396. swait()
  397. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  398. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  399. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  400. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  401. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  402. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  403. end
  404. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  405. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  406. for i=0,1,0.015 do
  407. swait()
  408. for i=1,3 do
  409. if math.random(1,5)==1 then
  410. MagicBlock(BrickColor.new("Really White"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  411. else
  412. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  413. end
  414. end
  415. end
  416. model2.Parent=nil
  417. for i=0,1,0.1 do
  418. swait()
  419. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  420. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  421. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  422. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  423. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  424. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  425. end
  426. end
  427. Torso.Neck.C0=necko
  428. Torso.Neck.C1=necko2
  429. RootJoint.C0=RootCF
  430. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  431. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  432. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  433. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  434. RH.C0=RHC0
  435. RH.C1=RHC1
  436. LH.C0=LHC0
  437. LH.C1=LHC1
  438. Mode="Binary"
  439. attack=false
  440. end
  441.  
  442. function equipanim()
  443. equipped=true
  444. attack=true
  445. for i=0,1,0.2 do
  446. swait()
  447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  448. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  449. end
  450. for i=0,1,0.1 do
  451. swait()
  452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  453. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  454. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  455. end
  456. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  457. wld1.Part1=RightArm
  458. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  459. for i=0,1,0.1 do
  460. swait()
  461. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  463. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  464. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  465. end
  466. for i=0,1,0.1 do
  467. swait()
  468. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  470. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  471. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  472. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  473. end
  474. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  475. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  476. Torso.Neck.C0=necko*euler(0,0,0.5)
  477. RootJoint.C0=RootCF*euler(0,0,-0.5)
  478. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  479. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  480. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  481. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  482. attack=false
  483. end
  484.  
  485. function Stomp()
  486. Humanoid.WalkSpeed=0
  487. Torso.Velocity=RootPart.CFrame.lookVector*0
  488. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  489. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  490. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  491. MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  492. Dam=math.random(5,10)
  493. Humanoid.Health=Humanoid.Health-Dam
  494. MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
  495. --[[for i=0,1,0.2 do
  496. swait()
  497. if Mode=="Binary" then
  498. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  499. end
  500. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  501. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  503. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  504. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  505. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  506. end
  507. for i=0,1,0.1 do
  508. swait()
  509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  510. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  511. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  512. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  513. end]]
  514. swait(10)
  515. Humanoid.WalkSpeed=16
  516. end
  517.  
  518. function attackone()
  519. attack=true
  520. for i=0,1,0.1 do
  521. swait()
  522. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  523. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  524. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  525. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  526. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  527. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  528. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  529. end
  530. hitbox1.Parent=model1
  531. hitbox1.Size=vt(1,5,1)
  532. hitbox1.Transparency=1
  533. hitbox1.CFrame=prt10.CFrame
  534. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  535. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  536. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  537. blcf=nil
  538. scfr=nil
  539. for i=0,1,0.25 do
  540. swait()
  541. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  542. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  543. local h = 5
  544. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  545. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  546. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  547. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  548. scfr = blcf
  549. elseif not scfr then
  550. scfr = blcf
  551. end
  552. hitbox1.CFrame=prt10.CFrame
  553. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  554. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  555. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  556. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  557. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  558. end
  559. for i=0,1,0.1 do
  560. swait()
  561. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  562. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  563. local h = 5
  564. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  565. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  566. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  567. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  568. scfr = blcf
  569. elseif not scfr then
  570. scfr = blcf
  571. end
  572. hitbox1.CFrame=prt10.CFrame
  573. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  575. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  576. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  577. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  578. end
  579. con1:disconnect()
  580. hitbox1.Parent=nil
  581. attack=false
  582. end
  583.  
  584. function attacktwo()
  585. attack=true
  586. for i=0,1,0.1 do
  587. swait()
  588. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  590. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  591. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  592. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  593. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  594. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  595. end
  596. hitbox1.Parent=model1
  597. hitbox1.Size=vt(1,5,1)
  598. hitbox1.Transparency=1
  599. hitbox1.CFrame=prt10.CFrame
  600. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  601. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  602. blcf=nil
  603. scfr=nil
  604. for i=0,1,0.1 do
  605. swait()
  606. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  607. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  608. local h = 5
  609. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  610. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  611. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  612. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  613. scfr = blcf
  614. elseif not scfr then
  615. scfr = blcf
  616. end
  617. hitbox1.CFrame=prt10.CFrame
  618. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  619. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  620. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  621. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  622. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  623. end
  624. con1:disconnect()
  625. hitbox1.Parent=nil
  626. attack=false
  627. end
  628.  
  629. function attackthree()
  630. attack=true
  631. for i=0,1,0.1 do
  632. swait()
  633. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  634. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  635. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  636. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  637. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  638. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  639. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  640. end
  641. hitbox1.Parent=model1
  642. hitbox1.Size=vt(1,5,1)
  643. hitbox1.Transparency=1
  644. hitbox1.CFrame=prt10.CFrame
  645. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  646. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  647. blcf=nil
  648. scfr=nil
  649. for i=0,1,0.25 do
  650. swait()
  651. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  652. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  653. local h = 5
  654. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  655. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  656. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  657. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  658. scfr = blcf
  659. elseif not scfr then
  660. scfr = blcf
  661. end
  662. hitbox1.CFrame=prt10.CFrame
  663. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  664. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  665. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  666. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  667. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  668. end
  669. for i=0,1,0.2 do
  670. swait()
  671. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  672. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  673. local h = 5
  674. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  675. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  676. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  677. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  678. scfr = blcf
  679. elseif not scfr then
  680. scfr = blcf
  681. end
  682. hitbox1.CFrame=prt10.CFrame
  683. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  684. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  685. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  686. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  687. end
  688. con1:disconnect()
  689. hitbox1.Parent=nil
  690. attack=false
  691. end
  692.  
  693. function SpinSlash()
  694. attack=true
  695. for i=0,1,0.1 do
  696. swait()
  697. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  699. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  700. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  701. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  702. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  703. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  704. end
  705. hitbox1.Parent=model1
  706. hitbox1.Size=vt(1,5,1)
  707. hitbox1.Transparency=1
  708. hitbox1.CFrame=prt10.CFrame
  709. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
  710. blcf=nil
  711. scfr=nil
  712. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  713. repeat
  714. hitbox1.Parent=model1
  715. hitbox1.Size=vt(1,5,1)
  716. hitbox1.Transparency=1
  717. hitbox1.CFrame=prt10.CFrame
  718. for i=0,1,0.15 do
  719. swait()
  720. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  721. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  722. local h = 5
  723. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  724. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  725. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  726. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  727. scfr = blcf
  728. elseif not scfr then
  729. scfr = blcf
  730. end
  731. hitbox1.CFrame=prt10.CFrame
  732. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  733. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  734. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  735. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  736. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  737. RH.C0=clerp(RH.C0,RHC0,.3)
  738. LH.C0=clerp(LH.C0,LHC0,.3)
  739. end
  740. for i=0,1,0.05 do
  741. swait()
  742. if i>=0.45 and i<=0.5 then
  743. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  744. end
  745. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  746. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  747. local h = 5
  748. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  749. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  750. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  751. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  752. scfr = blcf
  753. elseif not scfr then
  754. scfr = blcf
  755. end
  756. hitbox1.CFrame=prt10.CFrame
  757. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  758. end
  759. until hold==false
  760. con1:disconnect()
  761. hitbox1.Parent=nil
  762. attack=false
  763. end
  764.  
  765. function BinarySwing()
  766. attack=true
  767. for i=0,1,0.1 do
  768. swait()
  769. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  770. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  771. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  772. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  773. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  774. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  775. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  776. end
  777. Humanoid.Jump=true
  778. bodvol=Instance.new("BodyVelocity")
  779. bodvol.Parent=RootPart
  780. bodvol.velocity=vt(0,1,0)*100
  781. bodvol.P=5000
  782. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  783. --Torso.Velocity=vt(0,1,0)*100
  784. hitbox1.Parent=model1
  785. hitbox1.Size=vt(1,5,1)
  786. hitbox1.Transparency=1
  787. hitbox1.CFrame=prt10.CFrame
  788. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
  789. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  790. blcf=nil
  791. scfr=nil
  792. for i=0,1,0.1 do
  793. swait()
  794. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  795. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  796. local h = 5
  797. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  798. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  799. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  800. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  801. scfr = blcf
  802. elseif not scfr then
  803. scfr = blcf
  804. end
  805. hitbox1.CFrame=prt10.CFrame
  806. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  807. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  808. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  810. RH.C0=clerp(RH.C0,RHC0,.3)
  811. LH.C0=clerp(LH.C0,LHC0,.3)
  812. end
  813. con1:disconnect()
  814. hitbox1.Parent=nil
  815. bodvol.Parent=nil
  816. attack=false
  817. end
  818.  
  819. function BinaryImpulse()
  820. attack=true
  821. if impulse==1 then
  822. impulse=2
  823. Humanoid.Jump=true
  824. for i=0,1,0.2 do
  825. swait()
  826. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  827. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  828. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  829. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  830. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  831. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  832. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  833. end
  834. blcf=nil
  835. scfr=nil
  836. hitbox1.Parent=model1
  837. hitbox1.Size=vt(1,5,1)
  838. hitbox1.Transparency=1
  839. hitbox1.CFrame=prt10.CFrame
  840. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
  841. for i=1,3 do
  842. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  843. for i=0,1,0.1 do
  844. swait()
  845. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  846. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  847. local h = 5
  848. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  849. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  850. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  851. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  852. scfr = blcf
  853. elseif not scfr then
  854. scfr = blcf
  855. end
  856. hitbox1.CFrame=prt10.CFrame
  857. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  858. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  859. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  860. end
  861. end
  862. con1:disconnect()
  863. hitbox1.Parent=nil
  864. elseif impulse==2 then
  865. impulse=3
  866. Humanoid.Jump=true
  867. for i=0,1,0.2 do
  868. swait()
  869. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  870. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  871. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  872. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  873. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  874. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  875. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  876. end
  877. blcf=nil
  878. scfr=nil
  879. hitbox1.Parent=model1
  880. hitbox1.Size=vt(1,5,1)
  881. hitbox1.Transparency=1
  882. hitbox1.CFrame=prt10.CFrame
  883. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
  884. for i=1,3 do
  885. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  886. for i=0,1,0.1 do
  887. swait()
  888. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  889. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  890. local h = 5
  891. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  892. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  893. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  894. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  895. scfr = blcf
  896. elseif not scfr then
  897. scfr = blcf
  898. end
  899. hitbox1.CFrame=prt10.CFrame
  900. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  901. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  902. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  903. end
  904. end
  905. con1:disconnect()
  906. hitbox1.Parent=nil
  907. elseif impulse==3 then
  908. impulse=1
  909. for i=0,1,0.2 do
  910. swait()
  911. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  912. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  913. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  914. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  915. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  916. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  917. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  918. end
  919. Humanoid.Jump=true
  920. blcf=nil
  921. scfr=nil
  922. hitbox1.Parent=model1
  923. hitbox1.Size=vt(1,5,1)
  924. hitbox1.Transparency=1
  925. hitbox1.CFrame=prt10.CFrame
  926. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
  927. for i=1,3 do
  928. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  929. for i=0,1,0.1 do
  930. swait()
  931. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  932. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  933. local h = 5
  934. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  935. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  936. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  937. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  938. scfr = blcf
  939. elseif not scfr then
  940. scfr = blcf
  941. end
  942. hitbox1.CFrame=prt10.CFrame
  943. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  945. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  946. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  947. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  948. end
  949. end
  950. con1:disconnect()
  951. hitbox1.Parent=nil
  952. end
  953. attack=false
  954. end
  955.  
  956. function Bash()
  957. attack=true
  958. for i=0,1,0.1 do
  959. swait()
  960. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  961. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  962. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  963. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  964. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  965. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  966. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  967. end
  968. Torso.Velocity=RootPart.CFrame.lookVector*200
  969. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  970. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  971. hit=nil
  972. for i=1,20 do
  973. if hit==nil then
  974. swait()
  975. end
  976. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  977. end
  978. Torso.Velocity=RootPart.CFrame.lookVector*0
  979. Humanoid.WalkSpeed=0
  980. for i=0,1,0.1 do
  981. swait()
  982. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  983. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  984. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  985. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  986. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  987. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  988. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  989. end
  990. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  991. blcf=nil
  992. scfr=nil
  993. for i=0,1,0.2 do
  994. swait()
  995. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  996. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  997. local h = 5
  998. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  999. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1000. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1001. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1002. scfr = blcf
  1003. elseif not scfr then
  1004. scfr = blcf
  1005. end
  1006. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  1007. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  1008. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  1009. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  1010. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  1011. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  1012. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  1013. end
  1014. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1015. if hit~=nil then
  1016. local ref=part(3,workspace,0,1,BrickColor.new("White"),"Effect",vt())
  1017. ref.Anchored=true
  1018. ref.CFrame=cf(pos)
  1019. game:GetService("Debris"):AddItem(ref,3)
  1020. for i=1,10 do
  1021. Col=hit.BrickColor
  1022. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1023. groundpart.Anchored=true
  1024. groundpart.Material=hit.Material
  1025. groundpart.CanCollide=true
  1026. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1027. game:GetService("Debris"):AddItem(groundpart,5)
  1028. end
  1029. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  1030. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1031. MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
  1032. end
  1033. swait(50)
  1034. Humanoid.WalkSpeed=16
  1035. attack=false
  1036. end
  1037.  
  1038. function UnleashTheDemon()
  1039. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Son of a bitch.", "Red")
  1040. wait(2.6)
  1041. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"You have underestimated the power of the Mannitus Legends!", "Red")
  1042. attack=true
  1043. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1044. for i=0,1,0.1 do
  1045. swait()
  1046. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1047. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1048. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1049. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1050. RH.C0=clerp(RH.C0,RHC0,.4)
  1051. LH.C0=clerp(LH.C0,LHC0,.4)
  1052. end
  1053. wld1.Part1=Torso
  1054. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1055. for i=0,1,0.1 do
  1056. swait()
  1057. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1058. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  1059. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  1060. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  1061. end
  1062. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  1063. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  1064. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  1065. num=0
  1066. for i=0,1,0.01 do
  1067. swait()
  1068. if num>=10 then
  1069. num=0
  1070. MagicWave(BrickColor.new("Really White"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1071. end
  1072. for i=1,2 do
  1073. if math.random(1,5)==1 then
  1074. MagicBlock(BrickColor.new("Really White"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1075. else
  1076. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1077. end
  1078. end
  1079. num=num+1
  1080. end
  1081. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1082. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  1083. for i=1,4 do
  1084. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  1085. end
  1086. MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  1087. Mode="Demon"
  1088. model2.Parent=Character
  1089. for i=1,#DBlade do
  1090. DBlade[i].Parent=model2
  1091. DBladeWelds[i].Parent=DBlade[1]
  1092. end
  1093. for i=0,1,0.1 do
  1094. swait()
  1095. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  1096. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1097. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  1098. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  1099. end
  1100. swait(50)
  1101. attack=false
  1102. end
  1103.  
  1104. function Demonattackone()
  1105. attack=true
  1106. --[[
  1107. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1109. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  1110. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1111. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1112. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1113. ]]
  1114. for i=0,1,0.1 do
  1115. swait()
  1116. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  1117. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1118. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  1119. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  1120. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  1121. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  1122. end
  1123. hitbox2.Parent=model2
  1124. hitbox2.Size=vt(1,6,1)
  1125. hitbox2.Transparency=1
  1126. hitbox2.CFrame=prtd7.CFrame
  1127. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  1128. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  1129. blcf=nil
  1130. scfr=nil
  1131. for i=0,1,0.08 do
  1132. swait()
  1133. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1134. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1135. local h = 5
  1136. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1137. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1138. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1139. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1140. scfr = blcf
  1141. elseif not scfr then
  1142. scfr = blcf
  1143. end
  1144. hitbox2.CFrame=prtd7.CFrame
  1145. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  1146. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1147. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  1148. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1149. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  1150. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  1151. end
  1152. con1:disconnect()
  1153. hitbox2.Parent=nil
  1154. attack=false
  1155. end
  1156.  
  1157. function Demonattacktwo()
  1158. attack=true
  1159. for i=0,1,0.1 do
  1160. swait()
  1161. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  1162. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1163. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  1164. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1165. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  1166. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  1167. end
  1168. hitbox2.Parent=model2
  1169. hitbox2.Size=vt(1,6,1)
  1170. hitbox2.Transparency=1
  1171. hitbox2.CFrame=prtd7.CFrame
  1172. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  1173. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  1174. blcf=nil
  1175. scfr=nil
  1176. for i=0,1,0.1 do
  1177. swait()
  1178. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1179. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1180. local h = 5
  1181. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1182. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1183. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1184. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1185. scfr = blcf
  1186. elseif not scfr then
  1187. scfr = blcf
  1188. end
  1189. hitbox2.CFrame=prtd7.CFrame
  1190. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  1191. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1192. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  1193. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1194. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  1195. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1196. end
  1197. con1:disconnect()
  1198. hitbox2.Parent=nil
  1199. attack=false
  1200. end
  1201.  
  1202. function Demonattackthree()
  1203. attack=true
  1204. for i=0,1,0.1 do
  1205. swait()
  1206. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  1207. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1208. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  1209. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  1210. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  1211. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1212. end
  1213. Humanoid.WalkSpeed=0
  1214. hitbox2.Parent=model2
  1215. hitbox2.Size=vt(1,6,1)
  1216. hitbox2.Transparency=1
  1217. hitbox2.CFrame=prtd7.CFrame
  1218. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  1219. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  1220. blcf=nil
  1221. scfr=nil
  1222. for i=0,1,0.15 do
  1223. swait()
  1224. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1225. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1226. local h = 5
  1227. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1228. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1229. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1230. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1231. scfr = blcf
  1232. elseif not scfr then
  1233. scfr = blcf
  1234. end
  1235. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  1236. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  1237. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  1238. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  1239. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  1240. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  1241. if i==0.6 then
  1242. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1243. if hit~=nil then
  1244. local ref=part(3,workspace,0,1,BrickColor.new("White"),"Effect",vt())
  1245. ref.Anchored=true
  1246. ref.CFrame=cf(pos)
  1247. game:GetService("Debris"):AddItem(ref,3)
  1248. for i=1,5 do
  1249. Col=hit.BrickColor
  1250. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1251. groundpart.Anchored=true
  1252. groundpart.Material=hit.Material
  1253. groundpart.CanCollide=true
  1254. groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1255. game:GetService("Debris"):AddItem(groundpart,3)
  1256. end
  1257. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  1258. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1259. MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
  1260. end
  1261. end
  1262. end
  1263. con1:disconnect()
  1264. hitbox2.Parent=nil
  1265. swait(10)
  1266. Humanoid.WalkSpeed=16
  1267. attack=false
  1268. end
  1269.  
  1270. function LetItBuild()
  1271. attack=true
  1272. for i=0,1,0.1 do
  1273. swait()
  1274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  1275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  1276. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  1277. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1278. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1279. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1280. end
  1281. local num=0
  1282. local magik=0
  1283. local num2=0
  1284. while holdx==true do
  1285. swait()
  1286. if magik<25 then
  1287. if num>=10 then
  1288. Humanoid:TakeDamage(0)
  1289. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1290. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1291. Lightning(pos1,pos2,5,3,"Cyan",.1,.5,.5)
  1292. MagicCircle(BrickColor.new("Cyan"),cf(pos1),5,5,5,1,1,1,.1)
  1293. MagicBlood(BrickColor.new("Cyan"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  1294. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  1295. magik=magik+1
  1296. num=0
  1297. end
  1298. end
  1299. num=num+1
  1300. num2=num2+magik
  1301. if num2>=50 then
  1302. MagicBlood(BrickColor.new("Really White"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  1303. num2=0
  1304. end
  1305. --MagicBlock(BrickColor.new("Cyan"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
  1306. end
  1307. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  1308. blcf=nil
  1309. scfr=nil
  1310. hitbox2.Parent=model2
  1311. hitbox2.Size=vt(1,6,1)
  1312. hitbox2.Transparency=1
  1313. hitbox2.CFrame=prtd7.CFrame
  1314. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
  1315. for i=1,3 do
  1316. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  1317. for i=0,1,0.1 do
  1318. swait()
  1319. hitbox2.CFrame=prtd7.CFrame
  1320. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1321. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1322. local h = 5
  1323. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1324. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1325. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1326. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1327. scfr = blcf
  1328. elseif not scfr then
  1329. scfr = blcf
  1330. end
  1331. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  1332. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  1333. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1334. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1335. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1336. end
  1337. end
  1338. con1:disconnect()
  1339. hitbox2.Parent=nil
  1340. attack=false
  1341. end
  1342.  
  1343. function YourMoveCreep()
  1344. attack=true
  1345. local pers=nil
  1346. for i=0,1,0.1 do
  1347. swait()
  1348. cost=Humanoid.Health-0
  1349. Humanoid:TakeDamage(0)
  1350. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1351. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  1352. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1353. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  1354. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1355. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1356. end
  1357. local blockprt=part(3,Character,0,1,BrickColor.new("Really White"),"Block",vt(8,.1,8))
  1358. blockprt.Anchored=true
  1359. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1360. conbl=blockprt.Touched:connect(function(hit)
  1361. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  1362. hit=hit.Parent.Parent.Torso
  1363. end
  1364. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  1365. pers=hit
  1366. print("HIT")
  1367. guard=false
  1368. end
  1369. end)
  1370. num=0
  1371. while guard==true do
  1372. swait()
  1373. if num>10 then
  1374. num=0
  1375. MagicBlock(BrickColor.new("Cyan"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  1376. MagicCircle(BrickColor.new("Really White"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  1377. end
  1378. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1379. num=num+1
  1380. end
  1381. conbl:disconnect()
  1382. blockprt.Parent=nil
  1383. print(pers)
  1384. if pers~=nil then
  1385. for i=0,1,0.1 do
  1386. swait()
  1387. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  1388. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  1389. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  1390. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1391. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  1392. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1393. end
  1394. swait(200)
  1395. end
  1396. attack=false
  1397. end
  1398.  
  1399. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  1400. for _,c in pairs(workspace:children()) do
  1401. local hum=c:findFirstChild("Humanoid")
  1402. if hum~=nil then
  1403. local head=c:findFirstChild("Torso")
  1404. if head~=nil then
  1405. local targ=head.Position-Part.Position
  1406. local mag=targ.magnitude
  1407. if mag<=magni and c.Name~=Player.Name then
  1408. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  1409. end
  1410. end
  1411. end
  1412. end
  1413. end
  1414.  
  1415. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1416. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1417. end
  1418.  
  1419. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1420. LastPoint=Point
  1421. function effect(Color,Ref,LP,P1,returnn)
  1422. local effectsmsh=Instance.new("CylinderMesh")
  1423. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1424. effectsmsh.Name="Mesh"
  1425. local effectsg=Instance.new("Part")
  1426. effectsg.formFactor=3
  1427. effectsg.CanCollide=false
  1428. effectsg.Name="Eff"
  1429. effectsg.Locked=true
  1430. effectsg.Anchored=true
  1431. effectsg.Size=Vector3.new(0.5,1,0.5)
  1432. effectsg.Parent=workspace
  1433. effectsmsh.Parent=effectsg
  1434. effectsg.BrickColor=BrickColor.new(Color)
  1435. effectsg.Reflectance=Ref
  1436. local point1=P1
  1437. local mg=(LP.p - point1.p).magnitude
  1438. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1439. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1440. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1441. game:GetService("Debris"):AddItem(effectsg,2)
  1442. if returnn then return effectsg end
  1443. coroutine.resume(coroutine.create(function(Part,Mesh)
  1444. if not returnn then
  1445. for i=0,1,0.05 do
  1446. wait()
  1447. Part.Transparency=1*i
  1448. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  1449. end
  1450. Part.Parent=nil
  1451. end
  1452. end),effectsg,effectsmsh)
  1453. end
  1454.  
  1455. local function CFrameFromTopBack(at, top, back)
  1456. local right = top:Cross(back)
  1457. return CFrame.new(at.x, at.y, at.z,
  1458. right.x, top.x, back.x,
  1459. right.y, top.y, back.y,
  1460. right.z, top.z, back.z)
  1461. end
  1462.  
  1463. function Triangle(a, b, c)
  1464. local edg1 = (c-a):Dot((b-a).unit)
  1465. local edg2 = (a-b):Dot((c-b).unit)
  1466. local edg3 = (b-c):Dot((a-c).unit)
  1467. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1468. a, b, c = a, b, c
  1469. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1470. a, b, c = b, c, a
  1471. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1472. a, b, c = c, a, b
  1473. else
  1474. assert(false, "unreachable")
  1475. end
  1476.  
  1477. local len1 = (c-a):Dot((b-a).unit)
  1478. local len2 = (b-a).magnitude - len1
  1479. local width = (a + (b-a).unit*len1 - c).magnitude
  1480.  
  1481. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1482.  
  1483. local list = {}
  1484.  
  1485. if len2 > 0.01 then
  1486. end
  1487. return unpack(list)
  1488. end
  1489. --[[
  1490. Things for effects
  1491. put the variables in one table
  1492. like effect={brick,interval,i}
  1493. ]]
  1494. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1495. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1496. prt.Anchored=true
  1497. prt.CFrame=cframe
  1498. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1499. game:GetService("Debris"):AddItem(prt,5)
  1500. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1501. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1502. for i=0,1,delay do
  1503. wait()
  1504. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1505. Part.Transparency=i
  1506. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1507. end
  1508. Part.Parent=nil
  1509. end),prt,msh)]]
  1510. end
  1511.  
  1512. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1513. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1514. prt.Anchored=true
  1515. prt.CFrame=cframe
  1516. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1517. game:GetService("Debris"):AddItem(prt,5)
  1518. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1519. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1520. local wld=nil
  1521. for i=0,1,delay do
  1522. wait()
  1523. Part.CFrame=Part.CFrame
  1524. Part.Transparency=i
  1525. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1526. end
  1527. Part.Parent=nil
  1528. end),prt,msh)]]
  1529. end
  1530.  
  1531. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1532. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1533. prt.Anchored=true
  1534. prt.CFrame=cframe
  1535. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1536. game:GetService("Debris"):AddItem(prt,5)
  1537. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1538. end
  1539.  
  1540. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1541. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1542. prt.Anchored=true
  1543. prt.CFrame=cframe
  1544. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1545. game:GetService("Debris"):AddItem(prt,5)
  1546. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1547. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1548. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1549. for i=0,1,delay do
  1550. wait()
  1551. Part.CFrame=Part.CFrame
  1552. Part.Transparency=i
  1553. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1554. end
  1555. Part.Parent=nil
  1556. end),prt,msh)]]
  1557. end
  1558.  
  1559. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1560. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1561. prt.Anchored=true
  1562. prt.CFrame=cframe
  1563. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1564. game:GetService("Debris"):AddItem(prt,5)
  1565. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1566. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1567. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1568. for i=0,1,delay do
  1569. wait()
  1570. Part.CFrame=Part.CFrame
  1571. Part.Transparency=i
  1572. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1573. end
  1574. Part.Parent=nil
  1575. end),prt,msh)]]
  1576. end
  1577.  
  1578. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1579. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1580. prt.Anchored=true
  1581. prt.CFrame=cframe
  1582. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1583. game:GetService("Debris"):AddItem(prt,5)
  1584. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  1585. end
  1586.  
  1587. function ElecEffect(cff,x,y,z)
  1588. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  1589. prt.Anchored=true
  1590. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1591. prt.CFrame=cf(prt.Position)
  1592. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1593. game:GetService("Debris"):AddItem(prt,2)
  1594. xval=math.random()/2
  1595. yval=math.random()/2
  1596. zval=math.random()/2
  1597. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1598. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  1599. end
  1600.  
  1601. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  1602. --[[p0=pos1
  1603. p1=pos2
  1604. tym=times
  1605. ofs=offset
  1606. col=color
  1607. th=size
  1608. tra=transparency
  1609. last=lastingtime]]
  1610. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1611. for i=1,tym do
  1612. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  1613. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1614. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1615. if tym == i then
  1616. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1617. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1618. else
  1619. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1620. end
  1621. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  1622. end
  1623. end
  1624.  
  1625. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1626. if hit.Parent==nil then
  1627. return
  1628. end
  1629. h=hit.Parent:FindFirstChild("Humanoid")
  1630. for _,v in pairs(hit.Parent:children()) do
  1631. if v:IsA("Humanoid") then
  1632. h=v
  1633. end
  1634. end
  1635. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1636. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1637. end
  1638. if hit.Parent.className=="Hat" then
  1639. hit=hit.Parent.Parent:findFirstChild("Head")
  1640. end
  1641. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  1642. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1643. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1644. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1645. return
  1646. end]]
  1647. -- hs(hit,1.2)
  1648. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  1649. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  1650. c=Instance.new("ObjectValue")
  1651. c.Name="creator"
  1652. c.Value=game:service("Players").LocalPlayer
  1653. c.Parent=h
  1654. game:GetService("Debris"):AddItem(c,.5)
  1655. Damage=math.random(minim,maxim)
  1656. if Mode=="Demon" then
  1657. Damage=Damage+damcount
  1658. end
  1659. -- h:TakeDamage()
  1660. blocked=false
  1661. block=hit.Parent:findFirstChild("Block")
  1662. if block~=nil then
  1663. print(block.className)
  1664. if block.className=="NumberValue" then
  1665. if block.Value>0 then
  1666. blocked=true
  1667. if decreaseblock==nil then
  1668. block.Value=block.Value-1
  1669. end
  1670. end
  1671. end
  1672. if block.className=="IntValue" then
  1673. if block.Value>0 then
  1674. blocked=true
  1675. if decreaseblock~=nil then
  1676. block.Value=block.Value-1
  1677. end
  1678. end
  1679. end
  1680. end
  1681. if blocked==false then
  1682. -- h:TakeDamage(Damage)
  1683. h.Health=h.Health-Damage
  1684. else
  1685. h.Health=h.Health-(Damage/0)
  1686. end
  1687. if Type=="Knockdown" then
  1688. hum=hit.Parent.Humanoid
  1689. hum.PlatformStand=true
  1690. coroutine.resume(coroutine.create(function(HHumanoid)
  1691. swait(1)
  1692. HHumanoid.PlatformStand=false
  1693. end),hum)
  1694. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1695. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1696. local bodvol=Instance.new("BodyVelocity")
  1697. bodvol.velocity=angle*knockback
  1698. bodvol.P=5000
  1699. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1700. bodvol.Parent=hit
  1701. rl=Instance.new("BodyAngularVelocity")
  1702. rl.P=3000
  1703. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1704. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1705. rl.Parent=hit
  1706. game:GetService("Debris"):AddItem(bodvol,.5)
  1707. game:GetService("Debris"):AddItem(rl,.5)
  1708. elseif Type=="Normal" then
  1709. vp=Instance.new("BodyVelocity")
  1710. vp.P=500
  1711. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1712. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1713. if KnockbackType==1 then
  1714. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  1715. elseif KnockbackType==2 then
  1716. vp.velocity=Property.CFrame.lookVector*knockback
  1717. end
  1718. if knockback>-100 then
  1719. vp.Parent=hit.Parent.Torso
  1720. end
  1721. game:GetService("Debris"):AddItem(vp,.5)
  1722. elseif Type=="Lifesteal" then
  1723. for i=1,5 do
  1724. MagicBlood(BrickColor.new("Cyan"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  1725. end
  1726. vp=Instance.new("BodyVelocity")
  1727. vp.P=500
  1728. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1729. if KnockbackType==1 then
  1730. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  1731. elseif KnockbackType==2 then
  1732. vp.velocity=Property.CFrame.lookVector*knockback
  1733. end
  1734. if knockback>-250 then
  1735. vp.Parent=hit.Parent.Torso
  1736. end
  1737. game:GetService("Debris"):AddItem(vp,.5)
  1738. Heal=math.ceil(Damage/25100)
  1739. Humanoid.Health=Humanoid.Health+Heal
  1740. elseif Type=="Up" then
  1741. local bodyVelocity=Instance.new("BodyVelocity")
  1742. bodyVelocity.velocity=vt(0,30,0)
  1743. bodyVelocity.P=5000
  1744. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1745. bodyVelocity.Parent=hit
  1746. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1747. rl=Instance.new("BodyAngularVelocity")
  1748. rl.P=3000
  1749. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1750. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1751. rl.Parent=hit
  1752. game:GetService("Debris"):AddItem(rl,.5)
  1753. elseif Type=="Snare" then
  1754. bp=Instance.new("BodyPosition")
  1755. bp.P=2000
  1756. bp.D=100
  1757. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1758. bp.position=hit.Parent.Torso.Position
  1759. bp.Parent=hit.Parent.Torso
  1760. game:GetService("Debris"):AddItem(bp,1)
  1761. elseif Type=="Charge" then
  1762. Charge=Charge+1
  1763. coroutine.resume(coroutine.create(function(Part)
  1764. swait(30)
  1765. for i=1,5 do
  1766. swait(5)
  1767. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  1768. MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
  1769. newdam=math.random(1,5)
  1770. if blocked==false then
  1771. h:TakeDamage()
  1772. else
  1773. h:TakeDamage(newdam/0)
  1774. end
  1775. end
  1776. end),hit)
  1777. end
  1778. debounce=Instance.new("BoolValue")
  1779. debounce.Name="DebounceHit"
  1780. debounce.Parent=hit.Parent
  1781. debounce.Value=true
  1782. game:GetService("Debris"):AddItem(debounce,Delay)
  1783. c=Instance.new("ObjectValue")
  1784. c.Name="creator"
  1785. c.Value=Player
  1786. c.Parent=h
  1787. game:GetService("Debris"):AddItem(c,.5)
  1788. CRIT=false
  1789. hitDeb=true
  1790. AttackPos=6
  1791. end
  1792. end
  1793.  
  1794. showDamage=function(Char,Dealt,du,Color)
  1795. m=Instance.new("Model")
  1796. m.Name=tostring(Dealt)
  1797. h=Instance.new("Humanoid")
  1798. h.Health=0
  1799. h.MaxHealth=0
  1800. h.Parent=m
  1801. c=Instance.new("Part")
  1802. c.Transparency=1
  1803. c.BrickColor=Color
  1804. c.Name="Head"
  1805. c.TopSurface=0
  1806. c.BottomSurface=0
  1807. c.formFactor="Plate"
  1808. c.Size=Vector3.new(1,.4,1)
  1809. ms=Instance.new("CylinderMesh")
  1810. ms.Scale=Vector3.new(.8,.8,.8)
  1811. if CRIT==true then
  1812. ms.Scale=Vector3.new(1,1.25,1)
  1813. end
  1814. ms.Parent=c
  1815. c.Reflectance=0
  1816. Instance.new("BodyGyro").Parent=c
  1817. c.Parent=m
  1818. if Char:findFirstChild("Head")~=nil then
  1819. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1820. elseif Char.Parent:findFirstChild("Head")~=nil then
  1821. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1822. end
  1823. f=Instance.new("BodyPosition")
  1824. f.P=2000
  1825. f.D=100
  1826. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1827. f.position=c.Position+Vector3.new(0,3,0)
  1828. f.Parent=c
  1829. game:GetService("Debris"):AddItem(m,.5+du)
  1830. c.CanCollide=false
  1831. m.Parent=workspace
  1832. c.CanCollide=false
  1833. end
  1834.  
  1835. combo=0
  1836. function ob1d(mouse)
  1837. hold=true
  1838. if attack==true or equipped==false then return end
  1839. if Mode=="Binary" then
  1840. idle=0
  1841. if Anim=="Run" then
  1842. SpinSlash()
  1843. else
  1844. if combo==0 then
  1845. combo=1
  1846. attackone()
  1847. elseif combo==1 then
  1848. combo=2
  1849. attacktwo()
  1850. elseif combo==2 then
  1851. combo=0
  1852. attackthree()
  1853. end
  1854. end
  1855. else
  1856. if combo==0 then
  1857. combo=1
  1858. Demonattackone()
  1859. elseif combo==1 then
  1860. combo=2
  1861. Demonattacktwo()
  1862. elseif combo==2 then
  1863. combo=0
  1864. Demonattackthree()
  1865. end
  1866. end
  1867. coroutine.resume(coroutine.create(function()
  1868. for i=1,20 do
  1869. if attack==false then
  1870. swait()
  1871. end
  1872. end
  1873. if attack==false then
  1874. combo=0
  1875. --equipanim()
  1876. end
  1877. end))
  1878. end
  1879.  
  1880. function ob1u(mouse)
  1881. hold = false
  1882. end
  1883.  
  1884. buttonhold = false
  1885.  
  1886. eul=0
  1887. holdx=false
  1888. equipped=false
  1889. function key(key)
  1890. if key=="c" then
  1891. if guard==true then
  1892. guard=false
  1893. else
  1894. guard=true
  1895. end
  1896. end
  1897. if key=="x" then
  1898. holdx=true
  1899. end
  1900. if attack==true then return end
  1901. if key=="f" then
  1902. if equipped==false then
  1903. equipped=true
  1904. RSH=ch.Torso["Right Shoulder"]
  1905. LSH=ch.Torso["Left Shoulder"]
  1906. --
  1907. RSH.Parent=nil
  1908. LSH.Parent=nil
  1909. --
  1910. RW.Name="Right Shoulder"
  1911. RW.Part0=ch.Torso
  1912. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1913. RW.C1=cf(0, 0.5, 0)
  1914. RW.Part1=ch["Right Arm"]
  1915. RW.Parent=ch.Torso
  1916. --
  1917. LW.Name="Left Shoulder"
  1918. LW.Part0=ch.Torso
  1919. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1920. LW.C1=cf(0, 0.5, 0)
  1921. LW.Part1=ch["Left Arm"]
  1922. LW.Parent=ch.Torso
  1923. --
  1924. equipanim()
  1925. else
  1926. equipped=false
  1927. hideanim()
  1928. swait(0)
  1929. RW.Parent=nil
  1930. LW.Parent=nil
  1931. RSH.Parent=player.Character.Torso
  1932. LSH.Parent=player.Character.Torso
  1933. end
  1934. end
  1935. if equipped==false then return end
  1936. if Mode=="Binary" then
  1937. if key=="q" then
  1938. idle=500
  1939. end
  1940. if key=="z" and hitfloor~=nil then
  1941. BinarySwing()
  1942. end
  1943. if key=="x" then
  1944. BinaryImpulse()
  1945. end
  1946. if key=="c" then
  1947. Bash()
  1948. end
  1949. if key=="v" then
  1950. UnleashTheDemon()
  1951. end
  1952. end
  1953. if Mode=="Demon" then
  1954. if key=="x" then
  1955. LetItBuild()
  1956. end
  1957. if key=="c" then
  1958. YourMoveCreep()
  1959. end
  1960. end
  1961. if key=="0" then
  1962. Humanoid.WalkSpeed=(40)
  1963. end
  1964. end
  1965.  
  1966. function key2(key)
  1967. if key=="0" then
  1968. Humanoid.WalkSpeed=16
  1969. end
  1970. if key=="x" then
  1971. holdx=false
  1972. end
  1973. end
  1974.  
  1975. function s(mouse)
  1976. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1977. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1978. mouse.KeyDown:connect(key)
  1979. mouse.KeyUp:connect(key2)
  1980.  
  1981. player=Player
  1982. ch=Character
  1983. MMouse=mouse
  1984. end
  1985.  
  1986. function ds(mouse)
  1987. end
  1988.  
  1989. Bin.Selected:connect(s)
  1990. Bin.Deselected:connect(ds)
  1991. print("Fixer the Demon Mercenary loaded.")
  1992.  
  1993. local thenum=0
  1994. while true do
  1995. swait()
  1996. if Mode=="Demon" then
  1997. if thenum>=5 then
  1998. ElecEffect(prtd7.CFrame,2,4,2)
  1999. thenum=0
  2000. end
  2001. thenum=thenum+1
  2002. for _,c in pairs(Character:children()) do
  2003. for _,v in pairs(c:children()) do
  2004. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  2005. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  2006. v.Parent=nil
  2007. end
  2008. end
  2009. end
  2010. end
  2011. end
  2012. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2013. local velderp=RootPart.Velocity.y
  2014. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2015. if equipped==true then
  2016. if Anim=="Idle" and attack==false and Mode=="Binary" then
  2017. idle=idle+1
  2018. else
  2019. idle=0
  2020. end
  2021. if idleanim>=0.3 then
  2022. idleanim2=true
  2023. elseif idleanim<=0 then
  2024. idleanim2=false
  2025. end
  2026. if idleanim2==false then
  2027. if Anim=="Walk" then
  2028. idleanim=idleanim+0.005
  2029. elseif Anim=="Idle" then
  2030. idleanim=idleanim+0.003
  2031. end
  2032. else
  2033. if Anim=="Walk" then
  2034. idleanim=idleanim-0.005
  2035. elseif Anim=="Idle" then
  2036. idleanim=idleanim-0.003
  2037. end
  2038. end
  2039. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2040. Anim="Jump"
  2041. if attack==false and Mode=="Binary" then
  2042. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  2043. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  2044. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2045. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2046. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2047. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  2048. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  2049. end
  2050. if attack==false and Mode=="Demon" then
  2051. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  2052. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2053. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  2054. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  2055. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  2056. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  2057. end
  2058. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2059. Anim="Fall"
  2060. if attack==false and Mode=="Binary" then
  2061. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  2062. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  2063. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2064. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  2065. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2066. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2067. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2068. end
  2069. if attack==false and Mode=="Demon" then
  2070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  2071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  2072. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  2073. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  2074. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  2075. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  2076. end
  2077. elseif torvel<1 and hitfloor~=nil then
  2078. if Anim=="Fall" then
  2079. if velderp<=-70 then
  2080. coroutine.resume(coroutine.create(function()
  2081. Stomp()
  2082. end))
  2083. end
  2084. end
  2085. Anim="Idle"
  2086. if idle<=500 then
  2087. if attack==false and Mode=="Binary" then
  2088. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  2089. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  2090. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  2091. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  2092. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  2093. RH.C0=clerp(RH.C0,RHC0,.2)
  2094. LH.C0=clerp(LH.C0,LHC0,.2)
  2095. end
  2096. if attack==false and Mode=="Demon" then
  2097. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  2098. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  2099. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  2100. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  2101. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  2102. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  2103. end
  2104. else
  2105. if attack==false and Mode=="Binary" then
  2106. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  2107. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  2108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  2109. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  2110. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  2111. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  2112. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  2113. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  2114. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  2115. end
  2116. end
  2117. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2118. if Anim=="Fall" then
  2119. if velderp<=-70 then
  2120. coroutine.resume(coroutine.create(function()
  2121. Stomp()
  2122. end))
  2123. end
  2124. end
  2125. Anim="Walk"
  2126. if attack==false and Mode=="Binary" then
  2127. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  2128. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2129. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2130. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  2132. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  2133. RH.C0=clerp(RH.C0,RHC0,.3)
  2134. LH.C0=clerp(LH.C0,LHC0,.3)
  2135. end
  2136. if attack==false and Mode=="Demon" then
  2137. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  2138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2139. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  2140. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  2141. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  2142. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  2143. end
  2144. elseif torvel>=22 and hitfloor~=nil then
  2145. if Anim=="Fall" then
  2146. if velderp<=-70 then
  2147. coroutine.resume(coroutine.create(function()
  2148. Stomp()
  2149. end))
  2150. end
  2151. end
  2152. Anim="Run"
  2153. if attack==false and Mode=="Binary" then
  2154. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  2155. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  2156. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  2157. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  2158. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  2159. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  2160. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  2161. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  2162. end
  2163. if attack==false and Mode=="Demon" then
  2164. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  2165. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  2166. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  2167. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2168. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2169. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  2170. end
  2171. end
  2172. end
  2173. if #Effects>0 then
  2174. --table.insert(Effects,{prt,"Block1",delay})
  2175. for e=1,#Effects do
  2176. if Effects[e]~=nil then
  2177. --for j=1,#Effects[e] do
  2178. local Thing=Effects[e]
  2179. if Thing~=nil then
  2180. local Part=Thing[1]
  2181. local Mode=Thing[2]
  2182. local Delay=Thing[3]
  2183. local IncX=Thing[4]
  2184. local IncY=Thing[5]
  2185. local IncZ=Thing[6]
  2186. if Thing[1].Transparency<=1 then
  2187. if Thing[2]=="Block1" then
  2188. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2189. Mesh=Thing[1].Mesh
  2190. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2191. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2192. elseif Thing[2]=="Cylinder" then
  2193. Mesh=Thing[1].Mesh
  2194. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2195. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2196. elseif Thing[2]=="Blood" then
  2197. Mesh=Thing[1].Mesh
  2198. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2199. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2200. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2201. elseif Thing[2]=="Elec" then
  2202. Mesh=Thing[1].Mesh
  2203. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2204. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2205. elseif Thing[2]=="Disappear" then
  2206. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2207. end
  2208. else
  2209. Part.Parent=nil
  2210. table.remove(Effects,e)
  2211. end
  2212. end
  2213. --end
  2214. end
  2215. end
  2216. end
  2217. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement