Advertisement
Guest User

Untitled

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