cooliolam

Untitled

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