Advertisement
Guest User

Untitled

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