Advertisement
Tricky208

Azure Warrior V1

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