Advertisement
TheCopyPaster99

ultra secret [jk not a secret just a script]

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