Advertisement
acedope231343

Untitled

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