minecrafter523

Untitled

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