Advertisement
13242

Untitled

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