Advertisement
deezfai

Untitled

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