Advertisement
Guest User

Untitled

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