Sevakot

Untitled

Mar 24th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.62 KB | None | 0 0
  1.  
  2.  
  3. --[[
  4. Made by Fenrier.
  5. ]]
  6. Player=game:GetService("Players").LocalPlayer
  7. Character=Player.Character
  8. PlayerGui=Player.PlayerGui
  9. Backpack=Player.Backpack
  10. Torso=Character.Torso
  11. Head=Character.Head
  12. Humanoid=Character.Humanoid
  13. LeftArm=Character["Left Arm"]
  14. LeftLeg=Character["Left Leg"]
  15. RightArm=Character["Right Arm"]
  16. RightLeg=Character["Right Leg"]
  17. LS=Torso["Left Shoulder"]
  18. LH=Torso["Left Hip"]
  19. RS=Torso["Right Shoulder"]
  20. RH=Torso["Right Hip"]
  21. Neck=Torso.Neck
  22. it=Instance.new
  23. vt=Vector3.new
  24. cf=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  30. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  31. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RootPart=Character.HumanoidRootPart
  34. RootJoint=RootPart.RootJoint
  35. RootCF=euler(-1.57,0,3.14)
  36. attack = false
  37. attackdebounce = false
  38. MMouse=nil
  39. combo=0
  40. mana=0
  41. local idle=0
  42. local Anim="Idle"
  43. local Effects={}
  44. local Mode="Defensive"
  45. --player
  46. player=nil
  47. --save shoulders
  48. RSH, LSH=nil, nil
  49. --welds
  50. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  51. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  52. LH=Torso["Left Hip"]
  53. RH=Torso["Right Hip"]
  54. TorsoColor=Torso.BrickColor
  55. TorsoBlue=TorsoColor.Color.b
  56. NewCol=Color3.new(0,0,TorsoBlue)
  57. print(BrickColor.new(.5,.5,TorsoBlue))
  58.  
  59. function swait(num)
  60. if num==0 or num==nil then
  61. --if Stagger.Value==false or Stun.Value<=100 then
  62. game:service'RunService'.Stepped:wait(0)
  63. --end
  64. else
  65. for i=0,num do
  66. game:service'RunService'.Stepped:wait(0)
  67. --[[if Stagger.Value==true or Stun.Value>=100 then
  68. break
  69. end]]
  70. end
  71. end
  72. end
  73.  
  74. if Character:findFirstChild("Cherubim",true) ~= nil then
  75. Character:findFirstChild("Cherubim",true).Parent = nil
  76. end
  77. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  78. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  79. end
  80. if Character:findFirstChild("Stats",true) ~= nil then
  81. Character:findFirstChild("Stats",true).Parent = nil
  82. end
  83. local Stats=Instance.new("BoolValue")
  84. Stats.Name="Stats"
  85. Stats.Parent=Character
  86. local Atk=Instance.new("NumberValue")
  87. Atk.Name="Damage"
  88. Atk.Parent=Stats
  89. Atk.Value=1
  90. local Def=Instance.new("NumberValue")
  91. Def.Name="Defense"
  92. Def.Parent=Stats
  93. Def.Value=1
  94. local Speed=Instance.new("NumberValue")
  95. Speed.Name="Speed"
  96. Speed.Parent=Stats
  97. Speed.Value=1
  98. local Mvmt=Instance.new("NumberValue")
  99. Mvmt.Name="Movement"
  100. Mvmt.Parent=Stats
  101. Mvmt.Value=1
  102. local Block=Instance.new("BoolValue")
  103. Block.Name="Block"
  104. Block.Parent=Stats
  105. Block.Value=false
  106. local Stun=Instance.new("NumberValue")
  107. Stun.Name="Stun"
  108. Stun.Parent=Stats
  109. Stun.Value=0
  110. local Stunned=Instance.new("BoolValue")
  111. Stunned.Name="Stunned"
  112. Stunned.Parent=Stats
  113. Stunned.Value=false
  114. local Stagger=Instance.new("BoolValue")
  115. Stagger.Name="Stagger"
  116. Stagger.Parent=Stats
  117. Stagger.Value=false
  118. local StaggerHit=Instance.new("BoolValue")
  119. StaggerHit.Name="StaggerHit"
  120. StaggerHit.Parent=Stats
  121. StaggerHit.Value=false
  122. local RecentEnemy=Instance.new("ObjectValue")
  123. RecentEnemy.Name="RecentEnemy"
  124. RecentEnemy.Parent=Stats
  125. RecentEnemy.Value=nil
  126.  
  127. function NoOutline(Part)
  128. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  129. end
  130.  
  131. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  132. local fp=it("Part")
  133. fp.formFactor=formfactor
  134. fp.Parent=parent
  135. fp.Reflectance=reflectance
  136. fp.Transparency=transparency
  137. fp.CanCollide=false
  138. fp.Locked=true
  139. fp.BrickColor=brickcolor
  140. fp.Name=name
  141. fp.Size=size
  142. fp.Position=Torso.Position
  143. NoOutline(fp)
  144. fp.Material="SmoothPlastic"
  145. fp:BreakJoints()
  146. return fp
  147. end
  148.  
  149. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  150. local mesh=it(Mesh)
  151. mesh.Parent=part
  152. if Mesh=="SpecialMesh" then
  153. mesh.MeshType=meshtype
  154. if meshid~="nil" then
  155. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  156. end
  157. end
  158. mesh.Offset=offset
  159. mesh.Scale=scale
  160. return mesh
  161. end
  162.  
  163. function weld(parent,part0,part1,c0)
  164. local weld=it("Weld")
  165. weld.Parent=parent
  166. weld.Part0=part0
  167. weld.Part1=part1
  168. weld.C0=c0
  169. return weld
  170. end
  171.  
  172. local Color1=Torso.BrickColor
  173.  
  174. local fengui=it("GuiMain")
  175. fengui.Parent=Player.PlayerGui
  176. fengui.Name="WeaponGUI"
  177. local fenframe=it("Frame")
  178. fenframe.Parent=fengui
  179. fenframe.BackgroundColor3=Color3.new(255,255,255)
  180. fenframe.BackgroundTransparency=1
  181. fenframe.BorderColor3=Color3.new(17,17,17)
  182. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  183. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  184. local fenbarmana1=it("TextLabel")
  185. fenbarmana1.Parent=fenframe
  186. fenbarmana1.Text=" "
  187. fenbarmana1.BackgroundTransparency=0
  188. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  189. fenbarmana1.SizeConstraint="RelativeXY"
  190. fenbarmana1.TextXAlignment="Center"
  191. fenbarmana1.TextYAlignment="Center"
  192. fenbarmana1.Position=UDim2.new(0,0,0,0)
  193. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  194. local fenbarmana2=it("TextLabel")
  195. fenbarmana2.Parent=fenframe
  196. fenbarmana2.Text=" "
  197. fenbarmana2.BackgroundTransparency=0
  198. fenbarmana2.BackgroundColor3=BrickColor.new("Teal").Color
  199. fenbarmana2.SizeConstraint="RelativeXY"
  200. fenbarmana2.TextXAlignment="Center"
  201. fenbarmana2.TextYAlignment="Center"
  202. fenbarmana2.Position=UDim2.new(0,0,0,0)
  203. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  204. local fenbarmana3=it("TextLabel")
  205. fenbarmana3.Parent=fenframe
  206. fenbarmana3.Text=" "
  207. fenbarmana3.BackgroundTransparency=0
  208. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  209. fenbarmana3.SizeConstraint="RelativeXY"
  210. fenbarmana3.TextXAlignment="Center"
  211. fenbarmana3.TextYAlignment="Center"
  212. fenbarmana3.Position=UDim2.new(0,0,0,0)
  213. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  214. local fenbarmana4=it("TextLabel")
  215. fenbarmana4.Parent=fenframe
  216. fenbarmana4.Text="Mana("..mana..")"
  217. fenbarmana4.BackgroundTransparency=1
  218. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  219. fenbarmana4.SizeConstraint="RelativeXY"
  220. fenbarmana4.TextXAlignment="Center"
  221. fenbarmana4.TextYAlignment="Center"
  222. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  223. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  224. fenbarmana4.FontSize="Size9"
  225. fenbarmana4.TextStrokeTransparency=0
  226. fenbarmana4.TextColor=BrickColor.new("White")
  227.  
  228. local modelzorz=Instance.new("Model")
  229. modelzorz.Parent=Character
  230. modelzorz.Name="Cherubim"
  231.  
  232. local handle=part(3,modelzorz,0,0.5,TorsoColor,"Handle",vt())
  233. local prt1=part(3,modelzorz,0,0,TorsoColor,"Part01",vt())
  234. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part02",vt())
  235. local prt3=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part03",vt())
  236. local prt4=part(3,modelzorz,0,0,BrickColor.new("Teal"),"Part04",vt())
  237. local prt5=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part05",vt())
  238. local prt6=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part06",vt())
  239. local prt7=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part07",vt())
  240. local prt11=part(3,modelzorz,0,0,BrickColor.new("Teal"),"Part11",vt())
  241. local prt12=part(3,modelzorz,0,0,BrickColor.new("Teal"),"Part12",vt())
  242. local prt13=part(3,modelzorz,0,0,BrickColor.new("Teal"),"Part13",vt())
  243. local prt14=part(3,modelzorz,0,0,BrickColor.new(.5,.5,TorsoBlue),"Part14",vt())
  244. local prt15=part(3,modelzorz,0,0,BrickColor.new(.5,.5,TorsoBlue),"Part15",vt())
  245. local prt16=part(3,modelzorz,0,0,BrickColor.new(.5,.5,TorsoBlue),"Part16",vt())
  246. local prt17=part(3,modelzorz,0,0,BrickColor.new(.5,.5,TorsoBlue),"Part17",vt())
  247.  
  248. local msh1=mesh("SpecialMesh",prt1,"Head","nil",vt(0,0,0),vt(2,25,2))
  249. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1,30,1))
  250. local msh3=mesh("SpecialMesh",prt3,"Head","nil",vt(0,0,0),vt(2.5,4,2.5))
  251. local msh4=mesh("CylinderMesh",prt4,"","",vt(0,0,0),vt(2.7,1.5,2.7))
  252. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(3,5,8))
  253. local msh6=mesh("SpecialMesh",prt6,"Wedge","nil",vt(0,0,0),vt(3,3,4))
  254. local msh7=mesh("SpecialMesh",prt7,"Wedge","nil",vt(0,0,0),vt(3,3,4))
  255. local msh11=mesh("SpecialMesh",prt11,"Sphere","nil",vt(0,0,0),vt(4,4,3.5))
  256. local msh12=mesh("SpecialMesh",prt12,"Sphere","nil",vt(0,0,0),vt(2,4,2))
  257. local msh13=mesh("SpecialMesh",prt13,"Sphere","nil",vt(0,0,0),vt(2,4,2))
  258. local msh14=mesh("SpecialMesh",prt14,"FileMesh","92135508",vt(0,0,0),vt(.5,.5,.5))
  259. local msh15=mesh("SpecialMesh",prt15,"FileMesh","92135508",vt(0,0,0),vt(.5,.5,.5))
  260. local msh16=mesh("SpecialMesh",prt16,"FileMesh","92135524",vt(0,0,0),vt(.5,.5,.5))
  261. local msh17=mesh("SpecialMesh",prt17,"FileMesh","92135524",vt(0,0,0),vt(.5,.5,.5))
  262.  
  263. --local wld1=weld(prt1,prt1,Torso,euler(0,0,0)*cf(0,0,5))
  264. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  265. --local handlewld=weld(handle,handle,RightArm,euler(1.57,0,0)*cf(0,1,0))
  266. local handlewld=weld(handle,handle,Torso,euler(2.1,1.57,0)*cf(1,-1,-.5))
  267. local wld1=weld(prt1,prt1,handle,cf(0,0,0)*euler(0,0,0))
  268. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  269. local wld3=weld(prt3,prt3,prt1,euler(0,0,0)*cf(0,3,0))
  270. local wld4=weld(prt4,prt4,prt3,euler(0,0,0)*cf(0,.25,0))
  271. local wld5=weld(prt5,prt5,prt1,euler(0,0,0)*cf(0,-2.8,0))
  272. local wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-.8,.4))
  273. local wld7=weld(prt7,prt7,prt5,euler(0,3.14,0)*cf(0,-.8,-.4))
  274. local wld11=weld(prt11,prt11,prt5,euler(0,0,1.57)*cf(0,-0.2,0))
  275. local wld12=weld(prt12,prt12,prt5,euler(0,0,1.57)*cf(0,0.1,0.5))
  276. local wld13=weld(prt13,prt13,prt5,euler(0,0,1.57)*cf(0,0.1,-0.5))
  277. local wld14=weld(prt14,prt14,prt5,euler(3.14,1.57,0)*cf(0.4,0.6,-2))
  278. local wld15=weld(prt15,prt15,prt5,euler(3.14,-1.57,0)*cf(-0.4,0.6,2))
  279. local wld16=weld(prt16,prt16,prt5,euler(3.14,1.57,0)*cf(0.4,0.6,2))
  280. local wld17=weld(prt17,prt17,prt5,euler(3.14,-1.57,0)*cf(-0.4,0.6,-2))
  281.  
  282. num=0
  283. num2=0
  284. num3=0
  285. num4=0
  286. num5=2
  287. for i=1,4 do
  288. local prt8=part(3,modelzorz,0.7,0,BrickColor.new("Teal"),"Part08",vt())
  289. local prt9=part(3,modelzorz,0.7,0,BrickColor.new("Teal"),"Part09",vt())
  290. local prt10=part(3,modelzorz,0.7,0,BrickColor.new("Teal"),"Part10",vt())
  291. local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(1+num4,5+num,6+num3))
  292. local msh9=mesh("SpecialMesh",prt9,"Wedge","nil",vt(0,0,0),vt(1+num4,4,3+(num3/2)))
  293. local msh10=mesh("SpecialMesh",prt10,"Wedge","nil",vt(0,0,0),vt(1+num4,4,3+(num3/2)))
  294. local wld8=weld(prt8,prt8,prt5,euler(0,0,0)*cf(0,-.8-num2,0))
  295. local wld9=weld(prt9,prt9,prt8,euler(0,0,0)*cf(0,-.9-num*.1,.3+((num3*.1)/2)))
  296. local wld10=weld(prt10,prt10,prt8,euler(0,3.14,0)*cf(0,-.9-num*.1,-.3-((num3*.1)/2)))
  297. num=num+.6
  298. num2=num2+.3*num5
  299. num3=num3-.5
  300. num4=num4-.2
  301. num5=num5+1
  302. end
  303.  
  304. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  305. --hitbox.Anchored=true
  306. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  307. hitbox2.Anchored=true
  308. local hitboxCF=cf(0,0,0)
  309.  
  310. if (script.Parent.className~="HopperBin") then
  311. Tool=Instance.new("HopperBin")
  312. Tool.Parent=Backpack
  313. Tool.Name="Cherubim"
  314. script.Parent=Tool
  315. end
  316. Bin=script.Parent
  317.  
  318. local bodvel=Instance.new("BodyVelocity")
  319. local bg=Instance.new("BodyGyro")
  320.  
  321. so = function(id,par,vol,pit)
  322. coroutine.resume(coroutine.create(function()
  323. local sou = Instance.new("Sound",par or workspace)
  324. sou.Volume=vol
  325. sou.Pitch=pit or 1
  326. sou.SoundId=id
  327. swait()
  328. sou:play()
  329. game:GetService("Debris"):AddItem(sou,6)
  330. end))
  331. end
  332.  
  333. function clerp(a,b,t)
  334. local qa = {QuaternionFromCFrame(a)}
  335. local qb = {QuaternionFromCFrame(b)}
  336. local ax, ay, az = a.x, a.y, a.z
  337. local bx, by, bz = b.x, b.y, b.z
  338. local _t = 1-t
  339. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  340. end
  341.  
  342. function QuaternionFromCFrame(cf)
  343. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  344. local trace = m00 + m11 + m22
  345. if trace > 0 then
  346. local s = math.sqrt(1 + trace)
  347. local recip = 0.5/s
  348. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  349. else
  350. local i = 0
  351. if m11 > m00 then
  352. i = 1
  353. end
  354. if m22 > (i == 0 and m00 or m11) then
  355. i = 2
  356. end
  357. if i == 0 then
  358. local s = math.sqrt(m00-m11-m22+1)
  359. local recip = 0.5/s
  360. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  361. elseif i == 1 then
  362. local s = math.sqrt(m11-m22-m00+1)
  363. local recip = 0.5/s
  364. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  365. elseif i == 2 then
  366. local s = math.sqrt(m22-m00-m11+1)
  367. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  368. end
  369. end
  370. end
  371.  
  372. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  373. local xs, ys, zs = x + x, y + y, z + z
  374. local wx, wy, wz = w*xs, w*ys, w*zs
  375. local xx = x*xs
  376. local xy = x*ys
  377. local xz = x*zs
  378. local yy = y*ys
  379. local yz = y*zs
  380. local zz = z*zs
  381. 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))
  382. end
  383.  
  384. function QuaternionSlerp(a, b, t)
  385. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  386. local startInterp, finishInterp;
  387. if cosTheta >= 0.0001 then
  388. if (1 - cosTheta) > 0.0001 then
  389. local theta = math.acos(cosTheta)
  390. local invSinTheta = 1/math.sin(theta)
  391. startInterp = math.sin((1-t)*theta)*invSinTheta
  392. finishInterp = math.sin(t*theta)*invSinTheta
  393. else
  394. startInterp = 1-t
  395. finishInterp = t
  396. end
  397. else
  398. if (1+cosTheta) > 0.0001 then
  399. local theta = math.acos(-cosTheta)
  400. local invSinTheta = 1/math.sin(theta)
  401. startInterp = math.sin((t-1)*theta)*invSinTheta
  402. finishInterp = math.sin(t*theta)*invSinTheta
  403. else
  404. startInterp = t-1
  405. finishInterp = t
  406. end
  407. end
  408. 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
  409. end
  410.  
  411. function hideanim()
  412. equipped=false
  413. for i=0,1,0.1 do
  414. swait()
  415. handlewld.C0=clerp(handlewld.C0,euler(1.5,1.4,0)*euler(0,0,-.8)*cf(0,1,0),.3)
  416. wld1.C0=clerp(wld1.C0,cf(0,-1,0)*euler(0,0,0),.3)
  417. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,.4),.3)
  418. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  419. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.3)
  420. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  421. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.4,0,-.4),.3)
  422. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  423. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  424. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  425. end
  426. Mvmt.Value=Mvmt.Value+.1
  427. handlewld.Part1=Torso
  428. handlewld.C0=euler(2.1,1.57,0)*cf(1,-1,-.5)
  429. wld1.C0=cf(0,0,0)*euler(0,0,0)
  430. for i=0,1,0.3 do
  431. swait()
  432. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  433. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  435. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  436. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  437. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  438. end
  439. end
  440.  
  441. function equipanim()
  442. equipped=true
  443. for i=0,1,0.1 do
  444. swait()
  445. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,.4),.3)
  446. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  447. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.3)
  448. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  449. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.3,0,-.4),.3)
  450. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  451. end
  452. handlewld.Part1=LeftArm
  453. handlewld.C0=euler(1.5,1.4,0)*euler(0,0,-1)*cf(0,1,0)
  454. wld1.C0=cf(0,-1,0)*euler(0,0,0)
  455. Mvmt.Value=Mvmt.Value-.1
  456. end
  457.  
  458. function StaggerAnim()
  459. attack=true
  460. for i=1,math.random(2,4) do
  461. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  462. end
  463. for i=0,1,0.35 do
  464. swait()
  465. --Torso.Velocity=RootPart.CFrame.lookVector*-40
  466. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.1,0,0),.3)
  467. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
  468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.4)*euler(0,.4,0),.3)
  469. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  470. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.9)*euler(0,.7,0),.3)
  471. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  472. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.4,-.2,.4),.3)
  473. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  474. end
  475. for i=0,1,0.2 do
  476. swait()
  477. --Torso.Velocity=RootPart.CFrame.lookVector*-40
  478. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,0,0),.3)
  479. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.4,0,.6),.3)
  480. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.6,0,.6)*euler(0,.4,0),.3)
  481. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  482. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.9)*euler(0,.7,0),.3)
  483. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  484. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.5,-.2,.5),.3)
  485. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  486. end
  487. for i=0,1,0.1 do
  488. swait()
  489. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  490. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(.1,0,0),.3)
  491. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,0,0),.3)
  492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,.4),.3)
  493. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-.4),.3)
  494. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  495. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.3,0),.3)
  496. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  497. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.2,0)*euler(-.4,0,1.2),.3)
  498. LH.C0=clerp(LH.C0,cf(-1,.4,-.8)*euler(0,-1.57,0)*euler(0,.2,-.1),.3)
  499. end
  500. swait(40)
  501. combo=0
  502. attack=false
  503. end
  504.  
  505. function StaggerHitt()
  506. attack=true
  507. for i=1,math.random(2,4) do
  508. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  509. end
  510. for i=0,1,0.1 do
  511. swait()
  512. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.1,0,0),.3)
  513. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
  514. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.4)*euler(0,.4,0),.3)
  515. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  516. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.9)*euler(0,.7,0),.3)
  517. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  518. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.2,-.2),.3)
  519. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  520. end
  521. attack=false
  522. end
  523.  
  524. function StunAnim()
  525. attack=true
  526. Stunned.Value=true
  527. for i=0,1,0.3 do
  528. swait()
  529. Humanoid.WalkSpeed=0
  530. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  531. wld1.C0=clerp(wld1.C0,cf(0,-.5,0),.2)
  532. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  533. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  534. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  535. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  536. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  537. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  538. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  539. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  540. end
  541. for i=0,1,0.3 do
  542. swait()
  543. Humanoid.WalkSpeed=0
  544. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  545. wld1.C0=clerp(wld1.C0,cf(0,-.5,0),.2)
  546. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  547. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  548. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  549. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  550. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  551. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  552. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  553. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  554. end
  555. for i=0,1,0.3 do
  556. swait()
  557. Humanoid.WalkSpeed=0
  558. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  559. wld1.C0=clerp(wld1.C0,cf(0,-.5,0),.2)
  560. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  561. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  562. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  563. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  564. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  565. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  566. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  567. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  568. end
  569. gairo=Instance.new("BodyGyro")
  570. gairo.Parent=RootPart
  571. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  572. gairo.P=20e+003
  573. gairo.cframe=RootPart.CFrame
  574. v=Instance.new("BodyVelocity",RootPart)
  575. v.Name="BodVel"
  576. v.P=2000
  577. v.maxForce=Vector3.new(500000000,50000000,500000000)
  578. v.velocity=vt(0,-50,0)
  579. for i=0,1,0.1 do
  580. swait()
  581. Humanoid.WalkSpeed=0
  582. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  583. wld1.C0=clerp(wld1.C0,cf(0,-.5,0),.2)
  584. v.velocity=vt(0,-50,0)
  585. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  586. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  587. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  588. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  589. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  590. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  591. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  592. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  593. end
  594. for i=1,70 do
  595. swait()
  596. Humanoid.WalkSpeed=0
  597. v.velocity=vt(0,-50,0)
  598. end
  599. v.velocity=vt(0,0,0)
  600. for i=0,1,0.2 do
  601. swait()
  602. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  603. wld1.C0=clerp(wld1.C0,cf(0,-.5,0),.2)
  604. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  605. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  606. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  607. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  608. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  609. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  610. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  611. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  612. end
  613. gairo.Parent=nil
  614. v.Parent=nil
  615. combo=0
  616. Stunned.Value=false
  617. attack=false
  618. end
  619.  
  620. function dattackone()
  621. attack=true
  622. so("http://roblox.com/asset/?id=199145095",LeftArm,1,1)
  623. for i=0,1,0.15 do
  624. swait()
  625. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  626. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(-1,0,0),.3)
  627. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.3)
  628. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  629. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.2),.3)
  630. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  631. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-.4),.3)
  632. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  633. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  634. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  635. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  636. break
  637. end
  638. end
  639. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(10,15),nil,true) end)
  640. hitbox.Parent=modelzorz
  641. hitbox.Size=vt(.5,4.5,1.2)
  642. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  643. hitbox.CFrame=hitboxCF
  644. blcf=nil
  645. scfr=nil
  646. for i=0,1,0.1 do
  647. swait()
  648. local blcf = prt5.CFrame*cf(0,2.5,0)
  649. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  650. local h = 5
  651. 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)
  652. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  653. 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)
  654. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  655. scfr = blcf
  656. elseif not scfr then
  657. scfr = blcf
  658. end
  659. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  660. hitbox.CFrame=hitboxCF
  661. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.35)
  662. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(.8,0,0),.35)
  663. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.35)
  664. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.35)
  665. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.35)
  666. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  667. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(.5,0,-.1)*euler(0,.5,0),.35)
  668. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  669. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.35)
  670. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.35)
  671. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  672. break
  673. end
  674. end
  675. con1:disconnect()
  676. hitbox.Parent=nil
  677. attack=false
  678. end
  679.  
  680. function dattacktwo()
  681. so("http://roblox.com/asset/?id=199145146",LeftArm,1,1)
  682. attack=true
  683. for i=0,1,0.15 do
  684. swait()
  685. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  686. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(-1,0,0),.3)
  687. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.8),.3)
  688. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.3)
  689. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,0,.5),.3)
  690. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  691. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.8)*euler(0,-.5,0),.3)
  692. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  693. RH.C0=clerp(RH.C0,cf(.8,-1,.4)*euler(0,1.57,0)*euler(0,-.8,0),.3)
  694. LH.C0=clerp(LH.C0,cf(-.8,-1,-.4)*euler(0,-1.57,0)*euler(0,-.8,0),.3)
  695. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  696. break
  697. end
  698. end
  699. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(20,25),"Normal",RootPart,.5,2,math.random(10,15),nil,true) end)
  700. hitbox.Parent=modelzorz
  701. hitbox.Size=vt(.5,4.5,1.2)
  702. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  703. hitbox.CFrame=hitboxCF
  704. blcf=nil
  705. scfr=nil
  706. for i=0,1,0.1 do
  707. swait()
  708. local blcf = prt5.CFrame*cf(0,2.5,0)
  709. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  710. local h = 5
  711. 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)
  712. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  713. 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)
  714. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  715. scfr = blcf
  716. elseif not scfr then
  717. scfr = blcf
  718. end
  719. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  720. hitbox.CFrame=hitboxCF
  721. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  722. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(1,0,0),.3)
  723. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.8),.3)
  724. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.8),.3)
  725. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.2),.3)
  726. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  727. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(1,0,-.5)*euler(0,.5,0),.3)
  728. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  729. RH.C0=clerp(RH.C0,cf(.8,-1,-.4)*euler(0,1.57,0)*euler(0,.8,0),.3)
  730. LH.C0=clerp(LH.C0,cf(-.8,-1,.4)*euler(0,-1.57,0)*euler(0,.8,0),.3)
  731. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  732. break
  733. end
  734. end
  735. con1:disconnect()
  736. hitbox.Parent=nil
  737. attack=false
  738. end
  739.  
  740. function dattackthree()
  741. so("http://roblox.com/asset/?id=199145204",LeftArm,1,1)
  742. attack=true
  743. for i=0,1,0.15 do
  744. swait()
  745. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  746. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(-.5,0,0),.3)
  747. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  748. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  749. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.3)
  750. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  751. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(2,0,1)*euler(0,-1,0),.3)
  752. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  753. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  754. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  755. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  756. break
  757. end
  758. end
  759. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,15),nil,true) end)
  760. hitbox.Parent=modelzorz
  761. hitbox.Size=vt(.5,4.5,1.2)
  762. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  763. hitbox.CFrame=hitboxCF
  764. blcf=nil
  765. scfr=nil
  766. for i=0,1,0.1 do
  767. swait()
  768. local blcf = prt5.CFrame*cf(0,2.5,0)
  769. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  770. local h = 5
  771. 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)
  772. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  773. 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)
  774. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  775. scfr = blcf
  776. elseif not scfr then
  777. scfr = blcf
  778. end
  779. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  780. hitbox.CFrame=hitboxCF
  781. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  782. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(.5,0,0),.3)
  783. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.3)
  784. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  785. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3)
  786. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  787. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-1)*euler(0,-.6,0),.3)
  788. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  789. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  790. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  791. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  792. break
  793. end
  794. end
  795. con1:disconnect()
  796. hitbox.Parent=nil
  797. attack=false
  798. end
  799.  
  800. function dattackfour()
  801. so("http://roblox.com/asset/?id=199145327",LeftArm,1,1)
  802. attack=true
  803. blcf=nil
  804. scfr=nil
  805. for i=0,1,0.1 do
  806. swait()
  807. local blcf = prt5.CFrame*cf(0,2.5,0)
  808. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  809. local h = 5
  810. 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)
  811. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  812. 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)
  813. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  814. scfr = blcf
  815. elseif not scfr then
  816. scfr = blcf
  817. end
  818. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  819. --wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(-.57,0,0),.2)
  820. wld1.C0=cf(0,-.5+1.5*i,0)*euler(-.57+7*i,0,0)
  821. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,.2),.2)
  822. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  823. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1,0,-1),.2)
  824. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  825. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.8,0,0),.2)
  826. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  827. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  828. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  829. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  830. break
  831. end
  832. end
  833. Mvmt.Value=Mvmt.Value-1
  834. for i=0,1,0.15 do
  835. swait()
  836. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  837. wld1.C0=clerp(wld1.C0,cf(0,.2,0)*euler(0,0,0),.4)
  838. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  839. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  840. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.4)
  841. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  842. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0),.4)
  843. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  844. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  845. break
  846. end
  847. end
  848. hitfloor=nil
  849. while hitfloor==nil do
  850. swait()
  851. hitfloor,posfloor=rayCast(prt4.Position,(CFrame.new(prt4.Position,prt4.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  852. end
  853. MagicWave(BrickColor.new("Teal"),cf(prt4.Position),1,1,1,1.2,.4,1.2,.05)
  854. MagicBlock(BrickColor.new("Teal"),cf(prt4.Position),1,1,1,1,1,1,.05,1)
  855. so("http://roblox.com/asset/?id=199145264",LeftArm,1,1)
  856. MagniDamage(prt4,20,5,10,math.random(30,40),"Knockdown2",true)
  857. swait(10)
  858. Mvmt.Value=Mvmt.Value+1
  859. attack=false
  860. end
  861.  
  862. function oattackone()
  863. so("http://roblox.com/asset/?id=199145095",LeftArm,1,1)
  864. attack=true
  865. for i=0,1,0.15 do
  866. swait()
  867. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  868. wld1.C0=clerp(wld1.C0,cf(0,1,0)*euler(-.5,0,0),.3)
  869. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.3)
  870. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,.7),.3)
  871. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.5),.3)
  872. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  873. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.4)*euler(0,-.4,0),.3)
  874. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  875. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.7,0),.3)
  876. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.7,0),.3)
  877. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  878. break
  879. end
  880. end
  881. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,10),nil,true) end)
  882. hitbox.Parent=modelzorz
  883. hitbox.Size=vt(.5,4.5,1.2)
  884. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  885. hitbox.CFrame=hitboxCF
  886. blcf=nil
  887. scfr=nil
  888. for i=0,1,0.1 do
  889. swait()
  890. local blcf = prt5.CFrame*cf(0,2.5,0)
  891. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  892. local h = 5
  893. 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)
  894. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  895. 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)
  896. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  897. scfr = blcf
  898. elseif not scfr then
  899. scfr = blcf
  900. end
  901. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  902. hitbox.CFrame=hitboxCF
  903. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  904. wld1.C0=clerp(wld1.C0,cf(0,0,0)*euler(1,0,0),.4)
  905. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(-.1,0,0),.4)
  906. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  907. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.4)
  908. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  909. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,-.4)*euler(0,.2,0),.4)
  910. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  911. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  912. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  913. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  914. break
  915. end
  916. end
  917. con1:disconnect()
  918. hitbox.Parent=nil
  919. attack=false
  920. end
  921.  
  922. function oattacktwo()
  923. so("http://roblox.com/asset/?id=199145146",LeftArm,1,1)
  924. attack=true
  925. for i=0,1,0.15 do
  926. swait()
  927. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  928. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(-.5,0,0),.3)
  929. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  930. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  931. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.3)
  932. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  933. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(2,0,1)*euler(0,-1,0),.3)
  934. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  935. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  936. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  937. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  938. break
  939. end
  940. end
  941. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,10),nil,true) end)
  942. hitbox.Parent=modelzorz
  943. hitbox.Size=vt(.5,4.5,1.2)
  944. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  945. hitbox.CFrame=hitboxCF
  946. blcf=nil
  947. scfr=nil
  948. for i=0,1,0.1 do
  949. swait()
  950. local blcf = prt5.CFrame*cf(0,2.5,0)
  951. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  952. local h = 5
  953. 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)
  954. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  955. 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)
  956. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  957. scfr = blcf
  958. elseif not scfr then
  959. scfr = blcf
  960. end
  961. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  962. hitbox.CFrame=hitboxCF
  963. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  964. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(.5,0,0),.3)
  965. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.3)
  966. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  967. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3)
  968. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  969. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-1)*euler(0,-.6,0),.3)
  970. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  971. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  972. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  973. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  974. break
  975. end
  976. end
  977. con1:disconnect()
  978. hitbox.Parent=nil
  979. attack=false
  980. end
  981.  
  982. function oattackthree()
  983. attack=true
  984. so("http://roblox.com/asset/?id=199145327",LeftArm,1,1)
  985. for i=0,1,0.15 do
  986. swait()
  987. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  988. wld1.C0=clerp(wld1.C0,cf(0,1,0)*euler(.5,0,0),.3)
  989. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  990. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  991. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.3)
  992. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  993. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(1.57,0,1)*euler(0,-1.57,0),.3)
  994. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  995. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  996. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  997. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  998. break
  999. end
  1000. end
  1001. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(10,20),"Normal",RootPart,.5,2,math.random(10,15),nil,true) end)
  1002. hitbox.Parent=modelzorz
  1003. hitbox.Size=vt(.5,4.5,1.2)
  1004. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  1005. hitbox.CFrame=hitboxCF
  1006. blcf=nil
  1007. scfr=nil
  1008. for i=0,1,0.1 do
  1009. swait()
  1010. local blcf = prt5.CFrame*cf(0,2.5,0)
  1011. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  1012. local h = 5
  1013. 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)
  1014. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1015. 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)
  1016. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1017. scfr = blcf
  1018. elseif not scfr then
  1019. scfr = blcf
  1020. end
  1021. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  1022. hitbox.CFrame=hitboxCF
  1023. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1024. wld1.C0=clerp(wld1.C0,cf(0,1,0)*euler(.5,0,0),.3)
  1025. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1026. RootJoint.C0=RootCF*euler(0,0,-.5+6.28*i)
  1027. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  1028. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1029. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.57,0),.3)
  1030. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1031. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1032. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1033. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1034. break
  1035. end
  1036. end
  1037. for i=0,1,0.1 do
  1038. swait()
  1039. local blcf = prt5.CFrame*cf(0,2.5,0)
  1040. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  1041. local h = 5
  1042. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1043. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1044. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1045. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1046. scfr = blcf
  1047. elseif not scfr then
  1048. scfr = blcf
  1049. end
  1050. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  1051. hitbox.CFrame=hitboxCF
  1052. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1053. wld1.C0=clerp(wld1.C0,cf(0,1,0)*euler(1,0,0),.3)
  1054. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1055. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1056. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  1057. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1058. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.3,0,-1.57)*euler(0,-1.57,0),.3)
  1059. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1060. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1061. break
  1062. end
  1063. end
  1064. con1:disconnect()
  1065. hitbox.Parent=nil
  1066. attack=false
  1067. end
  1068.  
  1069. function oattackfour()
  1070. so("http://roblox.com/asset/?id=199145327",LeftArm,1,1.1)
  1071. attack=true
  1072. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(-20,-10),"Normal",RootPart,.2,2,math.random(5,10),nil,true) end)
  1073. hitbox.Parent=modelzorz
  1074. hitbox.Size=vt(.5,4.5,1.2)
  1075. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  1076. hitbox.CFrame=hitboxCF
  1077. blcf=nil
  1078. scfr=nil
  1079. for i=0,1,0.1 do
  1080. swait()
  1081. local blcf = prt5.CFrame*cf(0,2.5,0)
  1082. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  1083. local h = 5
  1084. 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)
  1085. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1086. 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)
  1087. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1088. scfr = blcf
  1089. elseif not scfr then
  1090. scfr = blcf
  1091. end
  1092. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  1093. hitbox.CFrame=hitboxCF
  1094. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1095. wld1.C0=clerp(wld1.C0,cf(0,1,0)*euler(.2,0,0),.3)
  1096. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  1097. --RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1098. RootJoint.C0=RootCF*euler(0,0,.5-7.28*i)
  1099. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.6),.3)
  1100. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1101. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(.6,0,1)*euler(0,.8,0),.3)
  1102. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1103. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  1104. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1105. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1106. break
  1107. end
  1108. end
  1109. con1:disconnect()
  1110. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(30,50),"Normal",RootPart,.5,2,math.random(10,15),nil,true) end)
  1111. so("http://roblox.com/asset/?id=199145146",LeftArm,1,1.1)
  1112. for i=0,1,0.1 do
  1113. swait()
  1114. local blcf = prt5.CFrame*cf(0,2.5,0)
  1115. if scfr and (prt5.Position-scfr.p).magnitude > .1 then
  1116. local h = 5
  1117. 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)
  1118. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1119. 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)
  1120. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1121. scfr = blcf
  1122. elseif not scfr then
  1123. scfr = blcf
  1124. end
  1125. hitboxCF=prt5.CFrame*cf(0,2.8,0)
  1126. hitbox.CFrame=hitboxCF
  1127. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1128. wld1.C0=clerp(wld1.C0,cf(0,0,0)*euler(1.4,0,0),.3)
  1129. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.3)
  1130. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.3)
  1131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.6),.3)
  1132. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1133. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0,-1.4)*euler(0,1,0),.3)
  1134. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1135. RH.C0=clerp(RH.C0,cf(.5,-1,-.2)*euler(0,1.57,0)*euler(-.4,1.57,0),.2)
  1136. LH.C0=clerp(LH.C0,cf(-.5,-1,.2)*euler(0,-1.57,0)*euler(.2,1.57,0),.2)
  1137. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1138. break
  1139. end
  1140. end
  1141. con1:disconnect()
  1142. hitbox.Parent=nil
  1143. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1144. else
  1145. swait(10)
  1146. end
  1147. attack=false
  1148. end
  1149.  
  1150. function ModeChange()
  1151. attack=true
  1152. for i=0,1,0.1 do
  1153. swait()
  1154. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1155. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(.5,0,0),.3)
  1156. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0),.3)
  1157. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1158. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.8,0,-1)*euler(0,1,0),.3)
  1159. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1160. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.2,0,1.1)*euler(0,-1,0),.3)
  1161. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1162. RH.C0=clerp(RH.C0,RHC0,.4)
  1163. RH.C1=clerp(RH.C1,RHC1,.4)
  1164. LH.C0=clerp(LH.C0,LHC0,.4)
  1165. LH.C1=clerp(LH.C1,LHC1,.4)
  1166. end
  1167. if Mode=="Defensive" then
  1168. Mode="Offensive"
  1169. else
  1170. Mode="Defensive"
  1171. end
  1172. for i=0,1,0.05 do
  1173. swait()
  1174. if Mode=="Offensive" then
  1175. wld14.C0=clerp(wld14.C0,euler(3.14,1.57,0)*cf(0.4,0.6,-2)*euler(0,.5,0),.3)
  1176. wld15.C0=clerp(wld15.C0,euler(3.14,-1.57,0)*cf(-0.4,0.6,2)*euler(0,.5,0),.3)
  1177. wld16.C0=clerp(wld16.C0,euler(3.14,1.57,0)*cf(0.4,0.6,2)*euler(0,-.5,0),.3)
  1178. wld17.C0=clerp(wld17.C0,euler(3.14,-1.57,0)*cf(-0.4,0.6,-2)*euler(0,-.5,0),.3)
  1179. else
  1180. wld14.C0=clerp(wld14.C0,euler(3.14,1.57,0)*cf(0.4,0.6,-2),.3)
  1181. wld15.C0=clerp(wld15.C0,euler(3.14,-1.57,0)*cf(-0.4,0.6,2),.3)
  1182. wld16.C0=clerp(wld16.C0,euler(3.14,1.57,0)*cf(0.4,0.6,2),.3)
  1183. wld17.C0=clerp(wld17.C0,euler(3.14,-1.57,0)*cf(-0.4,0.6,-2),.3)
  1184. end
  1185. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1186. wld1.C0=clerp(wld1.C0,cf(0,1.5,0)*euler(0,0,0),.3)
  1187. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
  1188. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1189. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,0)*euler(0,1.57,0),.3)
  1190. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1191. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,0)*euler(0,1.57,0),.3)
  1192. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1193. end
  1194. attack=false
  1195. end
  1196.  
  1197. function DecreaseStat(Model,Stat,Amount,Duration)
  1198. if Model:findFirstChild("Stats")~=nil then
  1199. if Model.Stats[Stat]~=nil then
  1200. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1201. table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration})
  1202. end
  1203. end
  1204. end
  1205.  
  1206. function GetDist(Part1,Part2,magni)
  1207. local targ=Part1.Position-Part2.Position
  1208. local mag=targ.magnitude
  1209. if mag<=magni then
  1210. return true
  1211. else
  1212. return false
  1213. end
  1214. end
  1215.  
  1216. function MagniDamage(Part,magni,mindam,maxdam,knock,Type,Ranged)
  1217. for _,c in pairs(workspace:children()) do
  1218. local hum=c:findFirstChild("Humanoid")
  1219. if hum~=nil then
  1220. local head=c:findFirstChild("Torso")
  1221. if head~=nil then
  1222. local targ=head.Position-Part.Position
  1223. local mag=targ.magnitude
  1224. if mag<=magni and c.Name~=Player.Name then
  1225. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,math.random(5,10),nil,nil,Ranged)
  1226. end
  1227. end
  1228. end
  1229. end
  1230. end
  1231.  
  1232. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1233. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1234. end
  1235.  
  1236. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1237. LastPoint=Point
  1238. function effect(Color,Ref,LP,P1,returnn)
  1239. if LP==nil or P1==nil then return end
  1240. local effectsmsh=Instance.new("CylinderMesh")
  1241. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1242. effectsmsh.Name="Mesh"
  1243. local effectsg=Instance.new("Part")
  1244. NoOutline(effectsg)
  1245. effectsg.formFactor=3
  1246. effectsg.CanCollide=false
  1247. effectsg.Name="Eff"
  1248. effectsg.Locked=true
  1249. effectsg.Anchored=true
  1250. effectsg.Size=Vector3.new(0.5,1,0.5)
  1251. effectsg.Parent=workspace
  1252. effectsmsh.Parent=effectsg
  1253. effectsg.BrickColor=BrickColor.new(Color)
  1254. effectsg.Reflectance=Ref
  1255. local point1=P1
  1256. local mg=(LP.p - point1.p).magnitude
  1257. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1258. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1259. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1260. game:GetService("Debris"):AddItem(effectsg,2)
  1261. if returnn then return effectsg end
  1262. if not returnn then
  1263. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  1264. end
  1265. end
  1266.  
  1267. local function CFrameFromTopBack(at, top, back)
  1268. local right = top:Cross(back)
  1269. return CFrame.new(at.x, at.y, at.z,
  1270. right.x, top.x, back.x,
  1271. right.y, top.y, back.y,
  1272. right.z, top.z, back.z)
  1273. end
  1274.  
  1275. function Triangle(a, b, c)
  1276. local edg1 = (c-a):Dot((b-a).unit)
  1277. local edg2 = (a-b):Dot((c-b).unit)
  1278. local edg3 = (b-c):Dot((a-c).unit)
  1279. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1280. a, b, c = a, b, c
  1281. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1282. a, b, c = b, c, a
  1283. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1284. a, b, c = c, a, b
  1285. else
  1286. assert(false, "unreachable")
  1287. end
  1288.  
  1289. local len1 = (c-a):Dot((b-a).unit)
  1290. local len2 = (b-a).magnitude - len1
  1291. local width = (a + (b-a).unit*len1 - c).magnitude
  1292.  
  1293. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1294.  
  1295. local list = {}
  1296.  
  1297. if len1 > 0.01 then
  1298. local w1 = Instance.new('WedgePart', m)
  1299. game:GetService("Debris"):AddItem(w1,5)
  1300. w1.Material = "SmoothPlastic"
  1301. w1.FormFactor = 'Custom'
  1302. w1.BrickColor = BrickColor.new("Teal")
  1303. w1.Transparency = 0
  1304. w1.Reflectance = 0
  1305. w1.Material = "SmoothPlastic"
  1306. w1.CanCollide = false
  1307. NoOutline(w1)
  1308. local sz = Vector3.new(0.2, width, len1)
  1309. w1.Size = sz
  1310. local sp = Instance.new("SpecialMesh",w1)
  1311. sp.MeshType = "Wedge"
  1312. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1313. w1:BreakJoints()
  1314. w1.Anchored = true
  1315. w1.Parent = workspace
  1316. w1.Transparency = 0.7
  1317. table.insert(Effects,{w1,"Disappear",.05})
  1318. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1319. table.insert(list,w1)
  1320. end
  1321.  
  1322. if len2 > 0.01 then
  1323. local w2 = Instance.new('WedgePart', m)
  1324. game:GetService("Debris"):AddItem(w2,5)
  1325. w2.Material = "SmoothPlastic"
  1326. w2.FormFactor = 'Custom'
  1327. w2.BrickColor = BrickColor.new("Teal")
  1328. w2.Transparency = 0
  1329. w2.Reflectance = 0
  1330. w2.Material = "SmoothPlastic"
  1331. w2.CanCollide = false
  1332. NoOutline(w2)
  1333. local sz = Vector3.new(0.2, width, len2)
  1334. w2.Size = sz
  1335. local sp = Instance.new("SpecialMesh",w2)
  1336. sp.MeshType = "Wedge"
  1337. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1338. w2:BreakJoints()
  1339. w2.Anchored = true
  1340. w2.Parent = workspace
  1341. w2.Transparency = 0.7
  1342. table.insert(Effects,{w2,"Disappear",.05})
  1343. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1344. table.insert(list,w2)
  1345. end
  1346. return unpack(list)
  1347. end
  1348.  
  1349. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  1350. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1351. prt.Anchored=true
  1352. prt.CFrame=cframe
  1353. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1354. game:GetService("Debris"):AddItem(prt,5)
  1355. if Type==1 or Type==nil then
  1356. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  1357. elseif Type==2 then
  1358. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  1359. end
  1360. end
  1361.  
  1362. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1363. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1364. prt.Anchored=true
  1365. prt.CFrame=cframe
  1366. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1367. game:GetService("Debris"):AddItem(prt,2)
  1368. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1369. end
  1370.  
  1371. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1372. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1373. prt.Anchored=true
  1374. prt.CFrame=cframe
  1375. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1376. game:GetService("Debris"):AddItem(prt,2)
  1377. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1378. end
  1379.  
  1380. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1381. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1382. prt.Anchored=true
  1383. prt.CFrame=cframe
  1384. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  1385. game:GetService("Debris"):AddItem(prt,2)
  1386. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1387. end
  1388.  
  1389. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  1390. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  1391. prt.Anchored=true
  1392. prt.CFrame=cframe
  1393. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  1394. game:GetService("Debris"):AddItem(prt,2)
  1395. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  1396. end
  1397.  
  1398. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1399. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1400. prt.Anchored=true
  1401. prt.CFrame=cframe
  1402. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1403. game:GetService("Debris"):AddItem(prt,5)
  1404. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1405. end
  1406.  
  1407. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged)
  1408. if hit.Parent==nil then
  1409. return
  1410. end
  1411. if hit.Name=="Hitbox" and hit.Parent~=modelzorz then
  1412. StaggerHit.Value=true
  1413. end
  1414. h=hit.Parent:FindFirstChild("Humanoid")
  1415. for _,v in pairs(hit.Parent:children()) do
  1416. if v:IsA("Humanoid") then
  1417. h=v
  1418. end
  1419. end
  1420. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1421. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1422. end
  1423. if hit.Parent.className=="Hat" then
  1424. hit=hit.Parent.Parent:findFirstChild("Head")
  1425. end
  1426. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1427. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1428. c=Instance.new("ObjectValue")
  1429. c.Name="creator"
  1430. c.Value=game:service("Players").LocalPlayer
  1431. c.Parent=h
  1432. RecentEnemy.Value=hit.Parent
  1433. game:GetService("Debris"):AddItem(c,.5)
  1434. minim=minim*Atk.Value
  1435. maxim=maxim*Atk.Value
  1436. Damage=math.random(minim,maxim)
  1437. blocked=false
  1438. enblock=nil
  1439. Stats=hit.Parent:findFirstChild("Stats")
  1440. if Stats~=nil then
  1441. enblock=Stats:findFirstChild("Block")
  1442. if Stats:findFirstChild("Defense")~=nil then
  1443. Damage=Damage/Stats.Defense.Value
  1444. if Damage<=3 and staghit==true then
  1445. if ranged~=true then
  1446. StaggerHit.Value=true
  1447. end
  1448. end
  1449. end
  1450. if Stats:findFirstChild("Stun")~=nil then
  1451. Stats.Stun.Value=Stats.Stun.Value+incstun
  1452. end
  1453. if Stats:findFirstChild("Stagger")~=nil then
  1454. if stagger==true then
  1455. Stats.Stagger.Value=true
  1456. end
  1457. end
  1458. end
  1459. if enblock~=nil then
  1460. if enblock.Value==true then
  1461. blocked=true
  1462. end
  1463. end
  1464. if blocked==true then
  1465. showDamage(hit.Parent,"Block",.5,BrickColor.new("Bright blue"))
  1466. if ranged~=true then
  1467. enblock.Value=false
  1468. Stagger.Value=true
  1469. end
  1470. else
  1471. Damage=math.floor(Damage)
  1472. h.Health=h.Health-Damage
  1473. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1474. if Type=="NormalDecreaseMvmt1" then
  1475. DecreaseStat(hit.Parent,"Movement",.1,200)
  1476. end
  1477. if Type=="Knockdown" then
  1478. hum=hit.Parent.Humanoid
  1479. hum.PlatformStand=true
  1480. coroutine.resume(coroutine.create(function(HHumanoid)
  1481. swait(1)
  1482. HHumanoid.PlatformStand=false
  1483. end),hum)
  1484. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1485. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1486. local bodvol=Instance.new("BodyVelocity")
  1487. bodvol.velocity=angle*knockback
  1488. bodvol.P=5000
  1489. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1490. bodvol.Parent=hit
  1491. rl=Instance.new("BodyAngularVelocity")
  1492. rl.P=3000
  1493. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1494. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1495. rl.Parent=hit
  1496. game:GetService("Debris"):AddItem(bodvol,.5)
  1497. game:GetService("Debris"):AddItem(rl,.5)
  1498. elseif Type=="Knockdown2" then
  1499. hum=hit.Parent.Humanoid
  1500. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1501. local bodvol=Instance.new("BodyVelocity")
  1502. bodvol.velocity=angle*knockback
  1503. bodvol.P=5000
  1504. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1505. bodvol.Parent=hit
  1506. game:GetService("Debris"):AddItem(bodvol,.5)
  1507. elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
  1508. vp=Instance.new("BodyVelocity")
  1509. vp.P=500
  1510. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1511. if KnockbackType==1 then
  1512. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1513. elseif KnockbackType==2 then
  1514. vp.velocity=Property.CFrame.lookVector*knockback
  1515. end
  1516. game:GetService("Debris"):AddItem(vp,.5)
  1517. if knockback>0 then
  1518. vp.Parent=hit.Parent.Torso
  1519. end
  1520. end
  1521. end
  1522. debounce=Instance.new("BoolValue")
  1523. debounce.Name="DebounceHit"
  1524. debounce.Parent=hit.Parent
  1525. debounce.Value=true
  1526. game:GetService("Debris"):AddItem(debounce,Delay)
  1527. c=Instance.new("ObjectValue")
  1528. c.Name="creator"
  1529. c.Value=Player
  1530. c.Parent=h
  1531. game:GetService("Debris"):AddItem(c,.5)
  1532. CRIT=false
  1533. end
  1534. end
  1535.  
  1536. showDamage=function(Char,Dealt,du,Color)
  1537. m=Instance.new("Model")
  1538. m.Name=tostring(Dealt)
  1539. h=Instance.new("Humanoid")
  1540. h.Health=0
  1541. h.MaxHealth=0
  1542. h.Parent=m
  1543. c=Instance.new("Part")
  1544. c.Transparency=0
  1545. c.BrickColor=Color
  1546. c.Name="Head"
  1547. c.TopSurface=0
  1548. c.BottomSurface=0
  1549. c.formFactor="Plate"
  1550. c.Size=Vector3.new(1,.4,1)
  1551. ms=Instance.new("CylinderMesh")
  1552. ms.Scale=Vector3.new(.8,.8,.8)
  1553. if CRIT==true then
  1554. ms.Scale=Vector3.new(1,1.25,1)
  1555. end
  1556. ms.Parent=c
  1557. c.Reflectance=0
  1558. Instance.new("BodyGyro").Parent=c
  1559. c.Parent=m
  1560. if Char:findFirstChild("Head")~=nil then
  1561. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1562. elseif Char.Parent:findFirstChild("Head")~=nil then
  1563. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1564. end
  1565. f=Instance.new("BodyPosition")
  1566. f.P=2000
  1567. f.D=100
  1568. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1569. f.position=c.Position+Vector3.new(0,3,0)
  1570. f.Parent=c
  1571. game:GetService("Debris"):AddItem(m,.5+du)
  1572. c.CanCollide=false
  1573. m.Parent=workspace
  1574. c.CanCollide=false
  1575. end
  1576.  
  1577. combo=0
  1578. function ob1d(mouse)
  1579. if attack==true or equipped==false then return end
  1580. hold=true
  1581. if Mode=="Defensive" then
  1582. if combo==0 then
  1583. combo=1
  1584. dattackone()
  1585. elseif combo==1 then
  1586. combo=2
  1587. dattacktwo()
  1588. elseif combo==2 then
  1589. combo=3
  1590. dattackthree()
  1591. elseif combo==3 then
  1592. combo=0
  1593. dattackfour()
  1594. end
  1595. else
  1596. if combo==0 then
  1597. combo=1
  1598. oattackone()
  1599. elseif combo==1 then
  1600. combo=2
  1601. oattacktwo()
  1602. elseif combo==2 then
  1603. combo=3
  1604. oattackthree()
  1605. elseif combo==3 then
  1606. combo=0
  1607. oattackfour()
  1608. end
  1609. end
  1610. coroutine.resume(coroutine.create(function()
  1611. for i=1,50 do
  1612. if attack==false then
  1613. swait()
  1614. end
  1615. end
  1616. if attack==false then
  1617. combo=0
  1618. end
  1619. end))
  1620. end
  1621.  
  1622. function ob1u(mouse)
  1623. hold = false
  1624. end
  1625.  
  1626. buttonhold = false
  1627.  
  1628. eul=0
  1629. equipped=false
  1630. function key(key)
  1631. if attack==true then return end
  1632. if key=="f" then
  1633. attack=true
  1634. if equipped==false then
  1635. equipped=true
  1636. RSH=ch.Torso["Right Shoulder"]
  1637. LSH=ch.Torso["Left Shoulder"]
  1638. --
  1639. RSH.Parent=nil
  1640. LSH.Parent=nil
  1641. --
  1642. RW.Name="Right Shoulder"
  1643. RW.Part0=ch.Torso
  1644. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1645. RW.C1=cf(0, 0.5, 0)
  1646. RW.Part1=ch["Right Arm"]
  1647. RW.Parent=ch.Torso
  1648. --
  1649. LW.Name="Left Shoulder"
  1650. LW.Part0=ch.Torso
  1651. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1652. LW.C1=cf(0, 0.5, 0)
  1653. LW.Part1=ch["Left Arm"]
  1654. LW.Parent=ch.Torso
  1655. --
  1656. equipanim()
  1657. else
  1658. equipped=false
  1659. hideanim()
  1660. swait(0)
  1661. RW.Parent=nil
  1662. LW.Parent=nil
  1663. RSH.Parent=player.Character.Torso
  1664. LSH.Parent=player.Character.Torso
  1665. end
  1666. attack=false
  1667. end
  1668. if equipped==false then return end
  1669. if key=="e" then
  1670. ModeChange()
  1671. end
  1672. if key=="q" then
  1673. --Punishment()
  1674. end
  1675. if key=="h" then
  1676. mana=100
  1677. end
  1678. if attack==false then
  1679. RecentEnemy.Value=nil
  1680. end
  1681. end
  1682.  
  1683. function key2(key)
  1684.  
  1685.  
  1686. end
  1687.  
  1688. function s(mouse)
  1689. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1690. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1691. mouse.KeyDown:connect(key)
  1692. mouse.KeyUp:connect(key2)
  1693.  
  1694.  
  1695. player=Player
  1696. ch=Character
  1697. MMouse=mouse
  1698. end
  1699.  
  1700. function ds(mouse)
  1701. end
  1702.  
  1703. Bin.Selected:connect(s)
  1704. Bin.Deselected:connect(ds)
  1705. print("Commander loaded.")
  1706.  
  1707. local mananum=0
  1708. local donum=0
  1709. local stunnum=0
  1710. local staggeranim=false
  1711. local stunanim=false
  1712. while true do
  1713. hitbox2.Parent=hitbox.Parent
  1714. hitbox2.Size=hitbox.Size
  1715. hitbox2.CFrame=hitboxCF
  1716. game:service'RunService'.RenderStepped:wait(0)
  1717. if Stagger.Value==true and staggeranim==false then
  1718. coroutine.resume(coroutine.create(function()
  1719. staggeranim=true
  1720. while attack==true do
  1721. swait()
  1722. end
  1723. StaggerAnim()
  1724. StaggerHit.Value=false
  1725. Stagger.Value=false
  1726. staggeranim=false
  1727. end))
  1728. end
  1729. if StaggerHit.Value==true and staggeranim==false then
  1730. coroutine.resume(coroutine.create(function()
  1731. staggeranim=true
  1732. while attack==true do
  1733. swait()
  1734. end
  1735. StaggerHitt()
  1736. StaggerHit.Value=false
  1737. Stagger.Value=false
  1738. staggeranim=false
  1739. end))
  1740. end
  1741. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1742. Humanoid.WalkSpeed=0
  1743. else
  1744. Humanoid.WalkSpeed=16*Mvmt.Value
  1745. end
  1746. if Stun.Value>=100 and stunanim==false then
  1747. coroutine.resume(coroutine.create(function()
  1748. stunanim=true
  1749. while attack==true do
  1750. swait()
  1751. end
  1752. StunAnim()
  1753. Stun.Value=0
  1754. stunanim=false
  1755. end))
  1756. end
  1757. if stunnum>=10 then
  1758. if Stun.Value>0 then
  1759. Stun.Value=Stun.Value-1
  1760. end
  1761. stunnum=0
  1762. end
  1763. stunnum=stunnum+1
  1764. if donum>=.5 then
  1765. handidle=true
  1766. elseif donum<=0 then
  1767. handidle=false
  1768. end
  1769. if handidle==false then
  1770. donum=donum+0.003
  1771. else
  1772. donum=donum-0.003
  1773. end
  1774. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1775. local velderp=RootPart.Velocity.y
  1776. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1777. if equipped==true then
  1778. if attack==false then
  1779. idle=idle+1
  1780. else
  1781. idle=0
  1782. end
  1783. if idle>=500 then
  1784. if attack==false then
  1785. --Sheath()
  1786. end
  1787. end
  1788. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1789. Anim="Jump"
  1790. if attack==false then
  1791. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  1792. wld1.C0=clerp(wld1.C0,cf(0,0,0),.2)
  1793. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  1794. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  1795. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  1796. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.2)
  1797. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1798. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.2)
  1799. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1800. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1801. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1802. end
  1803. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1804. Anim="Fall"
  1805. if attack==false then
  1806. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  1807. wld1.C0=clerp(wld1.C0,cf(0,0,0),.2)
  1808. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  1809. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  1810. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  1811. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.8),.2)
  1812. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1813. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.8),.2)
  1814. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1815. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1816. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1817. end
  1818. elseif torvel<1 and hitfloor~=nil then
  1819. Anim="Idle"
  1820. if attack==false then
  1821. if Mode=="Defensive" then
  1822. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.15)
  1823. wld1.C0=clerp(wld1.C0,cf(0,-.5,0)*euler(-.57,0,0),.15)
  1824. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.15)
  1825. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.15)
  1826. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2+(donum/3)),.15)
  1827. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1828. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,0-(donum/2))*euler(0,0+donum/1.5,0),.15)
  1829. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1830. RH.C0=clerp(RH.C0,RHC0,.2)
  1831. RH.C1=clerp(RH.C1,RHC1,.2)
  1832. LH.C0=clerp(LH.C0,LHC0,.2)
  1833. LH.C1=clerp(LH.C1,LHC1,.2)
  1834. else
  1835. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  1836. wld1.C0=clerp(wld1.C0,cf(0,1,0)*euler(-.2,0,0),.2)
  1837. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.2)
  1838. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,.5),.2)
  1839. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5-(donum/2),0,.5-(donum/2)),.2)
  1840. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1841. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4+(donum/2)),.2)
  1842. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1843. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.2)
  1844. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.2)
  1845. end
  1846. end
  1847. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1848. Anim="Walk"
  1849. if attack==false then
  1850. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  1851. wld1.C0=clerp(wld1.C0,cf(0,1.5,0),.2)
  1852. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.2)
  1853. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,1),.2)
  1854. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1),.2)
  1855. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1856. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.2)
  1857. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1858. RH.C0=clerp(RH.C0,cf(.6,-1,.5)*euler(0,1.57,0)*euler(0,-1,-.2),.2)
  1859. LH.C0=clerp(LH.C0,cf(-.6,-1,-.5)*euler(0,-1.57,0)*euler(0,-1,-.2),.2)
  1860. end
  1861. elseif torvel>=22 and hitfloor~=nil then
  1862. Anim="Run"
  1863. if attack==false then
  1864. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  1865. wld1.C0=clerp(wld1.C0,cf(0,1.5,0),.2)
  1866. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.2)
  1867. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,1),.2)
  1868. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1),.2)
  1869. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1870. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.2)
  1871. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1872. RH.C0=clerp(RH.C0,cf(.6,-1,.5)*euler(0,1.57,0)*euler(0,-1,-.2),.2)
  1873. LH.C0=clerp(LH.C0,cf(-.6,-1,-.5)*euler(0,-1.57,0)*euler(0,-1,-.2),.2)
  1874. end
  1875. end
  1876. end
  1877. if #Effects>0 then
  1878. --table.insert(Effects,{prt,"Block1",delay})
  1879. for e=1,#Effects do
  1880. if Effects[e]~=nil then
  1881. --for j=1,#Effects[e] do
  1882. local Thing=Effects[e]
  1883. if Thing~=nil then
  1884. local Part=Thing[1]
  1885. local Mode=Thing[2]
  1886. local Delay=Thing[3]
  1887. local IncX=Thing[4]
  1888. local IncY=Thing[5]
  1889. local IncZ=Thing[6]
  1890. if Thing[2]=="DecreaseStat" then
  1891. Thing[5]=Thing[5]-1
  1892. if Thing[5]<=0 then
  1893. if Thing[1]:findFirstChild("Stats")~=nil then
  1894. Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  1895. end
  1896. table.remove(Effects,e)
  1897. end
  1898. end
  1899. if Thing[2]=="CylinderClang" then
  1900. if Thing[3]<=1 then
  1901. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  1902. Thing[7]=Thing[1].CFrame
  1903. effect("New Yeller",0,Thing[8],Thing[7])
  1904. Thing[8]=Thing[7]
  1905. Thing[3]=Thing[3]+Thing[4]
  1906. else
  1907. Part.Parent=nil
  1908. table.remove(Effects,e)
  1909. end
  1910. --[[Mesh=Thing[7]
  1911. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1912. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  1913. end
  1914. if Thing[2]~="DecreaseStat" then
  1915. if Thing[1].Transparency<=1 then
  1916. if Thing[2]=="Block1" then
  1917. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1918. Mesh=Thing[7]
  1919. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1920. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1921. elseif Thing[2]=="Block2" then
  1922. Thing[1].CFrame=Thing[1].CFrame
  1923. Mesh=Thing[7]
  1924. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1925. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1926. elseif Thing[2]=="Cylinder" then
  1927. Mesh=Thing[7]
  1928. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1929. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1930. elseif Thing[2]=="Blood" then
  1931. Mesh=Thing[7]
  1932. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1933. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1934. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1935. elseif Thing[2]=="Elec" then
  1936. Mesh=Thing[7]
  1937. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1938. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1939. elseif Thing[2]=="Disappear" then
  1940. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1941. end
  1942. else
  1943. Part.Parent=nil
  1944. table.remove(Effects,e)
  1945. end
  1946. end
  1947. end
  1948. --end
  1949. end
  1950. end
  1951. end
  1952. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1953. fenbarmana4.Text="Mana("..mana..")"
  1954. if mana>=100 then
  1955. mana=100
  1956. else
  1957. if mananum<=8 then
  1958. mananum=mananum+1
  1959. else
  1960. mananum=0
  1961. mana=mana+1
  1962. end
  1963. end
  1964. end
  1965.  
  1966.  
  1967. --[[
  1968. Copyrighted (C) Fenrier 2014
  1969. ]]
Add Comment
Please, Sign In to add comment