Advertisement
nycosar14

Untitled

Feb 21st, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 128.14 KB | None | 0 0
  1. wait(.5)
  2. local Player=game.Players.LocalPlayer
  3. repeat wait() until Player
  4. local Character=Player.Character
  5. repeat wait() until Character
  6. PlayerGui=Player.PlayerGui
  7. Backpack=Player.Backpack
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. Humanoid=Character.Humanoid
  11. Humanoid.JumpPower = 90
  12. LeftArm=Character:WaitForChild("Left Arm")
  13. LeftLeg=Character:WaitForChild("Left Leg")
  14. RightArm=Character:WaitForChild("Right Arm")
  15. RightLeg=Character:WaitForChild("Left Arm")
  16. LS=Torso:WaitForChild("Left Shoulder")
  17. LH=Torso:WaitForChild("Left Hip")
  18. RS=Torso:WaitForChild("Right Shoulder")
  19. RH=Torso:WaitForChild("Right Hip")
  20. Neck=Torso.Neck
  21. it=Instance.new
  22. vt=Vector3.new
  23. cf=CFrame.new
  24. local runServ = game:GetService("RunService").RenderStepped
  25. local TextTable = {}
  26. euler=CFrame.fromEulerAnglesXYZ
  27. angles=CFrame.Angles
  28. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  31. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  32. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  34. RootPart=Character.HumanoidRootPart
  35. RootJoint=RootPart.RootJoint
  36. RootCF=euler(-1.57,0,3.14)
  37. attack=false
  38. attackdebounce=false
  39. MMouse=Player:GetMouse()
  40. combo=0
  41. local Anim="Idle"
  42. local Effects={}
  43. equipped=false
  44. local idle=0
  45. local hold=false
  46. local con1=nil
  47. local con2=nil
  48. local Mode="Binary"
  49. local idleanim=0
  50. local idleanim2=false
  51. local impulse=1
  52. local hitfloor,posfloor=nil,nil
  53. local damcount=0
  54. local guard=false
  55. local damagebonus = 1
  56. --player
  57. player=nil
  58. --save shoulders
  59. RSH, LSH=nil, nil
  60. --welds
  61. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  62. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  63. LH=Torso["Left Hip"]
  64. RH=Torso["Right Hip"]
  65. Asset="http://www.roblox.com/asset/?id="
  66. Health=200
  67. Humanoid.MaxHealth=math.huge
  68. Humanoid.Health=math.huge
  69. coroutine.resume(coroutine.create(function()
  70. for i=1,20 do
  71. Humanoid.MaxHealth=math.huge
  72. Humanoid.Health=math.huge
  73. end
  74. Humanoid.MaxHealth=200
  75. wait()
  76. Humanoid.Health=200
  77. Humanoid:TakeDamage(1)
  78. Humanoid.Health=Health
  79. end))
  80. Humanoid.Health=Health
  81.  
  82. function swait(num)
  83. if num==0 or num==nil then
  84. game:service'RunService'.RenderStepped:wait()
  85. else
  86. for i=0,num do
  87. game:service'RunService'.RenderStepped:wait()
  88. end
  89. end
  90. end
  91.  
  92. if Character:findFirstChild("Binary Sword",true) ~= nil then
  93. Character:findFirstChild("Binary Sword",true).Parent = nil
  94. end
  95. if Character:findFirstChild("Demon Blade",true) ~= nil then
  96. Character:findFirstChild("Demon Blade",true).Parent = nil
  97. end
  98. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  99. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  100. end
  101.  
  102.  
  103. function NoOutline(Part)
  104. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  105. end
  106.  
  107. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  108. local fp=it("Part")
  109. fp.formFactor=formfactor
  110. fp.Parent=parent
  111. fp.Reflectance=reflectance
  112. fp.Transparency=transparency
  113. fp.CanCollide=false
  114. fp.Locked=true
  115. fp.BrickColor=brickcolor
  116. fp.Name=name
  117. fp.Size=size
  118. fp.Position=Torso.Position
  119. NoOutline(fp)
  120. if fp.BrickColor == BrickColor.new("Dark indigo") then
  121. fp.Material="Neon"
  122. elseif fp.BrickColor == BrickColor.new("Fossil") then
  123. fp.BrickColor = BrickColor.new("Dark indigo")
  124. fp.Material="Granite"
  125. else
  126. fp.Material="SmoothPlastic"
  127. end
  128. fp:BreakJoints()
  129. return fp
  130. end
  131.  
  132. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  133. local mesh=it(Mesh)
  134. mesh.Parent=part
  135. if Mesh=="SpecialMesh" then
  136. mesh.MeshType=meshtype
  137. mesh.MeshId=meshid
  138. end
  139. mesh.Offset=offset
  140. mesh.Scale=scale
  141. return mesh
  142. end
  143.  
  144. function weld(parent,part0,part1,c0)
  145. local weld=it("Weld")
  146. weld.Parent=parent
  147. weld.Part0=part0
  148. weld.Part1=part1
  149. weld.C0=c0
  150. return weld
  151. end
  152.  
  153. local fengui=it("GuiMain")
  154. fengui.Parent=Player.PlayerGui
  155. fengui.Name="WeaponGUI"
  156.  
  157. local Color1=BrickColor.new("Really black")
  158. local Color2=BrickColor.new("Dark stone grey")
  159. local Colorr3=BrickColor.new("Dark indigo")
  160. local Color4=BrickColor.new("Fossil")
  161.  
  162. local model1=Instance.new("Model")
  163. model1.Parent=Character
  164. model1.Name="Binary Sword"
  165. BSword={}
  166. BSwordWelds={}
  167. local model2=Instance.new("Model")
  168. model2.Parent=nil
  169. model2.Name="Demon Blade"
  170. DBlade={}
  171. DBladeWelds={}
  172.  
  173. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  174. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  175. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  176. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  177. prt5=part(3,model1,0,0,Color1,"Part5",vt())
  178. prt6=part(3,model1,0,0,Color4,"Part6",vt())
  179. prt7=part(3,model1,0,0,Color4,"Part7",vt())
  180. prt8=part(3,model1,0,0,Color4,"Part8",vt())
  181. prt9=part(3,model1,0,0,Color4,"Part9",vt())
  182. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  183. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  184. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  185.  
  186. prtd1=part(3,model2,0,0.4,BrickColor.new("Dark indigo"),"DPart1",vt())
  187. prtd2=part(3,model2,0,0,BrickColor.new("Really black"),"DPart2",vt())
  188. prtd3=part(3,model2,0,0,BrickColor.new("Really black"),"DPart3",vt())
  189. prtd4=part(3,model2,0,0,BrickColor.new("Really black"),"DPart4",vt())
  190. prtd5=part(3,model2,0,0,BrickColor.new("Really black"),"DPart5",vt())
  191. prtd6=part(3,model2,0,0,BrickColor.new("Really black"),"DPart6",vt())
  192. prtd7=part(3,model2,0.8,0,BrickColor.new("Dark indigo"),"DPart7",vt())
  193. prtd8=part(3,model2,0.8,0,BrickColor.new("Dark indigo"),"DPart8",vt())
  194. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Fossil"),"DPart9",vt())
  195. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Fossil"),"DPart10",vt())
  196. prtd11=part(3,model2,0.5,0,BrickColor.new("Dark indigo"),"DPart11",vt())
  197. prtd12=part(3,model2,0,0,BrickColor.new("Really black"),"DPart12",vt())
  198. for _,c in pairs(model2:children()) do
  199. if c.className=="Part" then
  200. table.insert(DBlade,c)
  201. end
  202. end
  203.  
  204. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  205. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  206. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  207. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  208. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  209. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  210. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  211. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  212. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  213. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  214. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  215. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  216.  
  217. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  218. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  219. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  220. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  221. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  222. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  223. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  224. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  225. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  226. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  227. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  228. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  229.  
  230. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  231. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  232. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  233. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  234. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  235. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  236. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  237. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  238. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  239. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  240. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  241. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  242.  
  243. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  244. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  245. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  246. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  247. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  248. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  249. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  250. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  251. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  252. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  253. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  254. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  255. for _,c in pairs(prtd1:children()) do
  256. if c.className=="Weld" then
  257. table.insert(DBladeWelds,c)
  258. print(c)
  259. end
  260. end
  261.  
  262. for i=-.9,.9,0.2 do
  263. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  264. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  265. 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))
  266. end
  267.  
  268. function Make1(Ceef)
  269. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  270. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  271. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  272. prtn1=part(3,model1,0,0,Colorr3,"1a",vt())
  273. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  274. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,0,0))
  275. prtn2=part(3,model1,0,0,Colorr3,"1b",vt())
  276. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  277. wldn2=weld(prtn2,prtn2,prtn1,euler(0.5,0,0)*cf(0,0.03,-0.1))
  278. prtn3=part(3,model1,0,0,Colorr3,"1c",vt())
  279. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  280. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0,0.15))
  281. end
  282. function Make0(Ceef)
  283. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  284. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  285. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  286. prtn1=part(3,model1,0,0,Colorr3,"0a",vt())
  287. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  288. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,-0.05,0))
  289. prtn2=part(3,model1,0,0,Colorr3,"0b",vt())
  290. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  291. wldn2=weld(prtn2,prtn2,prtn1,euler(1.57,0,0)*cf(0,0.05,0.15))
  292. prtn3=part(3,model1,0,0,Colorr3,"0c",vt())
  293. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  294. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0.05,-0.15))
  295. prtn4=part(3,model1,0,0,Colorr3,"0d",vt())
  296. mshn4=mesh("BlockMesh",prtn4,"","",vt(0,0,0),vt(.7,.2,1.5))
  297. wldn4=weld(prtn4,prtn4,prtn1,euler(0,0,0)*cf(0,0.1,0))
  298. end
  299. Make1(1.6)
  300. Make0(1.4)
  301. Make0(1.2)
  302. Make1(1)
  303. Make1(.8)
  304. Make1(.6)
  305. Make1(.4)
  306. Make0(.2)
  307. Make0(0)
  308.  
  309. local hitbox1=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  310. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  311.  
  312. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
  313. local Tool=Instance.new("HopperBin")
  314. Tool.Parent=Backpack
  315. Tool.Name="Cerberus' Fang"
  316. local Bin = Tool
  317. script.Parent = Tool
  318.  
  319. local bodvel=Instance.new("BodyVelocity")
  320. bodvel.Name="FixerVel"
  321. local bg=Instance.new("BodyGyro")
  322. bg.Name="FixerGyro"
  323.  
  324. so = function(id,par,vol,pit)
  325. coroutine.resume(coroutine.create(function()
  326. local sou = Instance.new("Sound",par or workspace)
  327. sou.Parent=par
  328. sou.Volume=vol
  329. sou.Pitch=pit or 1
  330. sou.SoundId=id
  331. swait()
  332. sou:Play()
  333. game:GetService("Debris"):AddItem(sou,6)
  334. end))
  335. end
  336.  
  337. function clerp(a,b,t)
  338. local qa = {QuaternionFromCFrame(a)}
  339. local qb = {QuaternionFromCFrame(b)}
  340. local ax, ay, az = a.x, a.y, a.z
  341. local bx, by, bz = b.x, b.y, b.z
  342. local _t = 1-t
  343. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  344. end
  345.  
  346. function QuaternionFromCFrame(cf)
  347. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  348. local trace = m00 + m11 + m22
  349. if trace > 0 then
  350. local s = math.sqrt(1 + trace)
  351. local recip = 0.5/s
  352. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  353. else
  354. local i = 0
  355. if m11 > m00 then
  356. i = 1
  357. end
  358. if m22 > (i == 0 and m00 or m11) then
  359. i = 2
  360. end
  361. if i == 0 then
  362. local s = math.sqrt(m00-m11-m22+1)
  363. local recip = 0.5/s
  364. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  365. elseif i == 1 then
  366. local s = math.sqrt(m11-m22-m00+1)
  367. local recip = 0.5/s
  368. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  369. elseif i == 2 then
  370. local s = math.sqrt(m22-m00-m11+1)
  371. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  372. end
  373. end
  374. end
  375.  
  376. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  377. local xs, ys, zs = x + x, y + y, z + z
  378. local wx, wy, wz = w*xs, w*ys, w*zs
  379. local xx = x*xs
  380. local xy = x*ys
  381. local xz = x*zs
  382. local yy = y*ys
  383. local yz = y*zs
  384. local zz = z*zs
  385. 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))
  386. end
  387.  
  388. function QuaternionSlerp(a, b, t)
  389. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  390. local startInterp, finishInterp;
  391. if cosTheta >= 0.0001 then
  392. if (1 - cosTheta) > 0.0001 then
  393. local theta = math.acos(cosTheta)
  394. local invSinTheta = 1/math.sin(theta)
  395. startInterp = math.sin((1-t)*theta)*invSinTheta
  396. finishInterp = math.sin(t*theta)*invSinTheta
  397. else
  398. startInterp = 1-t
  399. finishInterp = t
  400. end
  401. else
  402. if (1+cosTheta) > 0.0001 then
  403. local theta = math.acos(-cosTheta)
  404. local invSinTheta = 1/math.sin(theta)
  405. startInterp = math.sin((t-1)*theta)*invSinTheta
  406. finishInterp = math.sin(t*theta)*invSinTheta
  407. else
  408. startInterp = t-1
  409. finishInterp = t
  410. end
  411. end
  412. 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
  413. end
  414.  
  415. function hideanim()
  416. equipped=false
  417. attack=true
  418. if Mode=="Binary" then
  419. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  420. for i=0,1,0.1 do
  421. swait()
  422. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  423. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  424. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  425. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  426. end
  427. wld1.Part1=Torso
  428. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  429. for i=0,1,0.2 do
  430. swait()
  431. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  432. end
  433. for i=0,1,0.1 do
  434. swait()
  435. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  436. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  437. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  438. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  439. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  440. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  441. end
  442. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  443. else
  444. for i=0,1,0.1 do
  445. swait()
  446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  448. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  449. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  450. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  451. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  452. end
  453. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  454. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  455. for i=0,1,0.015 do
  456. swait()
  457. for i=1,3 do
  458. if math.random(1,4)==1 then
  459. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  460. else
  461. MagicBlock(BrickColor.new("Dark indigo"),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)
  462. end
  463. end
  464. end
  465. model2.Parent=nil
  466. for i=0,1,0.1 do
  467. swait()
  468. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  470. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  471. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  472. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  473. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  474. end
  475. end
  476. Torso.Neck.C0=necko
  477. Torso.Neck.C1=necko2
  478. RootJoint.C0=RootCF
  479. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  480. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  481. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  482. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  483. RH.C0=RHC0
  484. RH.C1=RHC1
  485. LH.C0=LHC0
  486. LH.C1=LHC1
  487. Mode="Binary"
  488. attack=false
  489. end
  490.  
  491. function equipanim()
  492. equipped=true
  493. attack=true
  494. for i=0,1,0.2 do
  495. swait()
  496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  497. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  498. end
  499. for i=0,1,0.1 do
  500. swait()
  501. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  502. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  503. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  504. end
  505. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  506. wld1.Part1=RightArm
  507. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  508. for i=0,1,0.1 do
  509. swait()
  510. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  511. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  512. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  513. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  514. end
  515. for i=0,1,0.1 do
  516. swait()
  517. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  519. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  520. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  521. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  522. end
  523. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  524. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  525. Torso.Neck.C0=necko*euler(0,0,0.5)
  526. RootJoint.C0=RootCF*euler(0,0,-0.5)
  527. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  528. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  529. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  530. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  531. attack=false
  532. end
  533.  
  534. function Stomp()
  535. Humanoid.WalkSpeed=0
  536. Torso.Velocity=RootPart.CFrame.lookVector*0
  537. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  538. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  539. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  540. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  541. Dam=math.random(5,10)
  542. Humanoid.Health=Humanoid.Health-Dam
  543. showDamage(Torso,Dam,.5,BrickColor:Red())
  544. MagniDamage(Torso,20,50,99,math.random(10,15),"Knockdown")
  545. --[[for i=0,1,0.2 do
  546. swait()
  547. if Mode=="Binary" then
  548. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  549. end
  550. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  551. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  552. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  553. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  554. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  555. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  556. end
  557. for i=0,1,0.1 do
  558. swait()
  559. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  560. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  561. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  562. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  563. end]]
  564. swait(10)
  565. Humanoid.WalkSpeed=16
  566. end
  567.  
  568. function attackone()
  569. attack=true
  570. for i=0,1,0.1 do
  571. swait()
  572. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  574. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  575. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  576. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  577. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  578. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  579. end
  580. hitbox1.Parent=model1
  581. hitbox1.Size=vt(1,5,1)
  582. hitbox1.Transparency=1
  583. hitbox1.CFrame=prt10.CFrame
  584. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,5),"Normal",RootPart,.5,1) end)
  585. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,50,math.random(1,5),"Normal",RootPart,.5,1) end)
  586. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  587. blcf=nil
  588. scfr=nil
  589. for i=0,1,0.25 do
  590. swait()
  591. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  592. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  593. local h = 5
  594. 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)
  595. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  596. 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)
  597. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  598. scfr = blcf
  599. elseif not scfr then
  600. scfr = blcf
  601. end
  602. hitbox1.CFrame=prt10.CFrame
  603. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  604. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  605. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  606. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  607. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  608. end
  609. for i=0,1,0.1 do
  610. swait()
  611. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  612. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  613. local h = 5
  614. 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)
  615. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  616. 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)
  617. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  618. scfr = blcf
  619. elseif not scfr then
  620. scfr = blcf
  621. end
  622. hitbox1.CFrame=prt10.CFrame
  623. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  624. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  625. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  626. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  627. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  628. end
  629. con1:disconnect()
  630. hitbox1.Parent=nil
  631. attack=false
  632. end
  633.  
  634. function attacktwo()
  635. attack=true
  636. for i=0,1,0.1 do
  637. swait()
  638. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  639. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  640. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  641. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  642. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  643. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  644. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  645. end
  646. hitbox1.Parent=model1
  647. hitbox1.Size=vt(1,5,1)
  648. hitbox1.Transparency=1
  649. hitbox1.CFrame=prt10.CFrame
  650. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(1,5),"Normal",RootPart,.5,1) end)
  651. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  652. blcf=nil
  653. scfr=nil
  654. for i=0,1,0.1 do
  655. swait()
  656. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  657. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  658. local h = 5
  659. 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)
  660. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  661. 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)
  662. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  663. scfr = blcf
  664. elseif not scfr then
  665. scfr = blcf
  666. end
  667. hitbox1.CFrame=prt10.CFrame
  668. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  669. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  670. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  671. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  672. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  673. end
  674. con1:disconnect()
  675. hitbox1.Parent=nil
  676. attack=false
  677. end
  678.  
  679. function attackthree()
  680. attack=true
  681. for i=0,1,0.1 do
  682. swait()
  683. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  684. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  685. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  686. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  687. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  688. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  689. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  690. end
  691. hitbox1.Parent=model1
  692. hitbox1.Size=vt(1,5,1)
  693. hitbox1.Transparency=1
  694. hitbox1.CFrame=prt10.CFrame
  695. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(1,5),"Normal",RootPart,.5,1) end)
  696. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  697. blcf=nil
  698. scfr=nil
  699. for i=0,1,0.25 do
  700. swait()
  701. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  702. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  703. local h = 5
  704. 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)
  705. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  706. 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)
  707. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  708. scfr = blcf
  709. elseif not scfr then
  710. scfr = blcf
  711. end
  712. hitbox1.CFrame=prt10.CFrame
  713. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  715. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  716. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  717. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  718. end
  719. for i=0,1,0.2 do
  720. swait()
  721. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  722. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  723. local h = 5
  724. 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)
  725. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  726. 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)
  727. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  728. scfr = blcf
  729. elseif not scfr then
  730. scfr = blcf
  731. end
  732. hitbox1.CFrame=prt10.CFrame
  733. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  734. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  735. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  736. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  737. end
  738. con1:disconnect()
  739. hitbox1.Parent=nil
  740. attack=false
  741. end
  742.  
  743. function SpinSlash()
  744. attack=true
  745. for i=0,1,0.1 do
  746. swait()
  747. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  748. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  749. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  750. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  751. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  752. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  753. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  754. end
  755. hitbox1.Parent=model1
  756. hitbox1.Size=vt(1,5,1)
  757. hitbox1.Transparency=1
  758. hitbox1.CFrame=prt10.CFrame
  759. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Normal",RootPart,.001,1) end)
  760. blcf=nil
  761. scfr=nil
  762. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  763. repeat
  764. hitbox1.Parent=model1
  765. hitbox1.Size=vt(1,5,1)
  766. hitbox1.Transparency=1
  767. hitbox1.CFrame=prt10.CFrame
  768. for i=0,1,0.15 do
  769. swait()
  770. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  771. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  772. local h = 5
  773. 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)
  774. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  775. 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)
  776. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  777. scfr = blcf
  778. elseif not scfr then
  779. scfr = blcf
  780. end
  781. hitbox1.CFrame=prt10.CFrame
  782. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  785. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  786. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  787. RH.C0=clerp(RH.C0,RHC0,.3)
  788. LH.C0=clerp(LH.C0,LHC0,.3)
  789. end
  790. for i=0,1,0.05 do
  791. swait()
  792. if i>=0.45 and i<=0.5 then
  793. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  794. end
  795. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  796. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  797. local h = 5
  798. 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)
  799. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  800. 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)
  801. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  802. scfr = blcf
  803. elseif not scfr then
  804. scfr = blcf
  805. end
  806. hitbox1.CFrame=prt10.CFrame
  807. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  808. end
  809. until hold==false
  810. con1:disconnect()
  811. hitbox1.Parent=nil
  812. attack=false
  813. end
  814.  
  815. function BinarySwing()
  816. attack=true
  817. for i=0,1,0.1 do
  818. swait()
  819. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  820. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  822. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  823. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  824. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  825. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  826. end
  827. Humanoid.Jump=true
  828. bodvol=Instance.new("BodyVelocity")
  829. bodvol.Parent=RootPart
  830. bodvol.velocity=vt(0,1,0)*600
  831. bodvol.P=7000
  832. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  833. --Torso.Velocity=vt(0,1,0)*100
  834. hitbox1.Parent=model1
  835. hitbox1.Size=vt(1,5,1)
  836. hitbox1.Transparency=1
  837. hitbox1.CFrame=prt10.CFrame
  838. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,40,80,math.random(10,20),"Dragger",RootPart,.001,1) end)
  839. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  840. blcf=nil
  841. scfr=nil
  842. for i=0,1,0.1 do
  843. swait()
  844. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  845. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  846. local h = 5
  847. 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)
  848. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  849. 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)
  850. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  851. scfr = blcf
  852. elseif not scfr then
  853. scfr = blcf
  854. end
  855. hitbox1.CFrame=prt10.CFrame
  856. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  857. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  858. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  859. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  860. RH.C0=clerp(RH.C0,RHC0,.3)
  861. LH.C0=clerp(LH.C0,LHC0,.3)
  862. end
  863. con1:disconnect()
  864. hitbox1.Parent=nil
  865. bodvol.Parent=nil
  866. attack=false
  867. end
  868.  
  869. function BinaryImpulse()
  870. attack=true
  871. if impulse==1 then
  872. impulse=2
  873. Humanoid.Jump=true
  874. for i=0,1,0.2 do
  875. swait()
  876. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  877. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  878. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  879. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  880. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  881. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  882. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  883. end
  884. blcf=nil
  885. scfr=nil
  886. hitbox1.Parent=model1
  887. hitbox1.Size=vt(1,5,1)
  888. hitbox1.Transparency=1
  889. hitbox1.CFrame=prt10.CFrame
  890. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Dragger",RootPart,.01,1) end)
  891. for i=1,3 do
  892. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  893. for i=0,1,0.1 do
  894. swait()
  895. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  896. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  897. local h = 5
  898. 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)
  899. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  900. 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)
  901. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  902. scfr = blcf
  903. elseif not scfr then
  904. scfr = blcf
  905. end
  906. hitbox1.CFrame=prt10.CFrame
  907. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  908. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  909. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  910. end
  911. end
  912. con1:disconnect()
  913. hitbox1.Parent=nil
  914. elseif impulse==2 then
  915. impulse=3
  916. Humanoid.Jump=true
  917. for i=0,1,0.2 do
  918. swait()
  919. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  920. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  921. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  922. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  923. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  924. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  925. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  926. end
  927. blcf=nil
  928. scfr=nil
  929. hitbox1.Parent=model1
  930. hitbox1.Size=vt(1,5,1)
  931. hitbox1.Transparency=1
  932. hitbox1.CFrame=prt10.CFrame
  933. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Dragger",RootPart,.01,1) end)
  934. for i=1,3 do
  935. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  936. for i=0,1,0.1 do
  937. swait()
  938. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  939. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  940. local h = 5
  941. 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)
  942. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  943. 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)
  944. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  945. scfr = blcf
  946. elseif not scfr then
  947. scfr = blcf
  948. end
  949. hitbox1.CFrame=prt10.CFrame
  950. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  951. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  952. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  953. end
  954. end
  955. con1:disconnect()
  956. hitbox1.Parent=nil
  957. elseif impulse==3 then
  958. impulse=1
  959. for i=0,1,0.2 do
  960. swait()
  961. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  963. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  964. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  965. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  966. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  967. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  968. end
  969. Humanoid.Jump=true
  970. blcf=nil
  971. scfr=nil
  972. hitbox1.Parent=model1
  973. hitbox1.Size=vt(1,5,1)
  974. hitbox1.Transparency=1
  975. hitbox1.CFrame=prt10.CFrame
  976. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,25,35,math.random(20,30),"Dragger",RootPart,.01,1) end)
  977. for i=1,3 do
  978. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  979. for i=0,1,0.1 do
  980. swait()
  981. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  982. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  983. local h = 5
  984. 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)
  985. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  986. 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)
  987. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  988. scfr = blcf
  989. elseif not scfr then
  990. scfr = blcf
  991. end
  992. hitbox1.CFrame=prt10.CFrame
  993. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  994. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  995. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  996. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  997. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  998. end
  999. end
  1000. con1:disconnect()
  1001. hitbox1.Parent=nil
  1002. end
  1003. attack=false
  1004. end
  1005.  
  1006. function Bash()
  1007. attack=true
  1008. for i=0,1,0.1 do
  1009. swait()
  1010. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1011. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1012. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1013. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1014. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1015. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1016. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1017. end
  1018. Torso.Velocity=RootPart.CFrame.lookVector*600
  1019. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  1020. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  1021. hit=nil
  1022. for i=1,20 do
  1023. if hit==nil then
  1024. swait()
  1025. end
  1026. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1027. end
  1028. Torso.Velocity=RootPart.CFrame.lookVector*0
  1029. Humanoid.WalkSpeed=0
  1030. for i=0,1,0.1 do
  1031. swait()
  1032. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1033. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1034. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1035. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1036. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  1037. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1038. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1039. end
  1040. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  1041. blcf=nil
  1042. scfr=nil
  1043. for i=0,1,0.2 do
  1044. swait()
  1045. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1046. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1047. local h = 5
  1048. 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)
  1049. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1050. 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)
  1051. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1052. scfr = blcf
  1053. elseif not scfr then
  1054. scfr = blcf
  1055. end
  1056. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  1057. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  1058. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  1059. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  1060. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  1061. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  1062. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  1063. end
  1064. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1065. if hit~=nil then
  1066. local ref=part(3,workspace,0,1,BrickColor.new("Dark indigo"),"Effect",vt())
  1067. ref.Anchored=true
  1068. ref.CFrame=cf(pos)
  1069. game:GetService("Debris"):AddItem(ref,3)
  1070. for i=1,10 do
  1071. Col=hit.BrickColor
  1072. local groundpart=part(3,F2,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1073. groundpart.Anchored=true
  1074. groundpart.Material=hit.Material
  1075. groundpart.CanCollide=true
  1076. 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))
  1077. game:GetService("Debris"):AddItem(groundpart,5)
  1078. end
  1079. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  1080. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1081. MagniDamage(ref,10,40,80,math.random(100,600),"Up")
  1082. end
  1083. swait(10)
  1084. Humanoid.WalkSpeed=16
  1085. attack=false
  1086. end
  1087.  
  1088. function UnleashTheDemon()
  1089. attack=true
  1090. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1091. chatServ:Chat(Head, "Were you prepared for this?", 2)
  1092. for i=0,1,0.1 do
  1093. swait()
  1094. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1095. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1096. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1097. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1098. RH.C0=clerp(RH.C0,RHC0,.4)
  1099. LH.C0=clerp(LH.C0,LHC0,.4)
  1100. end
  1101. wld1.Part1=Torso
  1102. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1103. for i=0,1,0.1 do
  1104. swait()
  1105. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1106. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  1107. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  1108. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  1109. end
  1110. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  1111. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  1112. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  1113. num=0
  1114. for i=0,1,0.01 do
  1115. swait()
  1116. if num>=10 then
  1117. num=0
  1118. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1119. end
  1120. for i=1,2 do
  1121. if math.random(1,5)==1 then
  1122. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1123. else
  1124. MagicBlock(BrickColor.new("Dark indigo"),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)
  1125. end
  1126. end
  1127. num=num+1
  1128. end
  1129. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1130. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  1131. for i=1,4 do
  1132. MagicBlock(BrickColor.new("Dark indigo"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  1133. end
  1134. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  1135. Mode="Demon"
  1136. chatServ:Chat(Head, "Awaken, Demon Blade!", 2)
  1137. model2.Parent=Character
  1138. for i=1,#DBlade do
  1139. DBlade[i].Parent=model2
  1140. DBladeWelds[i].Parent=DBlade[1]
  1141. end
  1142. for i=0,1,0.1 do
  1143. swait()
  1144. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  1145. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  1147. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  1148. end
  1149. swait(10)
  1150. attack=false
  1151. end
  1152.  
  1153. local MomentumCancel = true
  1154. chatServ = game:GetService("Chat")
  1155. local chattedAlready = false
  1156.  
  1157. function MomentumCanelling()
  1158. if RootPart.Velocity.Magnitude > (Humanoid.WalkSpeed+50) and not attack and MomentumCancel then
  1159. RootPart.Velocity = Vector3.new(0,0,0)
  1160. if not chattedAlready then
  1161. chattedAlready = true
  1162. chatServ:Chat(Head, "Momentum Cancel!", 2)
  1163. wait(1)
  1164. chattedAlready = false
  1165. end
  1166. end
  1167. end
  1168. RootPart.Changed:connect(MomentumCanelling)
  1169. Torso.Changed:connect(MomentumCanelling)
  1170. Head.Changed:connect(MomentumCanelling)
  1171. RightArm.Changed:connect(MomentumCanelling)
  1172. RightLeg.Changed:connect(MomentumCanelling)
  1173. LeftArm.Changed:connect(MomentumCanelling)
  1174. LeftLeg.Changed:connect(MomentumCanelling)
  1175.  
  1176. function Demonattackone()
  1177. attack=true
  1178. --[[
  1179. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1180. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  1182. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1183. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1184. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1185. ]]
  1186. for i=0,1,0.1 do
  1187. swait()
  1188. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  1189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  1191. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  1192. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  1193. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  1194. end
  1195. hitbox2.Parent=model2
  1196. hitbox2.Size=vt(1,6,1)
  1197. hitbox2.Transparency=1
  1198. hitbox2.CFrame=prtd7.CFrame
  1199. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1200. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  1201. blcf=nil
  1202. scfr=nil
  1203. for i=0,1,0.08 do
  1204. swait()
  1205. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1206. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1207. local h = 5
  1208. 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)
  1209. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1210. 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)
  1211. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1212. scfr = blcf
  1213. elseif not scfr then
  1214. scfr = blcf
  1215. end
  1216. hitbox2.CFrame=prtd7.CFrame
  1217. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  1218. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1219. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  1220. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1221. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  1222. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  1223. end
  1224. con1:disconnect()
  1225. hitbox2.Parent=nil
  1226. attack=false
  1227. end
  1228.  
  1229. function Demonattacktwo()
  1230. attack=true
  1231. for i=0,1,0.1 do
  1232. swait()
  1233. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  1234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1235. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  1236. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1237. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  1238. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  1239. end
  1240. hitbox2.Parent=model2
  1241. hitbox2.Size=vt(1,6,1)
  1242. hitbox2.Transparency=1
  1243. hitbox2.CFrame=prtd7.CFrame
  1244. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1245. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  1246. blcf=nil
  1247. scfr=nil
  1248. for i=0,1,0.1 do
  1249. swait()
  1250. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1251. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1252. local h = 5
  1253. 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)
  1254. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1255. 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)
  1256. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1257. scfr = blcf
  1258. elseif not scfr then
  1259. scfr = blcf
  1260. end
  1261. hitbox2.CFrame=prtd7.CFrame
  1262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  1263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1264. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  1265. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1266. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  1267. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1268. end
  1269. con1:disconnect()
  1270. hitbox2.Parent=nil
  1271. attack=false
  1272. end
  1273.  
  1274. function Demonattackthree()
  1275. attack=true
  1276. for i=0,1,0.1 do
  1277. swait()
  1278. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  1279. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1280. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  1281. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  1282. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  1283. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1284. end
  1285. --Humanoid.WalkSpeed=0
  1286. hitbox2.Parent=model2
  1287. hitbox2.Size=vt(1,6,1)
  1288. hitbox2.Transparency=1
  1289. hitbox2.CFrame=prtd7.CFrame
  1290. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1291. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  1292. blcf=nil
  1293. scfr=nil
  1294. for i=0,1,0.15 do
  1295. swait()
  1296. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1297. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1298. local h = 5
  1299. 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)
  1300. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1301. 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)
  1302. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1303. scfr = blcf
  1304. elseif not scfr then
  1305. scfr = blcf
  1306. end
  1307. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  1308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  1309. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  1310. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  1311. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  1312. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  1313. if i==0.6 then
  1314. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1315. if hit~=nil then
  1316. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1317. ref.Anchored=true
  1318. ref.CFrame=cf(pos)
  1319. game:GetService("Debris"):AddItem(ref,3)
  1320. for i=1,5 do
  1321. Col=hit.BrickColor
  1322. local groundpart=part(3,F2,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1323. groundpart.Anchored=true
  1324. groundpart.Material=hit.Material
  1325. groundpart.CanCollide=true
  1326. 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))
  1327. game:GetService("Debris"):AddItem(groundpart,3)
  1328. end
  1329. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  1330. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1331. MagniDamage(ref,10,10,20,math.random(10,20),"Normal")
  1332. end
  1333. end
  1334. end
  1335. con1:disconnect()
  1336. hitbox2.Parent=nil
  1337. swait(10)
  1338. --Humanoid.WalkSpeed=16
  1339. attack=false
  1340. end
  1341.  
  1342. function LetItBuild()
  1343. attack=true
  1344. for i=0,1,0.1 do
  1345. swait()
  1346. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  1347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  1348. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  1349. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1350. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1351. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1352. end
  1353. local num=0
  1354. local magik=0
  1355. local num2=0
  1356. local dammulti = 1
  1357. chatServ:Chat(Head, "Devil...", 2)
  1358. while holdx==true do
  1359. swait()
  1360. if magik<25 then
  1361. if num>=10 then
  1362. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1363. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1364. Lightning(pos1,pos2,5,3,"Dark indigo",.1,.5,.5)
  1365. MagicCircle(BrickColor.new("Dark indigo"),cf(pos1),5,5,5,1,1,1,.1)
  1366. MagicBlood(BrickColor.new("Dark indigo"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  1367. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  1368. magik=magik+3
  1369. num=0
  1370. end
  1371. end
  1372. Humanoid.MaxHealth = Humanoid.MaxHealth+20
  1373. dammulti = dammulti+(2+(Humanoid.MaxHealth/Humanoid.Health))
  1374. num=num+1
  1375. num2=num2+magik
  1376. Humanoid.Health = Humanoid.Health-.08
  1377. if num2>=50 then
  1378. MagicBlood(BrickColor.new("Dark indigo"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  1379. num2=0
  1380. end
  1381. --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)
  1382. end
  1383. chatServ:Chat(Head, "Cutter!", 2)
  1384. RootPart.Velocity=RootPart.CFrame.lookVector*(6*magik)
  1385. blcf=nil
  1386. scfr=nil
  1387. hitbox2.Parent=model2
  1388. hitbox2.Size=vt(1,6,1)
  1389. hitbox2.Transparency=1
  1390. hitbox2.CFrame=prtd7.CFrame
  1391. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,(magik*2221)*dammulti,(magik*4441)*dammulti,1,"DevilStyle",RootPart,.2/(dammulti*magik),1) end)
  1392. for i=1,3 do
  1393. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  1394. for i=0,1,0.1 do
  1395. swait()
  1396. hitbox2.CFrame=prtd7.CFrame
  1397. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1398. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1399. local h = 5
  1400. 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)
  1401. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1402. 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)
  1403. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1404. scfr = blcf
  1405. elseif not scfr then
  1406. scfr = blcf
  1407. end
  1408. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  1409. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  1410. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1411. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1412. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1413. end
  1414. end
  1415. con1:disconnect()
  1416. hitbox2.Parent=nil
  1417. attack=false
  1418. end
  1419.  
  1420. function YourMoveCreep()
  1421. attack=true
  1422. local pers=nil
  1423. for i=0,1,0.1 do
  1424. swait()
  1425. cost=Humanoid.Health*.01
  1426. Humanoid:TakeDamage(cost)
  1427. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  1429. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1430. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  1431. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1432. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1433. end
  1434. local blockprt=part(3,Character,0,1,BrickColor.new("Dark indigo"),"Block",vt(6,.1,6))
  1435. chatServ:Chat(Head, "Your move, creep.", 2)
  1436. blockprt.Anchored=false
  1437. blockprt.CanCollide = false
  1438. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1439. local Blockweld = Instance.new("Weld",blockprt)
  1440. Blockweld.Part0 = LeftArm
  1441. Blockweld.Part1 = blockprt
  1442. Blockweld.C0 = CFrame.new(0, -1, 0)
  1443. conbl=blockprt.Touched:connect(function(hit) end)
  1444. local extradam = 1
  1445. blockprt.Touched:connect(function(hit)
  1446. local Tor1 = hit.Parent.Parent:findFirstChild("Torso")
  1447. local Tor2 = hit.Parent:findFirstChild("Torso")
  1448. local function FindAHumanoid(parent)
  1449. local H = nil
  1450. for _, HUM in pairs(parent:GetChildren()) do
  1451. if HUM:IsA("Humanoid") then
  1452. H = HUM
  1453. end
  1454. end
  1455. return H
  1456. end
  1457. if Tor1 and guard then
  1458. if Tor1.Parent == Character then else
  1459. local HUM = FindAHumanoid(Tor1.Parent)
  1460. local DAM = math.random(10, 20)*extradam
  1461. if HUM then
  1462. if HUM.MaxHealth > 10000000 then
  1463. HUM.MaxHealth = 100
  1464. end
  1465. showDamage(Tor1.Parent,DAM,.5,BrickColor.new("Dark indigo"))
  1466. HUM.Health = HUM.Health-DAM
  1467. HUM:ChangeState(Enum.HumanoidStateType.FallingDown)
  1468. chatServ:Chat(Head, "Ha!", 2)
  1469. end
  1470. guard = false
  1471. local BBlast = Instance.new("Part", F2)
  1472. BBlast.BrickColor = BrickColor.new("Dark indigo")
  1473. BBlast.Material = "Neon"
  1474. BBlast.Transparency = .5
  1475. local OverallSize = Tor1.Size.X*4
  1476. BBlast.Size = Vector3.new(OverallSize,OverallSize,OverallSize)
  1477. BBlast.CFrame = Tor1.CFrame
  1478. BBlast.Anchored = true
  1479. BBlast.CanCollide = false
  1480. BBlast.Locked = true
  1481. local BMesh = Instance.new("SpecialMesh", BBlast)
  1482. BMesh.MeshType = "Sphere"
  1483. local BSound = Instance.new("Sound", BBlast)
  1484. BSound.Volume = 10
  1485. BSound.SoundId = "rbxassetid://153832523"
  1486. BSound.Pitch = .8
  1487. BSound:Play()
  1488. MagniDamage(BBlast,OverallSize*2,(DAM/2)-.01,DAM/2,1,"Breaker")
  1489. for I = .5, 1, .05 do
  1490. wait()
  1491. BMesh.Scale = Vector3.new(I*2, I*2, I*2)
  1492. BBlast.Transparency = I
  1493. end
  1494. game:GetService("Debris"):AddItem(BBlast, 0)
  1495. game:GetService("Debris"):AddItem(BSound, 0)
  1496. end
  1497. end
  1498. if Tor2 and guard then
  1499. if Tor2.Parent == Character then else
  1500. local HUM = FindAHumanoid(Tor2.Parent)
  1501. local DAM = math.random(10, 20)*extradam
  1502. if HUM then
  1503. if HUM.MaxHealth > 10000000 then
  1504. HUM.MaxHealth = 100
  1505. wait()
  1506. end
  1507. showDamage(Tor2.Parent,DAM,.5,BrickColor.new("Dark indigo"))
  1508. HUM.Health = HUM.Health-DAM
  1509. HUM:ChangeState(Enum.HumanoidStateType.Ragdoll)
  1510. chatServ:Chat(Head, "Ha!", 2)
  1511. end
  1512. guard = false
  1513. local BBlast = Instance.new("Part", F2)
  1514. BBlast.BrickColor = BrickColor.new("Dark indigo")
  1515. BBlast.Material = "Neon"
  1516. BBlast.Transparency = .5
  1517. local OverallSize = Tor2.Size.X*4
  1518. BBlast.Size = Vector3.new(OverallSize,OverallSize,OverallSize)
  1519. BBlast.CFrame = Tor2.CFrame
  1520. BBlast.Anchored = true
  1521. BBlast.CanCollide = false
  1522. BBlast.Locked = true
  1523. local BMesh = Instance.new("SpecialMesh", BBlast)
  1524. BMesh.MeshType = "Sphere"
  1525. local BSound = Instance.new("Sound", BBlast)
  1526. BSound.Volume = 10
  1527. BSound.SoundId = "rbxassetid://153832523"
  1528. BSound.Pitch = .8
  1529. BSound:Play()
  1530. MagniDamage(BBlast,OverallSize*2,(DAM/2)-.01,DAM/2,1,"Breaker")
  1531. for I = .5, 1, .05 do
  1532. wait()
  1533. BMesh.Scale = Vector3.new(I*2, I*2, I*2)
  1534. BBlast.Transparency = I
  1535. end
  1536. game:GetService("Debris"):AddItem(BBlast, 0)
  1537. game:GetService("Debris"):AddItem(BSound, 0)
  1538. end
  1539. end
  1540. --[[if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  1541. pers=hit
  1542. print("HIT")
  1543. guard=false
  1544. end--]]
  1545. end)
  1546. num=0
  1547. while guard==true do
  1548. swait()
  1549. extradam = extradam+.5
  1550. if num>10 then
  1551. num=0
  1552. MagicBlock(BrickColor.new("Dark indigo"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  1553. MagicCircle(BrickColor.new("Dark indigo"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  1554. end
  1555. --blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1556. num=num+1
  1557. end
  1558. conbl:disconnect()
  1559. game:GetService("Debris"):AddItem(blockprt, 0)
  1560. print(pers)
  1561. if pers~=nil then
  1562. for i=0,1,0.1 do
  1563. swait()
  1564. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  1565. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  1566. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  1567. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1568. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  1569. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1570. end
  1571. swait(200)
  1572. end
  1573. attack=false
  1574. end
  1575.  
  1576. function CreateWeaponPart(className, parent, Brickcolor, Material, Transparency, Reflectance, Name, Size, Position, Rotation, MeshClass, MeshScale, MeshId, MeshType)
  1577. local Part = Instance.new(className, parent)
  1578. Part.BrickColor = BrickColor.new(Brickcolor)
  1579. Part.Transparency = Transparency
  1580. Part.Reflectance = Reflectance
  1581. Part.Material = Material
  1582. Part.Name = Name
  1583. Part.Anchored = true
  1584. Part.CanCollide = false
  1585. Part.Locked = true
  1586. Part.Size = Size
  1587. Part.Position = Position
  1588. Part.Rotation = Rotation
  1589. local Mesh = Instance.new(MeshClass, Part)
  1590. Mesh.Scale = MeshScale
  1591. if MeshClass == "SpecialMesh" then
  1592. Mesh.MeshId = MeshId
  1593. Mesh.MeshType = MeshType
  1594. end
  1595. return Part
  1596. end
  1597.  
  1598. local Demon_Cannon = Instance.new("Model")
  1599. Demon_Cannon.Name = "Demon Cannon"
  1600.  
  1601. ----------------(ClassName, , BrickColor, Material , Trans, Refl, Name, Size, Position, Rotation, Mesh Class, Mesh Scale , MId, MType)
  1602. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1603. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1604. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1605. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1606. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 2.982, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1607. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.418, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1608. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.309, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1609. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.091, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1610. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1611. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1612. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(1.2, 0.436, 0.545), Vector3.new(3.1, 3.2, -267.264), Vector3.new(-90, 90, 0), "SpecialMesh", Vector3.new(1,1,1), "", "Torso")
  1613. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(0.545, 1.2, 0.2), Vector3.new(3.1, 3.2, -266.991), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1,1,.545), _, _)
  1614. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBody", Vector3.new(0.545, 0.545, 2.509), Vector3.new(3.1, 3.2, -265.682), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1,1,1), _, _)
  1615. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 3.473, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1,1,1), _, _)
  1616. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 2.927, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1,1,1), _, _)
  1617. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  1618. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  1619. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1620. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1621. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1622. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1623.  
  1624. local CannonMain = CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Main", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, -0, -180), "BlockMesh", Vector3.new(1,1,1), _, _)
  1625. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole1", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 3.473, -264.436), Vector3.new(-180, -0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1626. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole2", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 2.927, -264.436), Vector3.new(-180, -0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1627.  
  1628. local CHole1 = Demon_Cannon:WaitForChild("Blaster Hole1")
  1629. local CHole2 = Demon_Cannon:WaitForChild("Blaster Hole2")
  1630.  
  1631. for _, Part in pairs(Demon_Cannon:GetChildren()) do
  1632. if Part:IsA("Part") then
  1633. if Part.Name ~= "Main" then
  1634. local x = CannonMain
  1635. local y = Part
  1636. local W = Instance.new("Weld")
  1637. W.Part0 = x
  1638. W.Part1 = y
  1639. local CJ = CFrame.new(x.Position)
  1640. local C0 = x.CFrame:inverse()*CJ
  1641. local C1 = y.CFrame:inverse()*CJ
  1642. W.C0 = C0
  1643. W.C1 = C1
  1644. W.Parent = x
  1645. x.Anchored = false
  1646. y.Anchored = false
  1647. end
  1648. Part.Anchored = false
  1649. Part.TopSurface = "SmoothNoOutlines"
  1650. Part.BottomSurface = "SmoothNoOutlines"
  1651. Part.LeftSurface = "SmoothNoOutlines"
  1652. Part.RightSurface = "SmoothNoOutlines"
  1653. Part.FrontSurface = "SmoothNoOutlines"
  1654. Part.BackSurface = "SmoothNoOutlines"
  1655. end
  1656. end
  1657. CannonMain.Anchored = true
  1658.  
  1659. local CM2 = CreateWeaponPart("Part", Character, "Really black", "SmoothPlastic", 1, 0, "Main2", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, -0, -180), "BlockMesh", Vector3.new(1,1,1), _, _)
  1660. CM2.Anchored = false
  1661.  
  1662. local CMW1 = Instance.new("Weld", CM2)
  1663. CMW1.Part0 = RootPart
  1664. CMW1.Part1 = CM2
  1665. CMW1.C0 = CFrame.new(0, 3, 0)
  1666.  
  1667. local CannonWeld = Instance.new("Weld", CM2)
  1668. local CPos = Instance.new("BodyPosition")
  1669. local CGyro = Instance.new("BodyGyro")
  1670.  
  1671. local DCOn = false
  1672. local TCtrl = false
  1673. local CanUseCannon = false
  1674. local Firing = false
  1675. local C = 1
  1676.  
  1677. function DemonCannon()
  1678. attack = true
  1679. chatServ:Chat(Head, "Behold..", 2)
  1680. for i=0, 10 do
  1681. swait()
  1682. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1683. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  1684. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1685. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  1686. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1687. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1688. end
  1689. wait(1)
  1690. Humanoid.WalkSpeed = 8
  1691. for i=0, 10 do
  1692. swait()
  1693. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-.4,1.3),.3)
  1695. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1696. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-2.6),.3)
  1697. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1698. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1699. end
  1700. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  1701. for i=0,1,0.01 do
  1702. swait()
  1703. for i=1,4 do
  1704. if math.random(1,4)==1 then
  1705. MagicBlock(BrickColor.new("Really black"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1706. else
  1707. MagicBlock(BrickColor.new("Dark indigo"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1708. end
  1709. end
  1710. num=num+1
  1711. end
  1712. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1713. local Boo = Instance.new("Part", F2)
  1714. Boo.BrickColor = BrickColor.new("Dark indigo")
  1715. Boo.Transparency = .5
  1716. Boo.Material = "Neon"
  1717. Boo.Anchored = true
  1718. Boo.CanCollide = false
  1719. Boo.CFrame = CM2.CFrame
  1720. Boo.Size = Vector3.new(3,3,3)
  1721. local BooM = Instance.new("SpecialMesh", Boo)
  1722. BooM.MeshType = "Sphere"
  1723. local nuM = 0
  1724. chatServ:Chat(Head, "The Demon Cannon!", 2)
  1725. Humanoid.WalkSpeed = 16
  1726. for i = 1, 4, .1 do
  1727. wait()
  1728. BooM.Scale = Vector3.new(i,i,i)
  1729. Boo.Transparency = .5+(i/8)
  1730. if nuM ~= 1 then
  1731. Demon_Cannon.Parent = Character
  1732. CannonWeld = Instance.new("Weld", CM2)
  1733. CannonWeld.Part0 = CM2
  1734. CannonWeld.Part1 = CannonMain
  1735. CannonMain.Anchored = false
  1736. nuM = 1
  1737. end
  1738. end
  1739. for i=0,1,0.1 do
  1740. wait()
  1741. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  1742. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  1743. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  1744. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1745. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  1746. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1747. end
  1748. game:GetService("Debris"):AddItem(Boo, 0)
  1749. CanUseCannon = true
  1750. CannonWeld.Part0 = nil
  1751. CannonWeld.Part1 = nil
  1752. CPos.Parent = CannonMain
  1753. CPos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1754. CGyro.Parent = CannonMain
  1755. CGyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1756. attack = false
  1757. end
  1758.  
  1759. function HideDemonCannon()
  1760. attack = true
  1761. CanUseCannon = false
  1762. CPos.Parent = nil
  1763. CPos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1764. CGyro.Parent = nil
  1765. CGyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1766. CannonWeld = Instance.new("Weld", CM2)
  1767. CannonWeld.Part0 = CM2
  1768. CannonWeld.Part1 = CannonMain
  1769. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  1770. for i=0,1,0.01 do
  1771. swait()
  1772. for i=1,4 do
  1773. if math.random(1,4)==1 then
  1774. MagicBlock(BrickColor.new("Really black"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1775. else
  1776. MagicBlock(BrickColor.new("Dark indigo"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1777. end
  1778. end
  1779. num=num+1
  1780. end
  1781. CannonMain.Anchored = true
  1782. Demon_Cannon.Parent = nil
  1783. CannonWeld.Part0 = nil
  1784. CannonWeld.Part1 = nil
  1785. game:GetService("Debris"):AddItem(CannonWeld, 0)
  1786. attack = false
  1787. end
  1788.  
  1789. function TimeControl()
  1790. print("hahaha")
  1791. attack = true
  1792. for i=0,1,0.1 do
  1793. wait()
  1794. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(math.rad(20),0,math.rad(-30)),.3)
  1795. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(30)),.3)
  1796. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(-50),math.rad(0),math.rad(60))*euler(0,math.rad(-120),0),.3)
  1797. LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*euler(math.rad(110),math.rad(-10),math.rad(-30)),.3)
  1798. RH.C0=clerp(RH.C0,cf(1,-.85,-.85)*euler(0,math.rad(100),math.rad(-30))*euler(0,0,0),.3)
  1799. LH.C0=clerp(LH.C0,cf(-1,-.45,-.35)*euler(0,math.rad(-60),math.rad(-20))*euler(0,0,0),.3)
  1800. end
  1801. local EmeraldWeld = Instance.new("Motor", LeftArm)
  1802. local Chaos_Emerald = Instance.new("Part", F2)
  1803. Chaos_Emerald.BrickColor = BrickColor.new("Dark indigo")
  1804. Chaos_Emerald.Material = "SmoothPlastic"
  1805. Chaos_Emerald.Reflectance = .3
  1806. Chaos_Emerald.Transparency = 1
  1807. Chaos_Emerald.Name = "Chaos Emerald"
  1808. Chaos_Emerald.Anchored = false
  1809. Chaos_Emerald.CanCollide = false
  1810. Chaos_Emerald.Locked = true
  1811. Chaos_Emerald.Size = Vector3.new(1,.4, 1)
  1812. local CE_Mesh = Instance.new("SpecialMesh", Chaos_Emerald)
  1813. CE_Mesh.MeshId = "http://www.roblox.com/asset?id=160003363"
  1814. CE_Mesh.Scale = Vector3.new(2,1,2)
  1815. local CE_Light = Instance.new("PointLight", Chaos_Emerald)
  1816. CE_Light.Brightness = 100
  1817. CE_Light.Color = Color3.new(85/255, 0, 127/255)
  1818. CE_Light.Range = 8
  1819. CE_Light.Shadows = true
  1820. CE_Light.Enabled = false
  1821. local transPoints = {
  1822. NumberSequenceKeypoint.new(0,0,0),
  1823. NumberSequenceKeypoint.new(1,1,0),
  1824. }
  1825. local ETransparency = NumberSequence.new(transPoints)
  1826. local CE_PE = Instance.new("ParticleEmitter", Chaos_Emerald)
  1827. CE_PE.Color = ColorSequence.new(Chaos_Emerald.BrickColor.Color)
  1828. CE_PE.LightEmission = 1
  1829. CE_PE.Size = NumberSequence.new(.4)
  1830. CE_PE.Transparency = ETransparency
  1831. CE_PE.EmissionDirection = "Top"
  1832. CE_PE.LockedToPart = true
  1833. CE_PE.VelocityInheritance = 1
  1834. CE_PE.Rate = 50
  1835. CE_PE.Lifetime = NumberRange.new(.3, .5)
  1836. CE_PE.RotSpeed = NumberRange.new(100,300)
  1837. CE_PE.Speed = NumberRange.new(2)
  1838. CE_PE.VelocitySpread = 100
  1839. CE_PE.Enabled = false
  1840. EmeraldWeld.Part0 = LeftArm
  1841. EmeraldWeld.Part1 = Chaos_Emerald
  1842. EmeraldWeld.DesiredAngle = 9999999999999999999999999999999999999999999999999999999999999
  1843. EmeraldWeld.MaxVelocity = math.rad(5)
  1844. EmeraldWeld.C0 = CFrame.new(0, -6, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-180), 0, 0)
  1845. EmeraldWeld.C1 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  1846. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  1847. for i=0,1,0.01 do
  1848. swait()
  1849. for i=1,6 do
  1850. if math.random(1,4)==1 then
  1851. MagicBlock(BrickColor.new("Really black"),Chaos_Emerald.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/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)
  1852. else
  1853. MagicBlock(BrickColor.new("Dark indigo"),Chaos_Emerald.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/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)
  1854. end
  1855. end
  1856. num=num+1
  1857. end
  1858. Chaos_Emerald.Transparency = .3
  1859. CE_PE.Enabled = true
  1860. CE_Light.Enabled = true
  1861. Humanoid.WalkSpeed = 0
  1862. wait(1)
  1863. for i = 0, 2.25, .1 do
  1864. wait()
  1865. EmeraldWeld.C0=clerp(EmeraldWeld.C0,cf(0,-.5,0)*euler(math.rad(-180),0,0),.1)
  1866. end
  1867. EmeraldWeld.MaxVelocity = 0
  1868. so("http://roblox.com/asset/?id=227194112",LeftArm,1,1)
  1869. for i=0,1,0.1 do
  1870. wait()
  1871. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,math.rad(-30)),.3)
  1872. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(30)),.3)
  1873. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(-50),math.rad(0),math.rad(60))*euler(0,math.rad(-160),0),.3)
  1874. LW.C0=clerp(LW.C0,cf(-.5,.5,-1)*euler(math.rad(90),0,math.rad(80)),.3)
  1875. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,math.rad(90), 0),.3)
  1876. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,math.rad(-90),0),.3)
  1877. end
  1878. for i=0,1,0.1 do
  1879. wait()
  1880. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1881. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(math.rad(-20),0,0),.3)
  1882. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(0),math.rad(0),math.rad(60))*euler(0,math.rad(-90),0),.3)
  1883. LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*euler(math.rad(150),0,0),.3)
  1884. end
  1885. chatServ:Chat(Head, "Behold, my power!", 2)
  1886. EmeraldWeld.MaxVelocity = math.rad(5)
  1887. for i = 0, 1, .1 do
  1888. wait()
  1889. EmeraldWeld.C0=clerp(EmeraldWeld.C0,cf(0,-3,-1.1)*euler(math.rad(-240),0,0),.3)
  1890. end
  1891. local Chaos_Emerald2 = Chaos_Emerald:Clone()
  1892. Chaos_Emerald2.Parent = F2
  1893. Chaos_Emerald2.Anchored = false
  1894. for _, k in pairs(Chaos_Emerald2:GetChildren()) do
  1895. if k:IsA("PointLight") or k:IsA("ParticleEmitter") then
  1896. game:GetService("Debris"):AddItem(k, 0)
  1897. end
  1898. end
  1899. Chaos_Emerald2.Transparency = .5
  1900. local EmeraldWeld2 = Instance.new("Weld", Chaos_Emerald)
  1901. EmeraldWeld2.Part0 = Chaos_Emerald
  1902. EmeraldWeld2.Part1 = Chaos_Emerald2
  1903. EmeraldWeld2.C0 = CFrame.new(0,0,0)
  1904. local CE2_Mesh = Chaos_Emerald2:WaitForChild("Mesh")
  1905. CE2_Mesh.Scale = Vector3.new(0,0,0)
  1906. local function EFlash()
  1907. for t = 0, 2, .1 do
  1908. wait()
  1909. CE2_Mesh.Scale = Vector3.new(t*4,t*1.2,t*4)
  1910. Chaos_Emerald2.Transparency = .5+t/4
  1911. end
  1912. end
  1913. for i = 0, 5 do
  1914. EFlash()
  1915. wait(.1)
  1916. end
  1917. chatServ:Chat(Head, "Time control!", 2)
  1918. local TPlayers = {}
  1919. local THumanoids = {}
  1920. local RecentBrightness = game.Lighting.Brightness
  1921. local RecentOutDoorAmbient = game.Lighting.OutdoorAmbient
  1922. local RecentTimeOfDay = game.Lighting.TimeOfDay
  1923. local RecentFogEnd = game.Lighting.FogEnd
  1924. local RecentFogColor = game.Lighting.FogColor
  1925. local TBlast, TBMesh = Instance.new("Part", F2), Instance.new("SpecialMesh")
  1926. TBlast.BrickColor = BrickColor.new("Dark indigo")
  1927. TBlast.Transparency = 1
  1928. TBlast.Anchored = true
  1929. TBlast.CanCollide = false
  1930. TBlast.CFrame = RootPart.CFrame
  1931. TBlast.Size = Vector3.new(2,2,2)
  1932. TBMesh.Parent = TBlast
  1933. TBMesh.MeshType = "Sphere"
  1934. game.Lighting.Brightness = 0
  1935. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  1936. game.Lighting.TimeOfDay = 4
  1937. game.Lighting.FogEnd = 1000
  1938. game.Lighting.FogColor = TBlast.BrickColor.Color
  1939. local function GetPlayers()
  1940. for _, P in pairs(game.Players:GetPlayers()) do
  1941. if P then
  1942. if P ~= Player then
  1943. table.insert(TPlayers, P)
  1944. local cc = P:WaitForChild("Character")
  1945. local huh = FindHum(cc)
  1946. local Jd = huh:FindFirstChild("JumpedValue")
  1947. if not Jd then
  1948. Jd = Instance.new("BoolValue")
  1949. Jd.Parent = huh
  1950. Jd.Name = "JumpedValue"
  1951. Jd.Value = false
  1952. end
  1953. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  1954. if not S then
  1955. S = Instance.new("BodyVelocity",P:WaitForChild("Character"):WaitForChild("Torso"))
  1956. S.MaxForce = Vector3.new(0,0,0)
  1957. S.Velocity = Vector3.new(0,0,0)
  1958. S.Name = "svFgyuzxC"
  1959. end
  1960. end
  1961. end
  1962. end
  1963. end
  1964. local function GetOtherHumanoids()
  1965. for _, H in pairs(workspace:GetChildren()) do
  1966. if H:IsA("Model") then
  1967. local HUM = FindHum(H)
  1968. if HUM and HUM ~= Humanoid then
  1969. table.insert(THumanoids, HUM)
  1970. local Jd = HUM:FindFirstChild("JumpedValue")
  1971. if not Jd then
  1972. Jd = Instance.new("BoolValue")
  1973. Jd.Parent = HUM
  1974. Jd.Name = "JumpedValue"
  1975. Jd.Value = false
  1976. end
  1977. local S = HUM.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  1978. if not S then
  1979. S = Instance.new("BodyVelocity",HUM.Parent:WaitForChild("Torso"))
  1980. S.MaxForce = Vector3.new(0,0,0)
  1981. S.Velocity = Vector3.new(0,0,0)
  1982. S.Name = "svFgyuzxC"
  1983. end
  1984. end
  1985. end
  1986. end
  1987. end
  1988. GetPlayers()
  1989. GetOtherHumanoids()
  1990. local function ClearTHumanoids()
  1991. for i, H in pairs(THumanoids) do
  1992. if H then
  1993. table.remove(THumanoids, i)
  1994. local Jd = H:FindFirstChild("JumpedValue")
  1995. if Jd then
  1996. game:GetService("Debris"):AddItem(Jd, 0)
  1997. end
  1998. H.WalkSpeed = 16
  1999. local S = H.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2000. if S then
  2001. game:GetService("Debris"):AddItem(S, 0)
  2002. end
  2003. end
  2004. end
  2005. end
  2006. local function ClearTPlayers()
  2007. for i, P in pairs(TPlayers) do
  2008. if P then
  2009. table.remove(TPlayers, i)
  2010. local cc = P:WaitForChild("Character")
  2011. local huh = FindHum(cc)
  2012. local Jd = huh:FindFirstChild("JumpedValue")
  2013. if Jd then
  2014. game:GetService("Debris"):AddItem(Jd, 0)
  2015. end
  2016. huh.WalkSpeed = 16
  2017. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2018. if S then
  2019. game:GetService("Debris"):AddItem(S, 0)
  2020. end
  2021. end
  2022. end
  2023. end
  2024. Humanoid.WalkSpeed = 16
  2025. for s = 0, 50, 5 do
  2026. wait()
  2027. TBMesh.Scale = Vector3.new(s*s,s*s,s*s)
  2028. TBlast.Transparency = s/50
  2029. end
  2030. attack = false
  2031. game:GetService("Debris"):AddItem(Chaos_Emerald, 0)
  2032. game:GetService("Debris"):AddItem(Chaos_Emerald2, 0)
  2033. game:GetService("Debris"):AddItem(TBlast, 0)
  2034. local PlayerJoined = game:GetService("Players").PlayerAdded:connect(function()
  2035. for _,child in pairs(game:GetService("Players"):GetPlayers()) do
  2036. table.insert(TPlayers, child)
  2037. local cc = child:WaitForChild("Character")
  2038. local huh = FindHum(cc)
  2039. local Jd = huh:FindFirstChild("JumpedValue")
  2040. if not Jd then
  2041. Jd = Instance.new("BoolValue")
  2042. Jd.Parent = huh
  2043. Jd.Name = "JumpedValue"
  2044. Jd.Value = false
  2045. end
  2046. local S = child:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2047. if not S then
  2048. S = Instance.new("BodyVelocity",child:WaitForChild("Character"):WaitForChild("Torso"))
  2049. S.MaxForce = Vector3.new(0,0,0)
  2050. S.Velocity = Vector3.new(0,0,0)
  2051. S.Name = "svFgyuzxC"
  2052. end
  2053. end
  2054. end)
  2055. local PlayerLeft = game:GetService("Players").PlayerRemoving:connect(function(player)
  2056. for i,child in pairs(TPlayers) do
  2057. if child == player then
  2058. table.remove(TPlayers,i)
  2059. end
  2060. end
  2061. end)
  2062. local function StuntJumpUntil(humanoid)
  2063. local duration = humanoid.JumpPower
  2064. local root = humanoid.Parent:FindFirstChild("HumanoidRootPart")
  2065. local RooT = nil
  2066. local Jd = humanoid:FindFirstChild("JumpedValue")
  2067. if not Jd then error("Jump Value was not found.") end
  2068. Jd.Value = true
  2069. humanoid.Jump = false
  2070. if root then
  2071. RooT = root
  2072. elseif not root then
  2073. root = humanoid.Parent:FindFirstChild("Torso")
  2074. if root then
  2075. RooT = root
  2076. end
  2077. end
  2078. local NUM = 0
  2079. --[[repeat
  2080. wait()
  2081. print(NUM, duration, humanoid.Parent)
  2082. NUM = NUM+.05
  2083. if RooT then
  2084. Jd.Value = true
  2085. RooT.Velocity = Vector3.new(0, .05, 0)
  2086. end
  2087. until NUM >= duration or humanoid.Health < .1--]]
  2088. local S = humanoid.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2089. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", humanoid.Parent:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  2090. S.MaxForce = Vector3.new(0, math.huge, 0)
  2091. S.Velocity = Vector3.new(0, -.1, 0)
  2092. wait(duration)
  2093. S.MaxForce = Vector3.new(0, 0, 0)
  2094. Jd.Value = false
  2095. end
  2096. local TimeC = runServ:connect(function()
  2097. game.Lighting.Brightness = 0
  2098. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  2099. game.Lighting.TimeOfDay = 4
  2100. game.Lighting.FogEnd = 1000
  2101. game.Lighting.FogColor = TBlast.BrickColor.Color
  2102. for i, P in pairs(TPlayers) do
  2103. if P then
  2104. local cHar = P:WaitForChild("Character")
  2105. local hUm = FindHum(cHar)
  2106. local Jd = hUm:FindFirstChild("JumpedValue")
  2107. if not Jd then error("Jump Value was not found.") end
  2108. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2109. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  2110. if hUm.WalkSpeed > .8 then
  2111. hUm.WalkSpeed = .8
  2112. elseif hUm.WalkSpeed == 0 then
  2113. end
  2114. if hUm:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  2115. StuntJumpUntil(hUm)
  2116. end
  2117. if hUm:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  2118. S.MaxForce = Vector3.new(0, math.huge, 0)
  2119. S.Velocity = Vector3.new(0, -.1, 0)
  2120. elseif hUm:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  2121. S.MaxForce = Vector3.new(0,0,0)
  2122. end
  2123. end
  2124. end
  2125. for i, H in pairs(THumanoids) do
  2126. if H then
  2127. local cHar = H.Parent
  2128. local Jd = H:FindFirstChild("JumpedValue")
  2129. if not Jd then error("Jump Value was not found.") end
  2130. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2131. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  2132. if H.WalkSpeed > .8 then
  2133. H.WalkSpeed = .8
  2134. elseif H.WalkSpeed == 0 then
  2135. end
  2136. if H:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  2137. StuntJumpUntil(H)
  2138. end
  2139. if H.Health < .1 then
  2140. table.remove(THumanoids, i)
  2141. wait(5)
  2142. ClearTHumanoids()
  2143. GetOtherHumanoids()
  2144. end
  2145. if H:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  2146. S.MaxForce = Vector3.new(0, math.huge, 0)
  2147. S.Velocity = Vector3.new(0, -.1, 0)
  2148. elseif H:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  2149. S.MaxForce = Vector3.new(0,0,0)
  2150. end
  2151. end
  2152. end
  2153. end)
  2154. repeat wait() until not TCtrl or Humanoid.Health < .01
  2155. TimeC:disconnect()
  2156. chatServ:Chat(Head, "Time release.", 2)
  2157. game.Lighting.Brightness = RecentBrightness
  2158. game.Lighting.OutdoorAmbient = RecentOutDoorAmbient
  2159. game.Lighting.TimeOfDay = RecentTimeOfDay
  2160. game.Lighting.FogEnd = RecentFogEnd
  2161. game.Lighting.FogColor = RecentFogColor
  2162. wait(.1)
  2163. ClearTHumanoids()
  2164. ClearTPlayers()
  2165. end
  2166.  
  2167. function FindHum(parent)
  2168. local hm = nil
  2169. for _, HM in pairs(parent:GetChildren()) do
  2170. if HM:IsA("Humanoid") then
  2171. hm = HM
  2172. end
  2173. end
  2174. return hm
  2175. end
  2176.  
  2177. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  2178. for _,c in pairs(workspace:children()) do
  2179. local hum=FindHum(c)
  2180. if hum~=nil then
  2181. local head=c:findFirstChild("Torso")
  2182. if head~=nil then
  2183. local targ=head.Position-Part.Position
  2184. local mag=targ.magnitude
  2185. if mag<=magni and c.Name~=Player.Name then
  2186. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  2187. end
  2188. end
  2189. end
  2190. end
  2191. end
  2192.  
  2193. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2194. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2195. end
  2196.  
  2197. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2198. LastPoint=Point
  2199. function effect(Color,Ref,LP,P1,returnn)
  2200. local effectsmsh=Instance.new("CylinderMesh")
  2201. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2202. effectsmsh.Name="Mesh"
  2203. local effectsg=Instance.new("Part")
  2204. effectsg.formFactor=3
  2205. effectsg.CanCollide=false
  2206. effectsg.Name="Eff"
  2207. effectsg.Locked=true
  2208. effectsg.Anchored=true
  2209. effectsg.Size=Vector3.new(0.5,1,0.5)
  2210. effectsg.Parent=F2
  2211. effectsmsh.Parent=effectsg
  2212. effectsg.BrickColor=BrickColor.new(Color)
  2213. effectsg.Reflectance=Ref
  2214. local point1=P1
  2215. local mg=(LP.p - point1.p).magnitude
  2216. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2217. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2218. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2219. game:GetService("Debris"):AddItem(effectsg,2)
  2220. if returnn then return effectsg end
  2221. coroutine.resume(coroutine.create(function(Part,Mesh)
  2222. if not returnn then
  2223. for i=0,1,0.05 do
  2224. wait()
  2225. Part.Transparency=1*i
  2226. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  2227. end
  2228. Part.Parent=nil
  2229. end
  2230. end),effectsg,effectsmsh)
  2231. end
  2232.  
  2233. local function CFrameFromTopBack(at, top, back)
  2234. local right = top:Cross(back)
  2235. return CFrame.new(at.x, at.y, at.z,
  2236. right.x, top.x, back.x,
  2237. right.y, top.y, back.y,
  2238. right.z, top.z, back.z)
  2239. end
  2240.  
  2241. F1 = Instance.new("Folder", Character)
  2242. F1.Name = "Effects Folder"
  2243. F2 = Instance.new("Folder", F1)
  2244. F2.Name = "Effects"
  2245.  
  2246. function Triangle(a, b, c)
  2247. --[[local edg1 = (c-a):Dot((b-a).unit)
  2248. local edg2 = (a-b):Dot((c-b).unit)
  2249. local edg3 = (b-c):Dot((a-c).unit)
  2250. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2251. a, b, c = a, b, c
  2252. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2253. a, b, c = b, c, a
  2254. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2255. a, b, c = c, a, b
  2256. else
  2257. assert(false, "unreachable")
  2258. end
  2259.  
  2260. local len1 = (c-a):Dot((b-a).unit)
  2261. local len2 = (b-a).magnitude - len1
  2262. local width = (a + (b-a).unit*len1 - c).magnitude
  2263.  
  2264. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2265.  
  2266. local list = {}
  2267.  
  2268. if len1 > 0.01 then
  2269. local w1 = Instance.new('WedgePart', workspace)
  2270. w1.FormFactor = 'Custom'
  2271. w1.Material = "Neon"
  2272. if Mode=="Binary" then
  2273. w1.BrickColor = BrickColor.new("White")
  2274. else
  2275. w1.BrickColor = BrickColor.new("Dark indigo")
  2276. end
  2277. w1.Transparency = 0
  2278. w1.Reflectance = 0
  2279. w1.CanCollide = false
  2280. NoOutline(w1)
  2281. local sz = Vector3.new(0.2, width, len1)
  2282. w1.Size = sz
  2283. local sp = Instance.new("SpecialMesh",w1)
  2284. sp.MeshType = "Wedge"
  2285. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2286. w1:BreakJoints()
  2287. w1.Anchored = true
  2288. w1.Transparency = 0.7
  2289. game:GetService("Debris"):AddItem(w1,25)
  2290. table.insert(Effects,{w1,"Disappear",.01})
  2291. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2292. table.insert(list,w1)
  2293. end
  2294.  
  2295. if len2 > 0.01 then
  2296. local w2 = Instance.new('WedgePart', workspace)
  2297. w2.Material = "Neon"
  2298. w2.FormFactor = 'Custom'
  2299. if Mode=="Binary" then
  2300. w2.BrickColor = BrickColor.new("White")
  2301. else
  2302. w2.BrickColor = BrickColor.new("Dark indigo")
  2303. end
  2304. w2.Transparency = 0
  2305. w2.Reflectance = 0
  2306. w2.CanCollide = false
  2307. NoOutline(w2)
  2308. local sz = Vector3.new(0.2, width, len2)
  2309. w2.Size = sz
  2310. local sp = Instance.new("SpecialMesh",w2)
  2311. sp.MeshType = "Wedge"
  2312. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2313. w2:BreakJoints()
  2314. w2.Anchored = true
  2315. w2.Transparency = 0.7
  2316. game:GetService("Debris"):AddItem(w2,25)
  2317. table.insert(Effects,{w2,"Disappear",.01})
  2318. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2319. table.insert(list,w2)
  2320. end
  2321. return unpack(list)--]]
  2322. end
  2323.  
  2324. --[[
  2325. Things for effects
  2326. put the variables in one table
  2327. like effect={brick,interval,i}
  2328. ]]
  2329. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2330. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2331. prt.Anchored=true
  2332. prt.CFrame=cframe
  2333. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2334. game:GetService("Debris"):AddItem(prt,5)
  2335. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  2336. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  2337. for i=0,1,delay do
  2338. wait()
  2339. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2340. Part.Transparency=i
  2341. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2342. end
  2343. Part.Parent=nil
  2344. end),prt,msh)]]
  2345. end
  2346.  
  2347. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2348. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2349. prt.Anchored=true
  2350. prt.CFrame=cframe
  2351. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2352. game:GetService("Debris"):AddItem(prt,5)
  2353. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2354. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2355. local wld=nil
  2356. for i=0,1,delay do
  2357. wait()
  2358. Part.CFrame=Part.CFrame
  2359. Part.Transparency=i
  2360. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2361. end
  2362. Part.Parent=nil
  2363. end),prt,msh)]]
  2364. end
  2365.  
  2366. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2367. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2368. prt.Anchored=true
  2369. prt.CFrame=cframe
  2370. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2371. game:GetService("Debris"):AddItem(prt,5)
  2372. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2373. end
  2374.  
  2375. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2376. local prt=part(3,F2,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2377. prt.Anchored=true
  2378. prt.CFrame=cframe
  2379. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  2380. game:GetService("Debris"):AddItem(prt,5)
  2381. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2382. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2383. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2384. for i=0,1,delay do
  2385. wait()
  2386. Part.CFrame=Part.CFrame
  2387. Part.Transparency=i
  2388. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2389. end
  2390. Part.Parent=nil
  2391. end),prt,msh)]]
  2392. end
  2393.  
  2394. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2395. local prt=part(3,F2,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2396. prt.Anchored=true
  2397. prt.CFrame=cframe
  2398. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2399. game:GetService("Debris"):AddItem(prt,5)
  2400. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2401. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2402. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2403. for i=0,1,delay do
  2404. wait()
  2405. Part.CFrame=Part.CFrame
  2406. Part.Transparency=i
  2407. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2408. end
  2409. Part.Parent=nil
  2410. end),prt,msh)]]
  2411. end
  2412.  
  2413. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2414. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2415. prt.Anchored=true
  2416. prt.CFrame=cframe
  2417. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2418. game:GetService("Debris"):AddItem(prt,5)
  2419. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  2420. end
  2421.  
  2422. function ElecEffect(cff,x,y,z)
  2423. local prt=part(3,F2,0,0,BrickColor.new("Dark indigo"),"Part",vt(1,1,1))
  2424. prt.Anchored=true
  2425. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2426. prt.CFrame=cf(prt.Position)
  2427. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2428. game:GetService("Debris"):AddItem(prt,2)
  2429. xval=math.random()/2
  2430. yval=math.random()/2
  2431. zval=math.random()/2
  2432. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2433. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  2434. end
  2435.  
  2436. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  2437. --[[p0=pos1
  2438. p1=pos2
  2439. tym=times
  2440. ofs=offset
  2441. col=color
  2442. th=size
  2443. tra=transparency
  2444. last=lastingtime]]
  2445. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  2446. for i=1,tym do
  2447. local li = Instance.new("Part",F2) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  2448. li.Material = "Neon"
  2449. 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)])
  2450. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  2451. if tym == i then
  2452. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  2453. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  2454. else
  2455. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  2456. end
  2457. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game:GetService("Debris"):AddItem(li,last)
  2458. end
  2459. end
  2460.  
  2461. local DragTable = {}
  2462.  
  2463. function Bringer()
  2464. for i, d in pairs(DragTable) do
  2465. if d then
  2466. if d:IsA("BodyPosition") then
  2467. local tem = d:FindFirstChild("Time")
  2468. if not tem then
  2469. tem = Instance.new("NumberValue")
  2470. tem.Parent = d
  2471. tem.Name = "Time"
  2472. tem.Value = 0
  2473. end
  2474. if tem.Value < 1.5 then
  2475. tem.Value = tem.Value+.1
  2476. d.Position = RootPart.Position
  2477. else
  2478. game:GetService("Debris"):AddItem(tem, 0)
  2479. game:GetService("Debris"):AddItem(d, 0)
  2480. table.remove(DragTable, i)
  2481. end
  2482. end
  2483. end
  2484. end
  2485. end
  2486.  
  2487. runServ:connect(function()
  2488. Bringer()
  2489. end)
  2490.  
  2491. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Duration,KnockbackType,decreaseblock)
  2492. if hit.Parent==nil then
  2493. return
  2494. end
  2495. local H = nil
  2496. h=hit.Parent:FindFirstChild("Humanoid")
  2497. for _,v in pairs(hit.Parent:children()) do
  2498. if v:IsA("Humanoid") then
  2499. h=v
  2500. H = v
  2501. end
  2502. end
  2503. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2504. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2505. end
  2506. if hit.Parent.className=="Hat" then
  2507. hit=hit.Parent.Parent:findFirstChild("Head")
  2508. end
  2509. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  2510. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2511. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2512. --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2513. return
  2514. end]]
  2515. --hs(hit,1.2)
  2516. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  2517. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  2518. c=Instance.new("ObjectValue")
  2519. c.Name="creator"
  2520. c.Value=game:service("Players").LocalPlayer
  2521. c.Parent=h
  2522. game:GetService("Debris"):AddItem(c,.5)
  2523. Damage=math.random(minim,maxim)
  2524. if Mode=="Demon" then
  2525. Damage=Damage*damagebonus
  2526. end
  2527. -- h:TakeDamage(Damage)
  2528. blocked=false
  2529. block=hit.Parent:findFirstChild("Block")
  2530. if block~=nil then
  2531. print(block.className)
  2532. if block.className=="NumberValue" then
  2533. if block.Value>0 then
  2534. blocked=true
  2535. if decreaseblock==nil then
  2536. block.Value=block.Value-1
  2537. end
  2538. end
  2539. end
  2540. if block.className=="IntValue" then
  2541. if block.Value>0 then
  2542. blocked=true
  2543. if decreaseblock~=nil then
  2544. block.Value=block.Value-1
  2545. end
  2546. end
  2547. end
  2548. end
  2549. if blocked==false then
  2550. --h:TakeDamage(Damage)
  2551. --H.Health=H.Health-Damage
  2552. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  2553. else
  2554. --H.Health=H.Health-(Damage/2)
  2555. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  2556. end
  2557. if Type=="Knockdown" then
  2558. hum=hit.Parent.Humanoid
  2559. hum.PlatformStand=true
  2560. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  2561. local tor = hum.Parent:FindFirstChild("Torso")
  2562. if tor then
  2563. tor.Velocity = tor.CFrame.lookVector*-10
  2564. end
  2565. coroutine.resume(coroutine.create(function(HHumanoid)
  2566. swait(1)
  2567. HHumanoid.PlatformStand=false
  2568. end),hum)
  2569. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2570. elseif Type=="Breaker" then
  2571. hum=hit.Parent.Humanoid
  2572. hum.PlatformStand=true
  2573. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  2574. hum.JumpPower = 20
  2575. local tor = hum.Parent:FindFirstChild("Torso")
  2576. if tor then
  2577. tor.Velocity = tor.CFrame.lookVector*-50
  2578. end
  2579. coroutine.resume(coroutine.create(function(HHumanoid)
  2580. swait(1)
  2581. HHumanoid.PlatformStand=false
  2582. end),hum)
  2583. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2584. if H.MaxHealth > 100000000 then
  2585. H.MaxHealth = 100
  2586. wait()
  2587. end
  2588. elseif Type=="Normal" then
  2589. vp=Instance.new("BodyVelocity")
  2590. vp.P=500
  2591. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2592. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2593. if KnockbackType==1 then
  2594. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  2595. elseif KnockbackType==2 then
  2596. vp.velocity=Property.CFrame.lookVector*knockback
  2597. end
  2598. if knockback>-100 then
  2599. vp.Parent=hit.Parent.Torso
  2600. end
  2601. game:GetService("Debris"):AddItem(vp,.5)
  2602. elseif Type=="Lifesteal" then
  2603. for i=1,5 do
  2604. --MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2605. end
  2606. vp=Instance.new("BodyVelocity")
  2607. vp.P=500
  2608. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2609. if KnockbackType==1 then
  2610. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  2611. elseif KnockbackType==2 then
  2612. vp.velocity=Property.CFrame.lookVector*knockback
  2613. end
  2614. if knockback>-250 then
  2615. vp.Parent=hit.Parent.Torso
  2616. end
  2617. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2618. game:GetService("Debris"):AddItem(vp,.5)
  2619. Heal=math.ceil(Damage/3)
  2620. Humanoid.Health=Humanoid.Health+Heal
  2621. showDamage(RootPart,Heal,.5,BrickColor.new("Bright green"))
  2622. elseif Type == "DevilStyle" then
  2623. for i=1,5 do
  2624. --MagicBlood(BrickColor.new("Dark indigo"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2625. end
  2626. vp=Instance.new("BodyPosition")
  2627. vp.P = 80000
  2628. vp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2629. if KnockbackType==1 then
  2630. vp.Position=RootPart.Position
  2631. elseif KnockbackType==2 then
  2632. vp.Position=RootPart.Position
  2633. end
  2634. if H.MaxHealth > 100000000 then
  2635. H.MaxHealth = 100
  2636. wait()
  2637. end
  2638. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2639. vp.Parent=hit.Parent.Torso
  2640. table.insert(DragTable, vp)
  2641. Heal=math.ceil(Damage/5)
  2642. Humanoid.Health=Humanoid.Health+Heal
  2643. showDamage(RootPart,Heal,.5,BrickColor.new("Bright green"))
  2644. elseif Type == "Dragger" then
  2645. for i=1,5 do
  2646. --MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2647. end
  2648. vp=Instance.new("BodyPosition")
  2649. vp.P = 80000
  2650. vp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2651. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2652. if KnockbackType==1 then
  2653. vp.Position=RootPart.Position
  2654. elseif KnockbackType==2 then
  2655. vp.Position=RootPart.Position
  2656. end
  2657. vp.Parent=hit.Parent.Torso
  2658. table.insert(DragTable, vp)
  2659. elseif Type=="Up" then
  2660. hit.Velocity = Vector3.new(0, 100, 0)
  2661. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2662. elseif Type=="Snare" then
  2663. bp=Instance.new("BodyPosition")
  2664. bp.P=2000
  2665. bp.D=100
  2666. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2667. bp.position=hit.Parent.Torso.Position
  2668. bp.Parent=hit.Parent.Torso
  2669. game:GetService("Debris"):AddItem(bp,1)
  2670. elseif Type=="Charge" then
  2671. Charge=Charge+1
  2672. coroutine.resume(coroutine.create(function(Part)
  2673. swait(30)
  2674. for i=1,5 do
  2675. swait(5)
  2676. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  2677. --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)
  2678. newdam=math.random(1,5)
  2679. if blocked==false then
  2680. H.Health = H.Health-newdam
  2681. showDamage(hit.Parent,newdam,.5,BrickColor:Red())
  2682. else
  2683. H.Health = H.Health-newdam/2
  2684. showDamage(hit.Parent,newdam,.5,BrickColor.new("Bright blue"))
  2685. end
  2686. end
  2687. end),hit)
  2688. end
  2689. local debounceD=Instance.new("BoolValue")
  2690. debounceD.Name="DebounceHit"
  2691. debounceD.Parent=hit.Parent
  2692. debounceD.Value=true
  2693. if Duration < .2 then
  2694. Duration = .2
  2695. end
  2696. game:GetService("Debris"):AddItem(debounceD,Duration)
  2697. local c=Instance.new("ObjectValue")
  2698. c.Name="creator"
  2699. c.Value=Player
  2700. c.Parent=h
  2701. game:GetService("Debris"):AddItem(c,Duration)
  2702. H.Health=H.Health-Damage
  2703. CRIT=false
  2704. hitDeb=true
  2705. AttackPos=6
  2706. end
  2707. end
  2708.  
  2709. showDamage=function(Char,Dealt,du,Color)
  2710. --[[c=Instance.new("Part")
  2711. c.Transparency=0
  2712. c.BrickColor=Color
  2713. c.Material = "Neon"
  2714. c.Name="DamageDisplay"
  2715. c.TopSurface=0
  2716. c.BottomSurface=0
  2717. c.formFactor="Plate"
  2718. c.Size=Vector3.new(1,.4,1)
  2719. ms=Instance.new("CylinderMesh")
  2720. ms.Scale=Vector3.new(.8,.8,.8)
  2721. local bill = Instance.new("BillboardGui")
  2722. bill.Parent = c
  2723. bill.AlwaysOnTop = true
  2724. bill.Name = "YEA"
  2725. bill.Size = UDim2.new(4, 0, 4, 0)
  2726. bill.StudsOffset = Vector3.new(0, 1, 0)
  2727. local textl = Instance.new("TextLabel")
  2728. textl.Parent = bill
  2729. textl.Name = "WHYYYYYYYY"
  2730. textl.BackgroundTransparency = 1
  2731. textl.Size = UDim2.new(1, 0, 1, 0)
  2732. textl.Font = "SourceSansLight"
  2733. textl.Text = "-"..Dealt..""
  2734. textl.TextColor3 = Color3.new(40/255, 0,60/255)
  2735. textl.TextScaled = true
  2736. textl.TextStrokeColor3 = Color3.new(139/255, 0, 209/255)
  2737. textl.TextStrokeTransparency = 0
  2738. if CRIT==true then
  2739. ms.Scale=Vector3.new(1,1.25,1)
  2740. end
  2741. ms.Parent=c
  2742. c.Reflectance=0
  2743. Instance.new("BodyGyro").Parent=c
  2744. c.Parent=F2
  2745. if Char:findFirstChild("Head")~=nil then
  2746. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2747. elseif Char.Parent:findFirstChild("Head")~=nil then
  2748. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2749. end
  2750. local f=Instance.new("BodyPosition")
  2751. f.P=2000
  2752. f.D=100
  2753. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2754. f.position=c.Position+Vector3.new(0,3,0)
  2755. f.Parent=c
  2756. game:GetService("Debris"):AddItem(c,0)
  2757. c.CanCollide=false
  2758. c.CanCollide=false--]]
  2759. end
  2760.  
  2761. combo=0
  2762. function ob1d(mouse)
  2763. hold=true
  2764. if attack==true or equipped==false then return end
  2765. if Mode=="Binary" then
  2766. idle=0
  2767. if Anim=="Run" then
  2768. SpinSlash()
  2769. else
  2770. if combo==0 then
  2771. combo=1
  2772. attackone()
  2773. elseif combo==1 then
  2774. combo=2
  2775. attacktwo()
  2776. elseif combo==2 then
  2777. combo=0
  2778. attackthree()
  2779. end
  2780. end
  2781. else
  2782. if combo==0 then
  2783. combo=1
  2784. Demonattackone()
  2785. elseif combo==1 then
  2786. combo=2
  2787. Demonattacktwo()
  2788. elseif combo==2 then
  2789. combo=0
  2790. Demonattackthree()
  2791. end
  2792. end
  2793. coroutine.resume(coroutine.create(function()
  2794. for i=1,20 do
  2795. if attack==false then
  2796. swait()
  2797. end
  2798. end
  2799. if attack==false then
  2800. combo=0
  2801. --equipanim()
  2802. end
  2803. end))
  2804. end
  2805.  
  2806. function ob1u(mouse)
  2807. hold = false
  2808. end
  2809.  
  2810. buttonhold = false
  2811.  
  2812. eul=0
  2813. holdx=false
  2814. equipped=false
  2815. local nostop = false
  2816.  
  2817. function FireBullet(Shooter, Velocity, MinDam, MaxDam, SIZe)
  2818. local Bullet = Instance.new("Part", F2)
  2819. Bullet.BrickColor = BrickColor.new("Dark indigo")
  2820. Bullet.Material = "Neon"
  2821. Bullet.Transparency = .5
  2822. Bullet.CanCollide = false
  2823. Bullet.Name = "Bullet"
  2824. Bullet.Anchored = false
  2825. Bullet.Locked = true
  2826. Bullet.Size = SIZe
  2827. Bullet.Shape = "Ball"
  2828. Bullet.CFrame = Shooter.CFrame
  2829. local BVel = Instance.new("BodyVelocity",Bullet)
  2830. BVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2831. BVel.Velocity = Shooter.CFrame.lookVector*Velocity
  2832. local bill = Instance.new("BillboardGui")
  2833. bill.Parent = Shooter
  2834. bill.Name = "pew"
  2835. bill.Size = UDim2.new(1.6, 0, 1.6, 0)
  2836. local IL = Instance.new("ImageLabel")
  2837. IL.Parent = bill
  2838. IL.Name = "Flash"
  2839. IL.BackgroundTransparency = 1
  2840. IL.Size = UDim2.new(1, 0, 1, 0)
  2841. IL.Image = "rbxasset://textures/particles/sparkles_main.dds"
  2842. IL.ImageColor3 = Color3.new(170/255, 0, 1)
  2843. local Flash = Instance.new("PointLight", Shooter)
  2844. Flash.Brightness = 100
  2845. Flash.Color = IL.ImageColor3
  2846. Flash.Range = 10
  2847. Flash.Shadows = true
  2848. so("http://roblox.com/asset/?id=200633327",Shooter,1,.7)
  2849. game:GetService("Debris"):AddItem(Bullet, 10)
  2850. game:GetService("Debris"):AddItem(bill, .1)
  2851. game:GetService("Debris"):AddItem(Flash, .1)
  2852. local function BoomEffect(Cframe)
  2853. local Boo = Instance.new("Part", F2)
  2854. Boo.BrickColor = BrickColor.new("Dark indigo")
  2855. Boo.Transparency = .5
  2856. Boo.Material = "Neon"
  2857. Boo.Anchored = true
  2858. Boo.CanCollide = false
  2859. Boo.CFrame = Cframe
  2860. game:GetService("Debris"):AddItem(Bullet, 0)
  2861. Boo.Size = Vector3.new(Bullet.Size.X*10,Bullet.Size.X*10,Bullet.Size.X*10)
  2862. MagniDamage(Boo,(Bullet.Size.X*10)*2,MinDam+5,MaxDam+5,1,"Breaker")
  2863. so("http://roblox.com/asset/?id=206082273",Shooter,.5,1)
  2864. local BooM = Instance.new("SpecialMesh", Boo)
  2865. BooM.MeshType = "Sphere"
  2866. for i = .5, 2, .3 do
  2867. wait()
  2868. BooM.Scale = Vector3.new(i*2,i*2,i*2)
  2869. Boo.Transparency = i/2
  2870. end
  2871. game:GetService("Debris"):AddItem(Boo, 0)
  2872. end
  2873. local HitSomething = false
  2874. Bullet.Touched:connect(function(part)
  2875. local HUM = FindHum(part.Parent)
  2876. if HUM and HUM ~= Humanoid and not HitSomething then
  2877. local Tor = part.Parent:FindFirstChild("Torso")
  2878. if Tor then
  2879. HitSomething = true
  2880. Damagefunc(Tor,MinDam/2,MaxDam/2,10,"Breaker",RootPart,.2,.5,1)
  2881. BoomEffect(Bullet.CFrame)
  2882. end
  2883. end
  2884. if not HUM and not HitSomething then
  2885. if part.Anchored == true and part.Name ~= "Effect" and part.Name ~= "Handle" then
  2886. BoomEffect(Bullet.CFrame)
  2887. end
  2888. end
  2889. end)
  2890. end
  2891.  
  2892. local StopLaser = false
  2893. function FireLaser(Shooter, Duration, Range, Size, minDam, maxDam, BuildUp, FirstMes, LastMes, message)
  2894. local BeamStart = Instance.new("Part", F2)
  2895. BeamStart.BrickColor = BrickColor.new("Dark indigo")
  2896. BeamStart.Material = "Neon"
  2897. BeamStart.Transparency = 0
  2898. BeamStart.Name = "BeamStart"
  2899. BeamStart.Anchored = false
  2900. BeamStart.CanCollide = false
  2901. BeamStart.Locked = true
  2902. BeamStart.Size = Size
  2903. BeamStart.CFrame = Shooter.CFrame
  2904. local BSMesh = Instance.new("SpecialMesh", BeamStart)
  2905. BSMesh.MeshType = "Sphere"
  2906. local BSWeld = Instance.new("Weld", BeamStart)
  2907. BSWeld.Part0 = Shooter
  2908. BSWeld.Part1 = BeamStart
  2909. BSWeld.C0 = CFrame.new(0,0,-(Size.Z/2))
  2910. if message then
  2911. chatServ:Chat(Head, FirstMes, 2)
  2912. end
  2913. if BuildUp > .008 then
  2914. BSMesh.Scale = Vector3.new(0,0,0)
  2915. local BeamCharge = Instance.new("Sound", BeamStart)
  2916. BeamCharge.Volume = 1
  2917. BeamCharge.SoundId = "http://roblox.com/asset/?id=244578827"
  2918. BeamCharge.Pitch = 0.8
  2919. BeamCharge:Play()
  2920. for i = 0, BuildUp, .008 do
  2921. wait()
  2922. BSMesh.Scale = Vector3.new(i/BuildUp,i/BuildUp,i/BuildUp)
  2923. BSWeld.C0 = CFrame.new(0,0,-((i*(Size.Z/2))/BuildUp))
  2924. BeamStart.Transparency = ((-BuildUp+i)*-1)
  2925. MagicBlood(BrickColor.new("Dark indigo"),Shooter.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2926. end
  2927. BeamCharge:Pause()
  2928. game:GetService("Debris"):AddItem(BeamCharge, 0)
  2929. end
  2930. if message then
  2931. chatServ:Chat(Head, LastMes, 2)
  2932. end
  2933. local Beam = Instance.new("Part", F2)
  2934. Beam.BrickColor = BrickColor.new("Dark indigo")
  2935. Beam.Material = "Neon"
  2936. Beam.Name = "Beam"
  2937. Beam.Transparency = 0
  2938. Beam.Anchored = true
  2939. Beam.CanCollide = false
  2940. Beam.Locked = true
  2941. local BeamMesh = Instance.new("SpecialMesh", Beam)
  2942. BeamMesh.MeshType = "Cylinder"
  2943. local BeamEnd = Instance.new("Part", F2)
  2944. BeamEnd.BrickColor = BrickColor.new("Dark indigo")
  2945. BeamEnd.Material = "Neon"
  2946. BeamEnd.Transparency = 0
  2947. BeamEnd.Name = "BeamEnd"
  2948. BeamEnd.Anchored = true
  2949. BeamEnd.CanCollide = false
  2950. BeamEnd.Locked = true
  2951. BeamEnd.Size = Vector3.new(Size.X, Size.X, Size.X)
  2952. local BEMesh = Instance.new("SpecialMesh", BeamEnd)
  2953. BEMesh.MeshType = "Sphere"
  2954. local BeamFire = Instance.new("Sound", Beam)
  2955. BeamFire.Volume = 1
  2956. BeamFire.PlayOnRemove = true
  2957. BeamFire.SoundId = "http://roblox.com/asset/?id=376107717"
  2958. BeamFire.Pitch = 1
  2959. BeamFire:Destroy()
  2960. game:GetService("Debris"):AddItem(BeamFire, 5)
  2961. local BeamSound = Instance.new("Sound", Beam)
  2962. BeamSound.Volume = 1
  2963. BeamSound.Looped = true
  2964. BeamSound.SoundId = "http://roblox.com/asset/?id=254847708"
  2965. BeamSound.Pitch = 1
  2966. BeamSound:Play()
  2967. local TEM = 0
  2968. local run = runServ:connect(function()
  2969. local Hit, Pos = rayCast(BeamStart.Position, BeamStart.CFrame.lookVector, 999, Character)
  2970. Beam.Size = Vector3.new((BeamStart.CFrame.p - Pos).magnitude,Size.X,Size.X)
  2971. Beam.CFrame = CFrame.new((BeamStart.CFrame.p + Pos)/2,BeamStart.CFrame.p)*CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  2972. BeamEnd.CFrame = CFrame.new(Pos)
  2973. if Hit then
  2974. if Beam.Transparency == 0 then
  2975. MagicBlock(BrickColor.new("Dark indigo"),BeamEnd.CFrame*cf(math.random(-200,200)/100,-math.random(0,1)/100,math.random(-200,200)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,Size.X*2,Size.X*2,Size.X*2,0.05)
  2976. end
  2977. end
  2978. end)
  2979. local run2 = runServ:connect(function()
  2980. MagniDamage(BeamEnd,Range,minDam,maxDam,1,"Breaker")
  2981. MagniDamage(Beam,Range,minDam*4,maxDam*4,1,"LifeSteal")
  2982. end)
  2983. repeat TEM = TEM+.1 wait() until TEM > Duration-1 or StopLaser
  2984. StopLaser = false
  2985. so("http://roblox.com/asset/?id=161006163",Shooter,1,.4)
  2986. BeamSound:Pause()
  2987. game:GetService("Debris"):AddItem(BeamSound, 0)
  2988. for i = 0, 1, .04 do
  2989. wait()
  2990. BeamStart.Transparency = i
  2991. Beam.Transparency = i
  2992. BeamEnd.Transparency = i
  2993. BSMesh.Scale = Vector3.new((-1+i)*-1,(-1+i)*-1,1)
  2994. BeamMesh.Scale = Vector3.new(1,(-1+i)*-1,(-1+i)*-1)
  2995. BEMesh.Scale = Vector3.new((-1+i)*-1,(-1+i)*-1,1)
  2996. end
  2997. run:disconnect()
  2998. run2:disconnect()
  2999. game:GetService("Debris"):AddItem(BeamStart, 0)
  3000. game:GetService("Debris"):AddItem(Beam, 0)
  3001. game:GetService("Debris"):AddItem(BeamEnd, 0)
  3002. end
  3003.  
  3004. local CanLaser = true
  3005. local Hover = false
  3006. local CMHP = false
  3007. local MadePlatform = false
  3008. local HovLaser = false
  3009.  
  3010. function CreateGround()
  3011. local G1 = Instance.new("Part", workspace)
  3012. local G2 = Instance.new("Part", workspace)
  3013. G1.BrickColor = BrickColor.new("Earth green")
  3014. G2.BrickColor = BrickColor.new("Pine Cone")
  3015. G1.Material, G2.Material = "Grass", "Grass"
  3016. G1.Name, G2.Name = "GrassBaseplate", "DirtBaseplate"
  3017. G1.Anchored, G2.Anchored = true, true
  3018. G1.Locked, G2.Locked = true, true
  3019. G1.Size, G2.Size = Vector3.new(2048, 10, 2048), Vector3.new(2048, 100, 2048)
  3020. G1.CFrame = RootPart.CFrame*CFrame.new(0,-3-(G1.Size.Y/2), 0)
  3021. G2.CFrame = G1.CFrame*CFrame.new(0,-5-(G2.Size.Y/2), 0)
  3022. return G1, G2
  3023. end
  3024.  
  3025.  
  3026. function CreateMiniPlatforms()
  3027. if not CMHP then
  3028. CMHP = true
  3029. local Plat = Instance.new("Part", workspace)
  3030. Plat.BrickColor = BrickColor.new("Dark indigo")
  3031. Plat.Transparency = .8
  3032. Plat.Name = "Platform"
  3033. Plat.Material = "Neon"
  3034. Plat.Anchored = true
  3035. Plat.CanCollide = true
  3036. Plat.Locked = true
  3037. Plat.Size = Vector3.new(10, 10, 1)
  3038. Plat.CFrame = (RootPart.CFrame * CFrame.new(0, -4, 0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3039. local PMesh = Instance.new("SpecialMesh", Plat)
  3040. PMesh.MeshType = "Sphere"
  3041. local function gh()
  3042. if HovLaser then
  3043. FireLaser(Plat, 0, 8, Vector3.new(3.6,3.6,6.8), 100, 300, 0, _, _, false)
  3044. end
  3045. end
  3046. delay(.1,gh)
  3047. CMHP = false
  3048. for i = .8, 1, .04 do
  3049. wait()
  3050. Plat.Transparency = i
  3051. Plat.Parent = F2
  3052. end
  3053. game:GetService("Debris"):AddItem(Plat, 0)
  3054. end
  3055. end
  3056.  
  3057. runServ:connect(function()
  3058. if Hover and Humanoid.Health > .1 then
  3059. CreateMiniPlatforms()
  3060. end
  3061. end)
  3062.  
  3063. Humanoid.Changed:connect(function()
  3064. if Humanoid.Health < .1 then
  3065. game:GetService("Debris"):AddItem(Grass, 0)
  3066. game:GetService("Debris"):AddItem(Dirt, 0)
  3067. end
  3068. end)
  3069.  
  3070. function key(key)
  3071. if key == "j" then
  3072. Hover = not Hover
  3073. end
  3074. if key == "l" and Hover and not HovLaser then
  3075. HovLaser = true
  3076. wait(.001)
  3077. HovLaser = false
  3078. end
  3079. if key == "k" then
  3080. if not MadePlatform then
  3081. MadePlatform = true
  3082. Grass, Dirt = CreateGround()
  3083. Hover = false
  3084. else
  3085. MadePlatform = false
  3086. game:GetService("Debris"):AddItem(Grass, 0)
  3087. game:GetService("Debris"):AddItem(Dirt, 0)
  3088. end
  3089. end
  3090. if key == "q" and not Firing and DCOn and CanUseCannon then
  3091. Firing = true
  3092. keyConnect = MMouse.KeyUp:connect(function(key)
  3093. if key == "q" and Firing then
  3094. Firing = false
  3095. end
  3096. end)
  3097. repeat
  3098. wait(.1)
  3099. if C == 1 then
  3100. C = 2
  3101. FireBullet(CHole1, 800, 1, 5, Vector3.new(.5,.5,.5))
  3102. elseif C == 2 then
  3103. C = 1
  3104. FireBullet(CHole2, 800, 1, 5, Vector3.new(.5,.5,.5))
  3105. end
  3106. until not Firing
  3107. keyConnect:disconnect()
  3108. end
  3109. if key == "p" and not Firing and DCOn and CanUseCannon and Player.UserId == 43981323 or key == "p" and not Firing and DCOn and CanUseCannon and Player.UserId == 14349727 then
  3110. Firing = true
  3111. keyConnect = MMouse.KeyUp:connect(function(key)
  3112. if key == "p" and Firing then
  3113. StopLaser = true
  3114. CanLaser = false
  3115. wait(20)
  3116. Firing = false
  3117. wait(50)
  3118. CanLaser = true
  3119. keyConnect:disconnect()
  3120. end
  3121. end)
  3122. if C == 1 then
  3123. C = 2
  3124. FireLaser(CHole1, math.huge, 300, Vector3.new(150.8,150.8,1186), 6000000, 90000000, 10, "You made me do this..", "Planet buster!", true)
  3125. elseif C == 2 then
  3126. C = 1
  3127. FireLaser(CHole2, math.huge, 300, Vector3.new(150.8,150.8,1186), 6000000, 90000000, 10, "You made me do this..", "Planet buster!", true)
  3128. end
  3129. end
  3130. if key == "e" then
  3131. if DCOn and CanUseCannon and not Firing then
  3132. if C == 1 then
  3133. C = 2
  3134. FireBullet(CHole1, 50, 60, 90, Vector3.new(.6,.6,.6))
  3135. elseif C == 2 then
  3136. C = 1
  3137. FireBullet(CHole2, 50, 60, 90, Vector3.new(.6,.6,.6))
  3138. end
  3139. end
  3140. end
  3141. if key == "r" then
  3142. if DCOn and CanUseCannon and not Firing then
  3143. if C == 1 then
  3144. C = 2
  3145. FireBullet(CHole1, 300, 5, 20, Vector3.new(.3,.3,.3))
  3146. elseif C == 2 then
  3147. C = 1
  3148. FireBullet(CHole2, 300, 5, 20, Vector3.new(.3,.3,.3))
  3149. end
  3150. end
  3151. end
  3152. if key == "t" then
  3153. if DCOn and CanUseCannon and not Firing then
  3154. Firing = true
  3155. FireBullet(CHole2, 10, 100, 200, Vector3.new(6,6,6))
  3156. wait(1.5)
  3157. Firing = false
  3158. end
  3159. end
  3160. if key == "y" then
  3161. if DCOn and CanUseCannon and not Firing and CanLaser then
  3162. Firing = true
  3163. FireLaser(CHole1, 25, 10, Vector3.new(4.6,4.6,8.8), 60, 100, 1, "Were you ready for this?..", "Nether Blast!", true)
  3164. wait(10)
  3165. Firing = false
  3166. end
  3167. end
  3168. if key == "u" then
  3169. if DCOn and CanUseCannon and not Firing and CanLaser then
  3170. Firing = true
  3171. CanLaser = false
  3172. FireLaser(CHole2, 10, 40, Vector3.new(20.8,20.8,46), 600000, 9000000, 1.5, "This time, it's over!", "Nether Obliterator!", true)
  3173. wait(20)
  3174. Firing = false
  3175. wait(40)
  3176. CanLaser = true
  3177. end
  3178. end
  3179. if key == "h" then
  3180. if DCOn and CanUseCannon and not Firing and CanLaser then
  3181. if C == 1 then
  3182. C = 2
  3183. FireLaser(CHole1, .3, 2, Vector3.new(.3,.3,2.5), 5, 20, 0, _, _, false)
  3184. elseif C == 2 then
  3185. C = 1
  3186. FireLaser(CHole2, .3, 2, Vector3.new(.3,.3,2.5), 5, 20, 0, _, _, false)
  3187. end
  3188. end
  3189. end
  3190. if key == "g" and DCOn and CanUseCannon and not Firing and CanLaser then
  3191. Firing = true
  3192. keyConnect = MMouse.KeyUp:connect(function(key)
  3193. if key == "g" and DCOn and CanUseCannon and Firing then
  3194. Firing = false
  3195. StopLaser = true
  3196. CanLaser = false
  3197. wait(3)
  3198. CanLaser = true
  3199. keyConnect:disconnect()
  3200. end
  3201. end)
  3202. if C == 1 then
  3203. C = 2
  3204. FireLaser(CHole1, math.huge, 6, Vector3.new(2,2,4.2), 20, 40, 1, "How about...", "This!?" , true)
  3205. elseif C == 2 then
  3206. C = 1
  3207. FireLaser(CHole2, math.huge, 6, Vector3.new(2,2,4.2), 20, 40, 1, "How about...", "This!?", true)
  3208. end
  3209. end
  3210. if key == "m" then
  3211. MomentumCancel = not MomentumCancel
  3212. if MomentumCancel then
  3213. chatServ:Chat(Head, "Negator: Active", 2)
  3214. else
  3215. chatServ:Chat(Head, "Negator: Inactive", 2)
  3216. end
  3217. end
  3218. if key == "n" then
  3219. if not nostop then
  3220. nostop = true
  3221. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  3222. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false)
  3223. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
  3224. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, false)
  3225. chatServ:Chat(Head, "Stablize Armour! Can't knock me down so easily now, huh?", 2)
  3226. else
  3227. nostop = false
  3228. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true)
  3229. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, true)
  3230. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true)
  3231. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, true)
  3232. chatServ:Chat(Head, "Armour Break! Maybe I'll go easy..", 2)
  3233. end
  3234. end
  3235. if key=="c" then
  3236. if guard==true then
  3237. guard=false
  3238. else
  3239. guard=true
  3240. end
  3241. end
  3242. if key=="x" then
  3243. holdx=true
  3244. end
  3245. if attack==true then return end
  3246. if key=="f" then
  3247. if equipped==false then
  3248. equipped=true
  3249. RSH=ch.Torso["Right Shoulder"]
  3250. LSH=ch.Torso["Left Shoulder"]
  3251. --
  3252. RSH.Parent=nil
  3253. LSH.Parent=nil
  3254. --
  3255. RW.Name="Right Shoulder"
  3256. RW.Part0=ch.Torso
  3257. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3258. RW.C1=cf(0, 0.5, 0)
  3259. RW.Part1=ch["Right Arm"]
  3260. RW.Parent=ch.Torso
  3261. --
  3262. LW.Name="Left Shoulder"
  3263. LW.Part0=ch.Torso
  3264. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3265. LW.C1=cf(0, 0.5, 0)
  3266. LW.Part1=ch["Left Arm"]
  3267. LW.Parent=ch.Torso
  3268. --
  3269. equipanim()
  3270. else
  3271. equipped=false
  3272. damagebonus = 1
  3273. hideanim()
  3274. swait(0)
  3275. RW.Parent=nil
  3276. LW.Parent=nil
  3277. RSH.Parent=player.Character.Torso
  3278. LSH.Parent=player.Character.Torso
  3279. end
  3280. end
  3281. if equipped==false then return end
  3282. if Mode=="Binary" then
  3283. if key=="q" then
  3284. idle=500
  3285. end
  3286. if key=="z" and hitfloor~=nil then
  3287. BinarySwing()
  3288. end
  3289. if key=="x" then
  3290. BinaryImpulse()
  3291. end
  3292. if key=="c" then
  3293. Bash()
  3294. end
  3295. if key=="v" then
  3296. damagebonus = 50
  3297. UnleashTheDemon()
  3298. end
  3299. end
  3300. if Mode=="Demon" then
  3301. if key == "z" and not Firing then
  3302. if not DCOn then
  3303. DemonCannon()
  3304. DCOn = true
  3305. else
  3306. HideDemonCannon()
  3307. DCOn = false
  3308. end
  3309. end
  3310. if key=="x" then
  3311. LetItBuild()
  3312. end
  3313. if key=="c" then
  3314. YourMoveCreep()
  3315. end
  3316. if key == "b" then
  3317. TCtrl = not TCtrl
  3318. if TCtrl then
  3319. TimeControl()
  3320. end
  3321. end
  3322. end
  3323. if key=="0" then
  3324. Humanoid.WalkSpeed=(16*16)
  3325. end
  3326. end
  3327.  
  3328. function key2(key)
  3329. if key=="0" then
  3330. Humanoid.WalkSpeed=16
  3331. end
  3332. if key=="x" then
  3333. holdx=false
  3334. end
  3335. end
  3336.  
  3337. function s(mouse)
  3338. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3339. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3340. mouse.KeyDown:connect(key)
  3341. mouse.KeyUp:connect(key2)
  3342.  
  3343. player=Player
  3344. ch=Character
  3345. --MMouse=mouse
  3346. end
  3347.  
  3348. function ds(mouse)
  3349. end
  3350.  
  3351. Bin.Selected:connect(s)
  3352. Bin.Deselected:connect(ds)
  3353. print("Fixer the Demon Mercenary loaded.")
  3354.  
  3355. runServ:connect(function()
  3356. if DCOn and CanUseCannon then
  3357. local CCF = CFrame.new(CM2.Position, Vector3.new(MMouse.Hit.p.X, MMouse.Hit.p.Y, MMouse.Hit.p.Z))
  3358. CPos.Position = CM2.Position
  3359. CGyro.CFrame = CCF
  3360. CPos.P = 50000
  3361. end
  3362. end)
  3363.  
  3364. local thenum=0
  3365. while true do
  3366. swait()
  3367. if Mode=="Demon" then
  3368. if thenum>=5 then
  3369. --ElecEffect(prtd7.CFrame,2,4,2)
  3370. thenum=0
  3371. end
  3372. thenum=thenum+1
  3373. if Humanoid.Health > Humanoid.MaxHealth/10 then
  3374. Humanoid.Health = Humanoid.Health-(Humanoid.Health/1000)
  3375. end
  3376. for _,c in pairs(Character:children()) do
  3377. for _,v in pairs(c:children()) do
  3378. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  3379. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  3380. v.Parent=nil
  3381. end
  3382. end
  3383. end
  3384. end
  3385. end
  3386. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3387. local velderp=RootPart.Velocity.y
  3388. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3389. if equipped==true then
  3390. if Anim=="Idle" and attack==false and Mode=="Binary" then
  3391. idle=idle+1
  3392. else
  3393. idle=0
  3394. end
  3395. if idleanim>=0.3 then
  3396. idleanim2=true
  3397. elseif idleanim<=0 then
  3398. idleanim2=false
  3399. end
  3400. if idleanim2==false then
  3401. if Anim=="Walk" then
  3402. idleanim=idleanim+0.005
  3403. elseif Anim=="Idle" then
  3404. idleanim=idleanim+0.003
  3405. end
  3406. else
  3407. if Anim=="Walk" then
  3408. idleanim=idleanim-0.005
  3409. elseif Anim=="Idle" then
  3410. idleanim=idleanim-0.003
  3411. end
  3412. end
  3413. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3414. Anim="Jump"
  3415. if attack==false and Mode=="Binary" then
  3416. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3417. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  3418. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3420. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3421. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  3422. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  3423. end
  3424. if attack==false and Mode=="Demon" then
  3425. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3426. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3427. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  3428. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  3429. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  3430. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  3431. end
  3432. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3433. Anim="Fall"
  3434. if attack==false and Mode=="Binary" then
  3435. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3436. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  3437. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3438. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  3439. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3440. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3441. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3442. end
  3443. if attack==false and Mode=="Demon" then
  3444. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  3445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  3446. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  3447. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  3448. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  3449. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  3450. end
  3451. elseif torvel<1 and hitfloor~=nil then
  3452. if Anim=="Fall" then
  3453. if velderp<=-120 then
  3454. coroutine.resume(coroutine.create(function()
  3455. Stomp()
  3456. end))
  3457. end
  3458. end
  3459. Anim="Idle"
  3460. if idle<=500 then
  3461. if attack==false and Mode=="Binary" then
  3462. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  3463. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  3464. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  3465. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  3466. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  3467. RH.C0=clerp(RH.C0,RHC0,.2)
  3468. LH.C0=clerp(LH.C0,LHC0,.2)
  3469. end
  3470. if attack==false and Mode=="Demon" then
  3471. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  3472. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  3473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  3474. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  3475. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  3476. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  3477. end
  3478. else
  3479. if attack==false and Mode=="Binary" then
  3480. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  3481. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  3482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  3483. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  3484. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  3485. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  3486. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  3487. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  3488. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  3489. end
  3490. end
  3491. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3492. if Anim=="Fall" then
  3493. if velderp<=-120 then
  3494. coroutine.resume(coroutine.create(function()
  3495. Stomp()
  3496. end))
  3497. end
  3498. end
  3499. Anim="Walk"
  3500. if attack==false and Mode=="Binary" then
  3501. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  3502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3503. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3504. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3505. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  3506. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  3507. RH.C0=clerp(RH.C0,RHC0,.3)
  3508. LH.C0=clerp(LH.C0,LHC0,.3)
  3509. end
  3510. if attack==false and Mode=="Demon" then
  3511. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  3514. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  3515. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  3516. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  3517. end
  3518. elseif torvel>=22 and hitfloor~=nil then
  3519. if Anim=="Fall" then
  3520. if velderp<=-120 then
  3521. coroutine.resume(coroutine.create(function()
  3522. Stomp()
  3523. end))
  3524. end
  3525. end
  3526. Anim="Run"
  3527. if attack==false and Mode=="Binary" then
  3528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  3529. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  3530. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  3531. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  3532. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  3533. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  3534. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  3535. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  3536. end
  3537. if attack==false and Mode=="Demon" then
  3538. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  3539. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  3540. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  3541. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  3542. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  3543. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  3544. end
  3545. end
  3546. end
  3547. if #Effects>0 then
  3548. --table.insert(Effects,{prt,"Block1",delay})
  3549. for e=1,#Effects do
  3550. if Effects[e]~=nil then
  3551. --for j=1,#Effects[e] do
  3552. local Thing=Effects[e]
  3553. if Thing~=nil then
  3554. local Part=Thing[1]
  3555. local Mode=Thing[2]
  3556. local Delay=Thing[3]
  3557. local IncX=Thing[4]
  3558. local IncY=Thing[5]
  3559. local IncZ=Thing[6]
  3560. if Thing[1].Transparency<=1 then
  3561. if Thing[2]=="Block1" then
  3562. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3563. Mesh=Thing[1]:FindFirstChild("Mesh")
  3564. if not Mesh then
  3565. Mesh = Instance.new("BlockMesh")
  3566. end
  3567. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3568. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3569. elseif Thing[2]=="Cylinder" then
  3570. Mesh=Thing[1]:FindFirstChild("Mesh")
  3571. if not Mesh then
  3572. Mesh = Instance.new("BlockMesh")
  3573. end
  3574. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3575. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3576. elseif Thing[2]=="Blood" then
  3577. Mesh=Thing[1]:FindFirstChild("Mesh")
  3578. if not Mesh then
  3579. Mesh = Instance.new("BlockMesh")
  3580. end
  3581. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3582. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3583. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3584. elseif Thing[2]=="Elec" then
  3585. Mesh=Thing[1]:FindFirstChild("Mesh")
  3586. if not Mesh then
  3587. Mesh = Instance.new("BlockMesh")
  3588. end
  3589. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3590. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3591. elseif Thing[2]=="Disappear" then
  3592. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3593. end
  3594. else
  3595. Part.Parent=nil
  3596. game:GetService("Debris"):AddItem(Part, 0)
  3597. table.remove(Effects,e)
  3598. end
  3599. end
  3600. --end
  3601. end
  3602. end
  3603. end
  3604. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement