brandonflex123

op sword ;D

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