Advertisement
NyonicBear

sjdf

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