Advertisement
memberhero

Frigost Test

May 29th, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.51 KB | None | 0 0
  1. --wait(1)
  2. --[[
  3. Made by Fenrier.
  4. ]]
  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. local idle=0
  41. local Anim="Idle"
  42. local Effects={}
  43. local Weapon={}
  44. local Welds={}
  45. local decreaseatk=0
  46. local decreasedef=0
  47. local decreasemvmt=0
  48. local guard=false
  49. local blocknum=50
  50. local addhit=false
  51. ---local BlockOn=script.Parent.BlockOn
  52. ---local BlockOff=script.Parent.BlockOff
  53. local move1="(Z)\
  54. Icicle"
  55. local move2="(X)\
  56. Shatter Sword"
  57. local move3="(C)\
  58. Glacier Dash"
  59. local move4="(V)\
  60. Absolute Blizzard"
  61. local cooldowns={}
  62. local cooldown1=0 table.insert(cooldowns,cooldown1)
  63. local cooldown2=0 table.insert(cooldowns,cooldown2)
  64. local cooldown3=0 table.insert(cooldowns,cooldown3)
  65. local cooldown4=0 table.insert(cooldowns,cooldown4)
  66. local cooldownsadd={}
  67. local cooldownadd1=.2 table.insert(cooldownsadd,cooldownadd1)
  68. local cooldownadd2=.35 table.insert(cooldownsadd,cooldownadd2)
  69. local cooldownadd3=.14 table.insert(cooldownsadd,cooldownadd3)
  70. local cooldownadd4=.09 table.insert(cooldownsadd,cooldownadd4)
  71. local cooldownmax=100
  72. ---local damageFunc=workspace.damageFunc
  73. --blocknum=100
  74. local manualguardend=false
  75. --player
  76. player=nil
  77. --save shoulders
  78. RSH, LSH=nil, nil
  79. --welds
  80. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  81. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  82. LH=Torso["Left Hip"]
  83. RH=Torso["Right Hip"]
  84. TorsoColor=Torso.BrickColor
  85. local mdec=Instance.new("NumberValue",Decrease)
  86. mdec.Name="DecreaseDef"
  87. mdec.Value=.4
  88. local mdec2=Instance.new("NumberValue",Decrease)
  89. mdec2.Name="DecreaseMvmt"
  90. mdec2.Value=.1
  91.  
  92. local Animate=Humanoid.Animator
  93. --[[local animation=Instance.new("Animation")
  94. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  95. local animTrack=Humanoid:LoadAnimation(animation)]]
  96. local canjump=true
  97. function removeControl()
  98. canjump=false
  99. end
  100. function resumeControl()
  101. canjump=true
  102. end
  103. Player.Character.Humanoid.Changed:connect(function()
  104. if canjump==false then
  105. Player.Character.Humanoid.Jump=false
  106. end
  107. end)
  108. --[[
  109. removeControl()
  110. resumeControl()
  111. ]]
  112.  
  113. function swait(num)
  114. if num==0 or num==nil then
  115. --if Stagger.Value==false or Stun.Value<=100 then
  116. game:GetService("RunService").Heartbeat:wait()
  117. --end
  118. else
  119. for i=0,num do
  120. game:GetService("RunService").Heartbeat:wait()
  121. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  122. break
  123. end]]
  124. end
  125. end
  126. end
  127.  
  128. if Character:findFirstChild("Glaciem",true) ~= nil then
  129. Character:findFirstChild("Glaciem",true).Parent = nil
  130. end
  131. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  132. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  133. end
  134. if Character:findFirstChild("Stats",true) ~= nil then
  135. Character:findFirstChild("Stats",true).Parent = nil
  136. end
  137. local Stats=Instance.new("BoolValue")
  138. Stats.Name="Stats"
  139. Stats.Parent=Character
  140. local Atk=Instance.new("NumberValue")
  141. Atk.Name="Damage"
  142. Atk.Parent=Stats
  143. Atk.Value=1
  144. local Def=Instance.new("NumberValue")
  145. Def.Name="Defense"
  146. Def.Parent=Stats
  147. Def.Value=1
  148. local Mvmt=Instance.new("NumberValue")
  149. Mvmt.Name="Movement"
  150. Mvmt.Parent=Stats
  151. Mvmt.Value=1
  152. local Block=Instance.new("BoolValue")
  153. Block.Name="Block"
  154. Block.Parent=Stats
  155. Block.Value=false
  156. local Stun=Instance.new("NumberValue")
  157. Stun.Name="Stun"
  158. Stun.Parent=Stats
  159. Stun.Value=0
  160. local StunT=Instance.new("NumberValue")
  161. StunT.Name="StunThreshold"
  162. StunT.Parent=Stats
  163. StunT.Value=100
  164. local Decrease=Instance.new("BoolValue")
  165. Decrease.Name="Decrease"
  166. Decrease.Parent=Stats
  167. Decrease.Value=false
  168. local mana=Instance.new("NumberValue")
  169. mana.Name="Mana"
  170. mana.Parent=Stats
  171. mana.Value=0
  172.  
  173.  
  174. decreaseatk=0
  175. decreasedef=0
  176. decreasemvmt=0
  177. for _,c in pairs(Decrease:children()) do
  178. if c.Name=="DecreaseAtk" then
  179. deccreaseatk=decreaseatk+c.Value
  180. elseif c.Name=="DecreaseDef" then
  181. deccreasedef=decreasedef+c.Value
  182. elseif c.Name=="DecreaseMvmt" then
  183. deccreasemvmt=decreasemvmt+c.Value
  184. end
  185. end
  186. Atk.Value=1-decreaseatk
  187. Def.Value=1-decreasedef
  188. Mvmt.Value=1-decreasemvmt
  189.  
  190.  
  191. local Stunned=Instance.new("BoolValue")
  192. Stunned.Name="Stunned"
  193. Stunned.Parent=Stats
  194. Stunned.Value=false
  195. local Stagger=Instance.new("BoolValue")
  196. Stagger.Name="Stagger"
  197. Stagger.Parent=Stats
  198. Stagger.Value=false
  199. local StaggerHit=Instance.new("BoolValue")
  200. StaggerHit.Name="StaggerHit"
  201. StaggerHit.Parent=Stats
  202. StaggerHit.Value=false
  203. local Rooted=Instance.new("BoolValue")
  204. Rooted.Name="Rooted"
  205. Rooted.Parent=Stats
  206. Rooted.Value=false
  207. local RecentEnemy=Instance.new("ObjectValue")
  208. RecentEnemy.Name="RecentEnemy"
  209. RecentEnemy.Parent=Stats
  210. RecentEnemy.Value=nil
  211.  
  212. function NoOutline(Part)
  213. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  214. end
  215.  
  216. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  217. local fp=it("Part")
  218. fp.formFactor=formfactor
  219. fp.Parent=parent
  220. fp.Reflectance=reflectance
  221. fp.Transparency=transparency
  222. fp.CanCollide=false
  223. fp.Locked=true
  224. fp.BrickColor=brickcolor
  225. fp.Name=name
  226. fp.Size=size
  227. fp.Position=Torso.Position
  228. NoOutline(fp)
  229. fp.Material="SmoothPlastic"
  230. fp:BreakJoints()
  231. return fp
  232. end
  233.  
  234. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  235. local mesh=it(Mesh)
  236. mesh.Parent=part
  237. if Mesh=="SpecialMesh" then
  238. mesh.MeshType=meshtype
  239. if meshid~="nil" then
  240. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  241. end
  242. end
  243. mesh.Offset=offset
  244. mesh.Scale=scale
  245. return mesh
  246. end
  247.  
  248. function weld(parent,part0,part1,c0)
  249. local weld=it("Motor")
  250. weld.Parent=parent
  251. weld.Part0=part0
  252. weld.Part1=part1
  253. weld.C0=c0
  254. return weld
  255. end
  256.  
  257. function gui(GuiType,parent,text,backtrans,backcol,pos,size,zindex)
  258. local gui=it(GuiType)
  259. gui.Parent=parent
  260. gui.Text=text
  261. gui.BackgroundTransparency=backtrans
  262. gui.BackgroundColor3=backcol
  263. gui.SizeConstraint="RelativeXY"
  264. gui.TextXAlignment="Center"
  265. gui.TextYAlignment="Center"
  266. gui.Position=pos
  267. gui.Size=size
  268. gui.Font="SourceSans"
  269. gui.FontSize="Size14"
  270. gui.TextWrapped=false
  271. gui.TextStrokeTransparency=0
  272. gui.TextColor=BrickColor.new("White")
  273. if zindex then
  274. gui.ZIndex=zindex
  275. end
  276. return gui
  277. end
  278.  
  279. function imggui(GuiType,parent,backtrans,backcol,pos,size,img,imgcol,imgtrans,zindex)
  280. local gui=it(GuiType)
  281. gui.Parent=parent
  282. gui.BackgroundTransparency=backtrans
  283. gui.BackgroundColor3=backcol
  284. gui.SizeConstraint="RelativeXY"
  285. gui.Position=pos
  286. gui.Size=size
  287. gui.Image=img
  288. gui.ImageColor3=imgcol
  289. gui.ImageTransparency=imgtrans
  290. gui.ZIndex=zindex
  291. return gui
  292. end
  293.  
  294. local Color1=Torso.BrickColor
  295.  
  296. local fengui=it("GuiMain")
  297. fengui.Parent=Player.PlayerGui
  298. fengui.Name="WeaponGUI"
  299. local fenframe=it("Frame")
  300. fenframe.Parent=fengui
  301. fenframe.BackgroundColor3=Color3.new(255,255,255)
  302. fenframe.BackgroundTransparency=1
  303. fenframe.BorderColor3=Color3.new(17,17,17)
  304. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  305. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  306. local fenframe2=it("Frame")
  307. fenframe2.Parent=fengui
  308. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  309. fenframe2.BackgroundTransparency=1
  310. fenframe2.BorderColor3=Color3.new(17,17,17)
  311. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  312. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  313. local fenframe3=it("Frame")
  314. fenframe3.Parent=fengui
  315. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  316. fenframe3.BackgroundTransparency=1
  317. fenframe3.BorderColor3=Color3.new(17,17,17)
  318. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  319. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  320. fenframe3.Name="MoveFrame"
  321. local fenframe4=it("Frame")
  322. fenframe4.Parent=fengui
  323. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  324. fenframe4.BackgroundTransparency=1
  325. fenframe4.BorderColor3=Color3.new(17,17,17)
  326. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  327. fenframe4.Position=UDim2.new(0,0,0.7,0)
  328. local pressedf=false
  329. local fenframe5=it("Frame")
  330. fenframe5.Parent=fengui
  331. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  332. fenframe5.BackgroundTransparency=1
  333. fenframe5.BorderColor3=Color3.new(0,0,0)
  334. fenframe5.Size=UDim2.new(1,0,1,0)
  335. fenframe5.Position=UDim2.new(0,0,0,0)
  336. fenframe5.ZIndex=2
  337. local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  338. tellbar.Font="Arial"
  339. tellbar.TextScaled=true
  340. tellbar.TextTransparency=1
  341. tellbar.TextStrokeTransparency=1
  342. tellbar.ZIndex=2
  343. local fnumb=0
  344. --gui(GuiType,parent,text,backtrans,backcol,pos,size)
  345. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  346. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new("Bright blue").Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  347. local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
  348. local fenbarblock1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(-.6,0,0,0),UDim2.new(.4,0,-4,0))
  349. local fenbarblock2=gui("TextLabel",fenframe,"",0,BrickColor.new("Cyan").Color,UDim2.new(-.6,0,0,0),UDim2.new(.4,0,-2,0))
  350. local fenbarblock3=gui("TextLabel",fenframe,"Block("..blocknum..")",1,Color3.new(0,0,0),UDim2.new(-.6,0,.2,0),UDim2.new(.4,0,.2,0))
  351. local fenbardamage=gui("TextLabel",fenframe2,"Damage",1,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0),2)
  352. local fenbardef=gui("TextLabel",fenframe2,"Defense",1,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0),2)
  353. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",1,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0),2)
  354. local fenimgdmg=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.23,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793110",Color3.new(170/255,0,0),.35,1)
  355. local fenimgdef=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.46,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793046",Color3.new(0,0,170/255),.35,1)
  356. local fenimgmove=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(1.03,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793172",Color3.new(0,170/255,0),.35,1)
  357. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  358. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  359. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  360. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  361. local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
  362. local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
  363. local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
  364. fenbarmove1.ZIndex=2
  365. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new("Cyan").Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  366. local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
  367. fenbarmove2.ZIndex=2
  368. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new("Cyan").Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  369. local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
  370. fenbarmove3.ZIndex=2
  371. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new("Cyan").Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  372. local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
  373. fenbarmove4.ZIndex=2
  374. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new("Cyan").Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  375.  
  376. local modelzorz=Instance.new("Model")
  377. modelzorz.Parent=Character
  378. modelzorz.Name="Glaciem"
  379.  
  380. local prt1=part(3,modelzorz,0,0,TorsoColor,"Part01",vt(0.2,0.2,0.2))
  381. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part02",vt(0.2,0.2,0.2))
  382. local prt3=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Part03",vt(0.2,0.2,0.2))
  383. local prt4=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Part04",vt(0.2,0.2,0.2))
  384. local prt5=part(3,modelzorz,0,0,BrickColor.new("Cyan"),"Part05",vt(0.2,0.2,0.2))
  385. local prt6=part(3,modelzorz,0,0,BrickColor.new("Cyan"),"Part06",vt(0.2,0.2,0.2))
  386. local prt7=part(3,modelzorz,0,0,BrickColor.new("Cyan"),"Part07",vt(0.2,0.2,0.2))
  387. local prtt=part(3,modelzorz,0.8,0,BrickColor.new("Medium blue"),"Part09",vt(0.2,0.2,0.2))
  388. local sprt1=part(3,modelzorz,0,0,BrickColor.new("Black"),"Shield Part01",vt(0.2,0.2,0.2))
  389. local sprt2=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part02",vt(0.2,0.2,0.2))
  390. local sprt3=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part03",vt(0.2,0.2,0.2))
  391. local sprt4=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part04",vt(0.2,0.2,0.2))
  392. local sprt5=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part05",vt(0.2,0.2,0.2))
  393. local sprt6=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part06",vt(0.2,0.2,0.2))
  394. local sprt7=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part07",vt(0.2,0.2,0.2))
  395. local sprt8=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part08",vt(0.2,0.2,0.2))
  396. local sprt9=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part09",vt(0.2,0.2,0.2))
  397. local sprt10=part(3,modelzorz,0,0,BrickColor.new("Medium blue"),"Shield Part10",vt(0.2,0.2,0.2))
  398.  
  399. local msh1=mesh("SpecialMesh",prt1,"Head","nil",vt(0,0,0),vt(2,6,2))
  400. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(1.5,8,1.5))
  401. local msh3=mesh("SpecialMesh",prt3,"FileMesh","9756362",vt(0,0,0),vt(.6,.5,.6))
  402. local msh4=mesh("SpecialMesh",prt4,"FileMesh","9756362",vt(0,0,0),vt(1.35,.35,.7))
  403. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(10,1,3))
  404. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(3,1.2,3.1))
  405. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(3,1.2,3.1))
  406. local msht=mesh("SpecialMesh",prtt,"FileMesh","9756362",vt(0,0,0),vt(0.8,1.4,0.31))
  407. local smsh1=mesh("BlockMesh",sprt1,"","",vt(0,0,0),vt(1,1,1))
  408. local smsh2=mesh("SpecialMesh",sprt2,"Wedge","nil",vt(0,0,0),vt(1.5,6,10))
  409. local smsh3=mesh("SpecialMesh",sprt3,"Wedge","nil",vt(0,0,0),vt(1.5,6,10))
  410. local smsh4=mesh("SpecialMesh",sprt4,"Wedge","nil",vt(0,0,0),vt(1.5,6,5))
  411. local smsh5=mesh("SpecialMesh",sprt5,"Wedge","nil",vt(0,0,0),vt(1.5,6,5))
  412. local smsh6=mesh("SpecialMesh",sprt6,"Wedge","nil",vt(0,0,0),vt(1.2,8,12))
  413. local smsh7=mesh("SpecialMesh",sprt7,"Wedge","nil",vt(0,0,0),vt(1.2,8,12))
  414. local smsh8=mesh("SpecialMesh",sprt8,"Wedge","nil",vt(0,0,0),vt(1.2,8,7))
  415. local smsh9=mesh("SpecialMesh",sprt9,"Wedge","nil",vt(0,0,0),vt(1.2,8,7))
  416. local smsh10=mesh("SpecialMesh",sprt10,"FileMesh","187687193",vt(0,0,0),vt(3,1,3))
  417. --Meshes = {187687161, 187687175, 187687193}
  418.  
  419. local wld1=weld(prt1,prt1,sprt1,euler(0,0,0)*cf(0,2.5,0))
  420. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  421. local wld2=weld(prt1,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  422. local wld3=weld(prt1,prt3,prt2,euler(0,0,0)*cf(0,.8,0))
  423. local wld4=weld(prt1,prt4,prt2,euler(0,1.57,0)*cf(0,-.9,0))
  424. local wld5=weld(prt1,prt5,prt4,euler(0,0,0)*cf(0,-.05,0))
  425. local wld6=weld(prt1,prt6,prt5,euler(0,0,-1.4)*cf(-1,-.2,0))
  426. local wld7=weld(prt1,prt7,prt5,euler(0,0,1.4)*cf(1,-.2,0))
  427. local wldt=weld(prt1,prtt,prt4,euler(0,0,0)*cf(0,-3.45,0))
  428. local swld1=weld(prt1,sprt1,LeftArm,euler(-1.57,0,0)*cf(.5,.5,0))
  429. local swld2=weld(prt1,sprt2,sprt1,euler(-1.57,0,0)*cf(.1,-.8,-.6))
  430. local swld3=weld(prt1,sprt3,sprt1,euler(-1.57,3.14,0)*cf(.1,-.8,.6))
  431. local swld4=weld(prt1,sprt4,sprt1,euler(-1.57,0,3.14)*cf(.1,.7,-.6))
  432. local swld5=weld(prt1,sprt5,sprt1,euler(-1.57,3.14,3.14)*cf(.1,.7,.6))
  433. local swld6=weld(prt1,sprt6,sprt1,euler(-1.57,0,0)*cf(.1,-1,-.8))
  434. local swld7=weld(prt1,sprt7,sprt1,euler(-1.57,3.14,0)*cf(.1,-1,.8))
  435. local swld8=weld(prt1,sprt8,sprt1,euler(-1.57,0,3.14)*cf(.1,.9,-.8))
  436. local swld9=weld(prt1,sprt9,sprt1,euler(-1.57,3.14,3.14)*cf(.1,.9,.8))
  437. local swld10=weld(prt1,sprt10,sprt1,euler(0,0,1.57)*cf(.25,0,0))
  438.  
  439. for i=0,180,180 do
  440. for x=-20,20,40 do
  441. local lol=i-90
  442. local lol2=math.abs(lol/480)
  443. local lol3=x/90
  444. local prt8=part(3,modelzorz,0.8,0,BrickColor.new("Medium blue"),"Part08",vt(0.2,0.2,0.2))
  445. local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(0.2,17.5,2.97))
  446. --local wld8=weld(prt8,prt4,prt8,euler(0,0,0)*cf(.2,-1.7,0)*euler(0,-0.3-0.785,0))
  447. local wld8=weld(prt1,prt4,prt8,cf(0,1.7,0)*euler(0,math.rad(i+x)+1.57,0))
  448. wld8.C1=cf(lol2,0,-lol3)*euler(0,0,0)
  449. end
  450. end
  451.  
  452. for _,c in pairs(modelzorz:children()) do
  453. table.insert(Weapon,c)
  454. end
  455. for _,c in pairs(prt1:children()) do
  456. if c.className=="Motor" then
  457. table.insert(Welds,c)
  458. end
  459. end
  460. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt(0.2,0.2,0.2))
  461. hitbox.Anchored=false
  462. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  463. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  464. hitbox2.Anchored=true
  465. local hitboxCF=cf(0,0,0)
  466.  
  467. hboxpos=Instance.new("BodyPosition",nil)
  468. hboxpos.P=2000
  469. hboxpos.D=100
  470. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  471.  
  472. function hitboxweld()
  473. hbwld.Parent=modelzorz
  474. hbwld.Part0=hitbox
  475. hbwld.Part1=prtt
  476. end
  477.  
  478. --[[hbodpos=Instance.new("BodyPosition",hitbox)
  479. hbodpos.P=2000
  480. hbodpos.D=100
  481. hbodpos.maxForce=Vector3.new(545000,545000,545000)]]
  482.  
  483. if (script.Parent.className~="HopperBin") then
  484. Tool=Instance.new("HopperBin")
  485. Tool.Parent=Backpack
  486. Tool.Name="Glaciem"
  487. script.Parent=Tool
  488. end
  489. Bin=script.Parent
  490. if Bin.Name=="Frigost: Blizzard" then
  491. Bin.Name="Glaciem"
  492. end
  493.  
  494. local bodvel=Instance.new("BodyVelocity")
  495. local bg=Instance.new("BodyGyro")
  496.  
  497. so = function(id,par,vol,pit)
  498. local sou = Instance.new("Sound",par or workspace)
  499. sou.Volume=vol
  500. sou.Pitch=pit or 1
  501. sou.SoundId="http://www.roblox.com/asset/?id="..id
  502. coroutine.resume(coroutine.create(function(Sound)
  503. swait()
  504. Sound:play()
  505. end),sou)
  506. game:GetService("Debris"):AddItem(sou,6)
  507. end
  508.  
  509. function clerp(a,b,t)
  510. local qa = {QuaternionFromCFrame(a)}
  511. local qb = {QuaternionFromCFrame(b)}
  512. local ax, ay, az = a.x, a.y, a.z
  513. local bx, by, bz = b.x, b.y, b.z
  514. local _t = 1-t
  515. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  516. end
  517.  
  518. function QuaternionFromCFrame(cf)
  519. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  520. local trace = m00 + m11 + m22
  521. if trace > 0 then
  522. local s = math.sqrt(1 + trace)
  523. local recip = 0.5/s
  524. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  525. else
  526. local i = 0
  527. if m11 > m00 then
  528. i = 1
  529. end
  530. if m22 > (i == 0 and m00 or m11) then
  531. i = 2
  532. end
  533. if i == 0 then
  534. local s = math.sqrt(m00-m11-m22+1)
  535. local recip = 0.5/s
  536. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  537. elseif i == 1 then
  538. local s = math.sqrt(m11-m22-m00+1)
  539. local recip = 0.5/s
  540. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  541. elseif i == 2 then
  542. local s = math.sqrt(m22-m00-m11+1)
  543. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  544. end
  545. end
  546. end
  547.  
  548. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  549. local xs, ys, zs = x + x, y + y, z + z
  550. local wx, wy, wz = w*xs, w*ys, w*zs
  551. local xx = x*xs
  552. local xy = x*ys
  553. local xz = x*zs
  554. local yy = y*ys
  555. local yz = y*zs
  556. local zz = z*zs
  557. 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))
  558. end
  559.  
  560. function QuaternionSlerp(a, b, t)
  561. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  562. local startInterp, finishInterp;
  563. if cosTheta >= 0.0001 then
  564. if (1 - cosTheta) > 0.0001 then
  565. local theta = math.acos(cosTheta)
  566. local invSinTheta = 1/math.sin(theta)
  567. startInterp = math.sin((1-t)*theta)*invSinTheta
  568. finishInterp = math.sin(t*theta)*invSinTheta
  569. else
  570. startInterp = 1-t
  571. finishInterp = t
  572. end
  573. else
  574. if (1+cosTheta) > 0.0001 then
  575. local theta = math.acos(-cosTheta)
  576. local invSinTheta = 1/math.sin(theta)
  577. startInterp = math.sin((t-1)*theta)*invSinTheta
  578. finishInterp = math.sin(t*theta)*invSinTheta
  579. else
  580. startInterp = t-1
  581. finishInterp = t
  582. end
  583. end
  584. 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
  585. end
  586.  
  587. function hideanim()
  588. equipped=false
  589. for i=0,1,0.2 do
  590. swait()
  591. wld1.C0=clerp(wld1.C0,euler(1.7,-.2,.5)*cf(0,1,0),.4)
  592. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.4),.4)
  593. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  594. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.5,0,-.5)*euler(0,1.57,0),.4)
  595. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  596. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.3,-1.2,-.5),.4)
  597. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  598. RH.C0=clerp(RH.C0,RHC0,.4)
  599. LH.C0=clerp(LH.C0,LHC0,.4)
  600. end
  601. mdec2.Parent=nil
  602. wld1.Part1=sprt1
  603. wld1.C0=euler(0,0,0)*cf(0,2.5,0)
  604. for i=0,1,0.3 do
  605. swait()
  606. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  607. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  608. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  609. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  610. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  611. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  612. end
  613. mdec.Parent=Decrease
  614. end
  615.  
  616. mdec.Parent=Decrease
  617. function equipanim()
  618. equipped=true
  619. mdec.Parent=nil
  620. for i=0,1,0.2 do
  621. swait()
  622. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.4),.4)
  623. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  624. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.5,0,-.5)*euler(0,1.57,0),.4)
  625. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  626. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.3,-1.2,-.5),.4)
  627. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  628. end
  629. mdec2.Parent=Decrease
  630. wld1.Part1=RightArm
  631. wld1.C0=euler(1.7,-.2,.5)*cf(0,1,0)
  632. local hit,pos=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,200,Character)
  633. if hit~=nil then
  634. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  635. ref.Anchored=true
  636. ref.CFrame=cf(pos)
  637. game:GetService("Debris"):AddItem(ref,1)
  638. MagicWave(BrickColor.new("Medium blue"),cf(ref.Position),1,1,1,1,.5,1,.1)
  639. end
  640. for i=0,1,0.1 do
  641. swait()
  642. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  643. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,-.2),.3)
  644. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  645. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1)*euler(0,1,0),.3)
  646. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  647. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-1.4)*euler(0,-.2,0),.3)
  648. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  649. end
  650. end
  651.  
  652. function StaggerAnim()
  653. attack=true
  654. removeControl()
  655. for i=1,math.random(2,4) do
  656. 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)
  657. end
  658. for i=0,1,0.35 do
  659. swait()
  660. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  661. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  662. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  663. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  664. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  665. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  666. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  667. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  668. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  669. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  670. end
  671. for i=0,1,0.2 do
  672. swait()
  673. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  674. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  675. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  676. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  677. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  678. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  679. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  680. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  681. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  682. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  683. end
  684. for i=0,1,0.1 do
  685. swait()
  686. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  687. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  689. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.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(-.3,0,-.2)*euler(0,.4,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(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  694. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  695. end
  696. for i=1,40 do
  697. swait()
  698. if Stun.Value>=StunT.Value then
  699. break
  700. end
  701. end
  702. resumeControl()
  703. combo=0
  704. attack=false
  705. end
  706.  
  707. function StaggerHitt() end
  708.  
  709. function StunAnim()
  710. attack=true
  711. Stunned.Value=true
  712. removeControl()
  713. showDamage(Character,"Stunned","Interrupt")
  714. local dec=Instance.new("NumberValue",Decrease)
  715. dec.Name="DecreaseMvmt"
  716. dec.Value=10
  717. for i=0,1,0.3 do
  718. swait()
  719. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  720. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  721. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  722. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  723. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  724. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  725. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  726. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  727. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  728. end
  729. for i=0,1,0.3 do
  730. swait()
  731. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  732. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  733. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  734. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  735. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  736. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  737. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  738. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  739. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  740. end
  741. for i=0,1,0.3 do
  742. swait()
  743. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  744. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  747. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  748. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  749. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  750. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  751. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  752. end
  753. local gairost=Instance.new("BodyGyro")
  754. gairost.Parent=RootPart
  755. gairost.maxTorque=Vector3.new(2000,0,2000)
  756. gairost.P=2000
  757. gairost.cframe=cf(0,0,0)
  758. for i=0,1,0.1 do
  759. swait()
  760. if hitfloor~=nil then
  761. Torso.Velocity=vt(0,0,0)
  762. end
  763. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  764. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  765. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  766. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  767. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  768. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  769. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  770. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  771. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  772. end
  773. for i=1,70 do
  774. swait()
  775. gairost.cframe=RootPart.CFrame
  776. if hitfloor~=nil then
  777. Torso.Velocity=vt(0,0,0)
  778. end
  779. end
  780. for i=0,1,0.2 do
  781. swait()
  782. Stun.Value=0
  783. gairost.cframe=RootPart.CFrame
  784. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  785. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  786. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  787. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  788. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  789. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  790. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  791. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  792. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  793. end
  794. resumeControl()
  795. gairost.Parent=nil
  796. dec.Parent=nil
  797. Stun.Value=0
  798. combo=0
  799. Stunned.Value=false
  800. attack=false
  801. for i=1,10 do
  802. swait()
  803. Stun.Value=0
  804. end
  805. end
  806.  
  807. function attackone()
  808. attack=true
  809. for i=0,1,0.2 do
  810. swait()
  811. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  812. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
  813. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
  814. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  815. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  816. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  817. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.4)
  818. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.4)
  819. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  820. break
  821. end
  822. end
  823. so("199145841",prtt,1,1)
  824. hbwld.Parent=nil
  825. hboxpos.Parent=hitbox
  826. hitbox.Parent=modelzorz
  827. hitbox.Size=vt(1.1,4,.5)
  828. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  829. hitbox.CFrame=hitboxCF
  830. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,6,math.random(5,10),"Normal",RootPart,.5,1,math.random(2,8),nil,true) end)
  831. blcf=nil
  832. scfr=nil
  833. for i=0,1,0.1 do
  834. swait()
  835. local blcf = prtt.CFrame*cf(0,-1.2,0)
  836. if scfr and (prtt.Position-scfr.p).magnitude > .1 then
  837. local h = 4.3
  838. 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)
  839. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  840. 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)
  841. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  842. scfr = blcf
  843. elseif not scfr then
  844. scfr = blcf
  845. end
  846. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  847. hitbox.CFrame=hitboxCF
  848. MagniDamage(hitbox,4,5,6,math.random(5,10),"Normal",false,nil,nil,nil,math.random(2,8),RootPart,.5,1)
  849. wld1.C0=clerp(wld1.C0,euler(2.9,0,0)*cf(0,.8,-.2),.25)
  850. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.3),.25)
  851. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.25)
  852. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1)*euler(0,-1,0),.25)
  853. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  854. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,-.7)*euler(0,0,0),.25)
  855. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  856. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.3,0),.25)
  857. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.3,0),.25)
  858. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  859. break
  860. end
  861. end
  862. --con1:disconnect()
  863. hitbox.Parent=modelzorz
  864. hitbox.Size=vt()
  865. hitboxweld()
  866. hboxpos.Parent=nil
  867. attack=false
  868. end
  869.  
  870. function attacktwo()
  871. attack=true
  872. for i=0,1,0.2 do
  873. swait()
  874. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  875. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.2)*euler(-.2,0,0),.4)
  876. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.2),.4)
  877. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,0,-.8)*euler(0,1,0),.4)
  878. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  879. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.5,0,-.5),.4)
  880. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  881. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.2,0),.4)
  882. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,0),.4)
  883. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  884. break
  885. end
  886. end
  887. so("199145887",prtt,1,1)
  888. hbwld.Parent=nil
  889. hboxpos.Parent=hitbox
  890. hitbox.Parent=modelzorz
  891. hitbox.Size=vt(1.1,4,.5)
  892. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  893. hitbox.CFrame=hitboxCF
  894. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,6,math.random(5,10),"Normal",RootPart,.5,1,math.random(2,8),nil,true) end)
  895. blcf=nil
  896. scfr=nil
  897. for i=0,1,0.15 do
  898. swait()
  899. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  900. hitbox.CFrame=hitboxCF
  901. MagniDamage(hitbox,4,5,6,math.random(5,10),"Normal",false,nil,nil,nil,math.random(2,8),RootPart,.5,1)
  902. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,0),.4)
  903. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.2)*euler(.4,0,0),.4)
  904. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  905. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.3)*euler(0,.2,0),.4)
  906. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  907. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.5,0,-.2),.4)
  908. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  909. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.2,0),.4)
  910. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,0),.4)
  911. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  912. break
  913. end
  914. end
  915. --con1:disconnect()
  916. hitbox.Parent=modelzorz
  917. hitbox.Size=vt()
  918. hitboxweld()
  919. hboxpos.Parent=nil
  920. attack=false
  921. end
  922.  
  923. function attackthree()
  924. attack=true
  925. for i=0,.8,0.2 do
  926. swait()
  927. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,-.5),.4)
  928. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
  929. wld1.C0=clerp(wld1.C0,euler(.2,0,0)*cf(0,.8,-.2),.25)
  930. RW.C0=clerp(RW.C0,cf(1.1,0.5,0)*euler(-1.6,0,0),.2)
  931. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  932. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  933. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  934. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.4,0),.4)
  935. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.4,0),.4)
  936. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  937. break
  938. end
  939. end
  940. so("199145841",prtt,1,1.3)
  941. hbwld.Parent=nil
  942. hboxpos.Parent=hitbox
  943. hitbox.Parent=modelzorz
  944. hitbox.Size=vt(1.1,4,.5)
  945. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  946. hitbox.CFrame=hitboxCF
  947. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,6,math.random(5,10),"Normal",RootPart,.5,1,math.random(2,8),nil,true) end)
  948. blcf=nil
  949. scfr=nil
  950. for i=0,1,0.1 do
  951. swait()
  952. local blcf = prtt.CFrame*cf(0,-1.2,0)
  953. if scfr and (prtt.Position-scfr.p).magnitude > .1 then
  954. local h = 4.3
  955. 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)
  956. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  957. 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)
  958. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  959. scfr = blcf
  960. elseif not scfr then
  961. scfr = blcf
  962. end
  963. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  964. hitbox.CFrame=hitboxCF
  965. MagniDamage(hitbox,4,5,6,math.random(5,10),"Normal",false,nil,nil,nil,math.random(2,8),RootPart,.5,1)
  966. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.8),.4)
  967. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.78),.4)
  968. wld1.C0=clerp(wld1.C0,euler(3.14-.6,0,0)*cf(0,.8,-.2),.35)
  969. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.1)*euler(1,0,0)*euler(0,.1,.4),.35)
  970. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  971. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  972. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  973. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.79,0),.4)
  974. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.79,0),.4)
  975. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  976. break
  977. end
  978. end
  979. --con1:disconnect()
  980. hitbox.Parent=modelzorz
  981. hitbox.Size=vt()
  982. hitboxweld()
  983. hboxpos.Parent=nil
  984. attack=false
  985. end
  986.  
  987. function attackfour()
  988. attack=true
  989. for i=0,1,0.2 do
  990. swait()
  991. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  992. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.3)
  993. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  994. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.3)
  995. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  996. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(1.57,0,1.2)*euler(0,.2,0),.3)
  997. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  998. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.25)
  999. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.25)
  1000. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1001. break
  1002. end
  1003. end
  1004. so("199145935",sprt1,1,1)
  1005. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*70 end
  1006. hbwld.Parent=nil
  1007. hboxpos.Parent=hitbox
  1008. hitbox.Parent=modelzorz
  1009. hitbox.Size=vt(1,3.5,3)
  1010. hitboxCF=sprt1.CFrame*cf(0,.3,0)
  1011. hitbox.CFrame=hitboxCF
  1012. addhit=false
  1013. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,6,math.random(20,30),"Knockdown2",RootPart,.2,1,math.random(5,15),nil,false) end)
  1014. for i=0,1,0.1 do
  1015. swait()
  1016. hitboxCF=sprt1.CFrame*cf(0,.3,0)
  1017. hitbox.CFrame=hitboxCF
  1018. MagniDamage(hitbox,3,4,6,math.random(20,30),"Knockdown2",false,nil,nil,nil,math.random(5,15),RootPart,.2,1)
  1019. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1020. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3),.3)
  1021. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
  1022. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.6),.3)
  1023. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1024. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1),.3)
  1025. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1026. if shhit==true then
  1027. Torso.Velocity=vt(0,0,0)
  1028. break
  1029. end
  1030. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1031. break
  1032. end
  1033. end
  1034. --con1:disconnect()
  1035. hitbox.Parent=modelzorz
  1036. hitbox.Size=vt()
  1037. hitboxweld()
  1038. hboxpos.Parent=nil
  1039. if addhit==true then
  1040. cff=RootPart.CFrame*cf(0,0,-9)
  1041. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1042. ref.Anchored=true
  1043. ref.CFrame=cff
  1044. game:GetService("Debris"):AddItem(ref,1)
  1045. so("199145433",ref,1,1)
  1046. so("199146181",ref,.8,1.2)
  1047. MagniDamage(ref,10,6,8,math.random(20,30),"Knockdown2",true,"Movement",.05,200,math.random(5,10),ref,0,1)
  1048. tehcf=cf(ref.Position)
  1049. MagicWave2(BrickColor.new("Medium blue"),tehcf,0,0,0,1.2,.5,1.2,.05)
  1050. for i=1,5 do
  1051. local freezepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"Effect",vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
  1052. freezepart.CanCollide=true
  1053. freezepart.CFrame=tehcf*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1054. look=(ref.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))).lookVector
  1055. freezepart.Velocity=(look*math.random(30,30))+vt(0,50,0)
  1056. game:GetService("Debris"):AddItem(freezepart,math.random(200,500)/100)
  1057. end
  1058. num=1
  1059. for i=0,1,0.1 do
  1060. swait()
  1061. MagicBlock(BrickColor.new("Medium blue"),tehcf,1,1,1,num,num,num,.15,1)
  1062. MagicSnowflake(BrickColor.new("White"),tehcf*cf(math.random(-1500,1500)/100,math.random(-1500,1500)/100,math.random(-1500,1500)/100),euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,.1)
  1063. num=num+.8
  1064. end
  1065. end
  1066. --swait(10)
  1067. for i=1,5 do
  1068. swait()
  1069. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1070. break
  1071. end
  1072. end
  1073. attack=false
  1074. end
  1075.  
  1076. function Guard()
  1077. attack=true
  1078. manualguardend=false
  1079. local dec=Instance.new("NumberValue",Decrease)
  1080. dec.Name="DecreaseMvmt"
  1081. dec.Value=.4
  1082. blocknum=blocknum-20
  1083. ---d=BlockOn:Clone()
  1084. ---d.Parent=Block
  1085. ---d.Disabled=false
  1086. for i=0,1,0.15 do
  1087. swait()
  1088. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1089. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3),.3)
  1090. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
  1091. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.3)
  1092. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1093. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1.27),.3)
  1094. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1095. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.3)
  1096. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.3)
  1097. end
  1098. guard=true
  1099. Block.Value=true
  1100. while guard==true and Block.Value==true and blocknum>1 do
  1101. swait()
  1102. blocknum=blocknum-.4
  1103. end
  1104. guard=false
  1105. if manualguardend==false and blocknum>1 then
  1106. so("199145967",prtt,1,1)
  1107. blocknum=0
  1108. MagicCircle(BrickColor.new("Cyan"),cf(sprt1.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),80,80,80,1,1,1,.02)
  1109. MagicBlock(BrickColor.new("Cyan"),cf(sprt1.Position),10,10,10,2,2,2,.02,1)
  1110. MagniDamage(sprt1,15,10,15,math.random(20,40),"Knockdown2",false,"Movement",.2,400,math.random(10,20),RootPart,0,1)
  1111. for i=0,1,0.1 do
  1112. swait()
  1113. for i=1,2 do
  1114. MagicSnowflake(BrickColor.new("White"),cf(sprt1.Position)*cf(math.random(-1000,1000)/100,math.random(-400,1000)/100,math.random(-1000,1000)/100),euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),2,2,2,.02)
  1115. end
  1116. end
  1117. end
  1118. Block.Value=false
  1119. d=BlockOff:Clone()
  1120. d.Parent=Block
  1121. d.Disabled=false
  1122. dec.Parent=nil
  1123. attack=false
  1124. end
  1125.  
  1126. function ShieldSlam()
  1127. attack=true
  1128. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1129. ref.Anchored=true
  1130. ref.CFrame=RootPart.CFrame*cf(0,0,-2)
  1131. game:GetService("Debris"):AddItem(ref,1)
  1132. for _,c in pairs(workspace:children()) do
  1133. local hum=c:findFirstChild("Humanoid")
  1134. if hum~=nil then
  1135. local head=c:findFirstChild("HumanoidRootPart")
  1136. if head~=nil then
  1137. if GetDist(head,ref,3)==true then
  1138. if head.Parent:findFirstChild("Stats")~=nil then
  1139. if head.Parent.Stats.Stunned.Value==true then
  1140. Humanoid.WalkSpeed=0
  1141. for i=0,1,0.2 do
  1142. swait()
  1143. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1144. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.3)
  1145. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.3)
  1147. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1148. LW.C0=clerp(LW.C0,cf(-1,1,-.5)*euler(2.5,0,1.3)*euler(0,0,0),.3)
  1149. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1150. end
  1151. hbwld.Parent=nil
  1152. hboxpos.Parent=hitbox
  1153. hitbox.Parent=modelzorz
  1154. hitbox.Size=vt(1,3.5,3)
  1155. hitboxCF=sprt1.CFrame*cf(0,.3,0)
  1156. hitbox.CFrame=hitboxCF
  1157. 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)
  1158. for i=0,1,0.15 do
  1159. swait()
  1160. hitboxCF=sprt1.CFrame*cf(0,.3,0)
  1161. hitbox.CFrame=hitboxCF
  1162. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1163. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,.6),.3)
  1164. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(0,0,-.6),.3)
  1165. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.3)
  1166. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1167. LW.C0=clerp(LW.C0,cf(-1.3,.2,-.5)*euler(1.3,0,1)*euler(0,0,0),.3)
  1168. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1169. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,0)*euler(0,0,-1),.3)
  1170. LH.C0=clerp(LH.C0,cf(-1,.2,-.4)*euler(0,-1.57,0)*euler(-.2,0,.2),.3)
  1171. end
  1172. con1:disconnect()
  1173. hitbox.Parent=modelzorz
  1174. hitbox.Size=vt()
  1175. hitboxweld()
  1176. hboxpos.Parent=nil
  1177. Humanoid.WalkSpeed=16
  1178. end
  1179. end
  1180. end
  1181. end
  1182. end
  1183. end
  1184. attack=false
  1185. end
  1186.  
  1187. function do1()
  1188. if attack==true then return end
  1189. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1190. if cooldowns[1]>=cooldownmax and mana.Value>=25 then
  1191. --if true then
  1192. attack=true
  1193. mana.Value=mana.Value-25
  1194. cooldowns[1]=0
  1195. local dec=Instance.new("NumberValue",Decrease)
  1196. dec.Name="DecreaseMvmt"
  1197. dec.Value=1
  1198. for i=0,1,0.15 do
  1199. swait()
  1200. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,0),.2)
  1201. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.2)
  1202. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,1.3),.2)
  1203. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.4,0,-1.2)*euler(0,1.3,0),.2)
  1204. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1205. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.3,0,.1)*euler(0,-.7,0),.2)
  1206. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1207. RH.C0=clerp(RH.C0,cf(.7,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.2)
  1208. LH.C0=clerp(LH.C0,cf(-.7,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.2)
  1209. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1210. break
  1211. end
  1212. end
  1213. blcf=nil
  1214. scfr=nil
  1215. for i=0,1,0.1 do
  1216. swait()
  1217. wld1.C0=clerp(wld1.C0,euler(2.9,0,0)*cf(0,1,0),.3)
  1218. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  1219. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.3)
  1220. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,1.9)*euler(0,1.57,0),.3)
  1221. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1222. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-.5)*euler(0,-.4,0),.3)
  1223. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1224. RH.C0=clerp(RH.C0,cf(.7,-1,-.5)*euler(0,1.57,0)*euler(0,1.57,0),.3)
  1225. LH.C0=clerp(LH.C0,cf(-.7,-1,.5)*euler(0,-1.57,0)*euler(0,1.57,0),.3)
  1226. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1227. break
  1228. end
  1229. end
  1230. num=-9
  1231. for i=1,3 do
  1232. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1233. break
  1234. end
  1235. for i=-.785,.785,.785 do
  1236. cff=RootPart.CFrame*euler(0,i/2,0)*cf(0,0,num)
  1237. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1238. ref.Anchored=true
  1239. ref.CFrame=cff
  1240. game:GetService("Debris"):AddItem(ref,1)
  1241. icehitfloor,iceposfloor,normal=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  1242. if icehitfloor~=nil then
  1243. so("199146035",ref,.5,1)
  1244. ref.CFrame=cf(iceposfloor)
  1245. MagniDamage(ref,7,10,15,0,"Normal",true,"Movement",.1,300,math.random(10,20),ref,.5,1)
  1246. MagicIcicle(BrickColor.new("Cyan"),cf(iceposfloor,iceposfloor+normal)*angles(-math.pi/2,0,0)*cf(0,-4,0),3,5,3,.02)
  1247. end
  1248. end
  1249. swait(5)
  1250. num=num-10
  1251. end
  1252. dec.Parent=nil
  1253. attack=false
  1254. end
  1255. end
  1256.  
  1257. function do2()
  1258. if attack==true then return end
  1259. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1260. if cooldowns[2]>=cooldownmax and mana.Value>=15 then
  1261. --if true then
  1262. attack=true
  1263. mana.Value=mana.Value-15
  1264. cooldowns[2]=0
  1265. so("199146109",prtt,1,1)
  1266. for i=0,1,0.3 do
  1267. swait()
  1268. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1269. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.2)*euler(-.6,0,0),.4)
  1270. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  1271. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,0,-1)*euler(0,1.4,0),.4)
  1272. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1273. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.5,0,-.5),.4)
  1274. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1275. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.4)
  1276. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.4)
  1277. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1278. break
  1279. end
  1280. end
  1281. hbwld.Parent=nil
  1282. hboxpos.Parent=hitbox
  1283. hitbox.Parent=modelzorz
  1284. hitbox.Size=vt(1.1,4,.5)
  1285. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  1286. hitbox.CFrame=hitboxCF
  1287. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,8,13,1,"Shatter",RootPart,.3,1,math.random(10,20),nil,true,true,"Shatter",.25,400,"Shatter") end)
  1288. blcf=nil
  1289. scfr=nil
  1290. for i=0,1,0.1 do
  1291. swait()
  1292. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  1293. hitbox.CFrame=hitboxCF
  1294. MagniDamage(hitbox,4,6,8,math.random(5,10),"Shatter",false,"Shatter",.1,200,math.random(5,8),RootPart,.65,1)
  1295. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,0),.3)
  1296. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(.3,0,0),.3)
  1297. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1298. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3)*euler(0,-.3,0),.3)
  1299. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1300. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.5,0,-.2),.3)
  1301. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1302. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  1303. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1304. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1305. break
  1306. end
  1307. end
  1308. so("199146109",prtt,1,1)
  1309. for i=0,1,0.3 do
  1310. swait()
  1311. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  1312. hitbox.CFrame=hitboxCF
  1313. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1314. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.6),.4)
  1315. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.6),.4)
  1316. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,-1,0),.4)
  1317. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1318. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.5,0,-.5),.4)
  1319. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1320. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.6,0),.4)
  1321. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.6,0),.4)
  1322. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1323. break
  1324. end
  1325. end
  1326. blcf=nil
  1327. scfr=nil
  1328. for i=0,1,0.1 do
  1329. swait()
  1330. hitboxCF=prtt.CFrame*cf(0,-1.2,0)
  1331. hitbox.CFrame=hitboxCF
  1332. MagniDamage(hitbox,4,6,7,math.random(5,10),"Shatter",false,"Shatter",.1,200,math.random(10,20),RootPart,.8,1)
  1333. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,0),.3)
  1334. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.1)*euler(.3,0,0),.3)
  1335. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  1336. RW.C0=clerp(RW.C0,cf(.8,0.5,-.6)*euler(-.2,0,-1.3)*euler(0,0,0),.3)
  1337. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1338. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.5,0,-.2),.3)
  1339. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1340. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  1341. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  1342. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1343. break
  1344. end
  1345. end
  1346. --con1:disconnect()
  1347. hitbox.Parent=modelzorz
  1348. hitbox.Size=vt()
  1349. hitboxweld()
  1350. hboxpos.Parent=nil
  1351. attack=false
  1352. end
  1353. end
  1354.  
  1355. function do3()
  1356. if attack==true then return end
  1357. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1358. if cooldowns[3]>=cooldownmax and mana.Value>=30 then
  1359. --if true then
  1360. attack=true
  1361. mana.Value=mana.Value-30
  1362. cooldowns[3]=0
  1363. for i=0,1,0.2 do
  1364. swait()
  1365. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1366. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2)*euler(.05,0,0),.4)
  1367. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.4),.4)
  1368. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.8)*euler(0,0,0),.4)
  1369. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1370. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0,-.5),.4)
  1371. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1372. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.4,0),.4)
  1373. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.4,0),.4)
  1374. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1375. break
  1376. end
  1377. end
  1378. local dec=Instance.new("NumberValue",Decrease)
  1379. dec.Name="DecreaseMvmt"
  1380. dec.Value=10
  1381. donum=7
  1382. DecreaseStat(Character,"Defense",-.1,500)
  1383. for i=0,1,0.05 do
  1384. swait()
  1385. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*50 end
  1386. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.2)
  1387. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,-.5)*euler(.2,0,0),.2)
  1388. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1)*euler(0,0,0),.2)
  1389. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1390. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.4,0,1)*euler(0,-.2,0),.2)
  1391. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1392. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.6),.2)
  1393. LH.C0=clerp(LH.C0,cf(-1,-.4,-.4)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.2),.2)
  1394. if donum>=7 then
  1395. donum=0
  1396. cff=RootPart.CFrame*cf(0,0,-5)
  1397. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1398. ref.Anchored=true
  1399. ref.CFrame=cff
  1400. game:GetService("Debris"):AddItem(ref,1)
  1401. so("199145433",ref,1,1)
  1402. --so("199146181",ref,.8,1.2)
  1403. so("199146181",ref,1,1)
  1404. MagniDamage(Torso,15,5,6,0,"Normal",true,"Movement",.1,200,math.random(5,10),Torso,0,1)
  1405. MagicCircle(BrickColor.new("Cyan"),cf(ref.Position)*cf(0,-2,0),1,1,1,4,1,4,.02)
  1406. MagicWave2(BrickColor.new("Medium blue"),cf(ref.Position),0,0,0,1.2,.5,1.2,.05)
  1407. for i=1,20 do
  1408. MagicSnowflake(BrickColor.new("White"),cf(ref.Position)*cf(math.random(-1500,1500)/100,math.random(-100,100)/100,math.random(-1500,1500)/100),euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),2,2,2,.03)
  1409. end
  1410. end
  1411. donum=donum+1
  1412. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1413. break
  1414. end
  1415. end
  1416. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1417. else
  1418. so("199146181",sprt1,1,1)
  1419. MagniDamage(Torso,15,6,8,0,"Normal",true,"Movement",.1,200,math.random(5,10))
  1420. MagicCircle(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-2,0),1,1,1,4,1,4,.02)
  1421. DecreaseStat(Character,"Defense",-.1,500)
  1422. for i=1,20 do
  1423. MagicSnowflake(BrickColor.new("White"),cf(Torso.Position)*cf(math.random(-1500,1500)/100,math.random(-100,100)/100,math.random(-1500,1500)/100),euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),2,2,2,.01)
  1424. end
  1425. for i=1,10 do
  1426. swait()
  1427. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1428. break
  1429. end
  1430. end
  1431. end
  1432. for i=0,1,0.2 do
  1433. swait()
  1434. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1435. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.3)
  1436. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.8),.3)
  1437. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.3)
  1438. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1439. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(1.57,0,1.2)*euler(0,.2,0),.3)
  1440. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1441. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.8,0),.25)
  1442. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.8,0),.25)
  1443. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1444. break
  1445. end
  1446. end
  1447. for i=1,10 do
  1448. swait()
  1449. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1450. break
  1451. end
  1452. end
  1453. dec.Parent=nil
  1454. attack=false
  1455. end
  1456. end
  1457.  
  1458. function do4()
  1459. if attack==true then return end
  1460. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1461. if cooldowns[4]>=cooldownmax and mana.Value>=50 then
  1462. --if true then
  1463. attack=true
  1464. --mana.Value=mana.Value-50
  1465. cooldowns[4]=0
  1466. local dec=Instance.new("NumberValue",Decrease)
  1467. dec.Name="DecreaseMvmt"
  1468. dec.Value=10
  1469. for i=0,1,0.2 do
  1470. swait()
  1471. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1472. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.1)*euler(-.05,0,0),.3)
  1473. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.2),.3)
  1474. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,0,-.8)*euler(0,1,0),.3)
  1475. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1476. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.5,0,-.5),.3)
  1477. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1478. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.2,0),.3)
  1479. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,0),.3)
  1480. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1481. break
  1482. end
  1483. end
  1484. for i=0,1,0.1 do
  1485. swait()
  1486. wld1.C0=clerp(wld1.C0,euler(3.14,0,0)*cf(0,1,0),.3)
  1487. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.3)
  1488. RootJoint.C0=clerp(RootJoint.C0,RootCF,.3)
  1489. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.14,0,0)*euler(0,1.57,0),.3)
  1490. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1491. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.5,0,-1),.3)
  1492. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1493. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1494. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1495. end
  1496. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1497. ref.Anchored=true
  1498. ref.CFrame=prtt.CFrame
  1499. game:GetService("Debris"):AddItem(ref,20)
  1500. local sou=Instance.new("Sound",ref)
  1501. sou.Volume=1
  1502. sou.Pitch=1
  1503. sou.Looped=true
  1504. sou.SoundId="http://www.roblox.com/asset/?id=142840797"
  1505. --swait()
  1506. sou:play()
  1507. table.insert(Effects,{MouseLook,"Blizzard",ref,300,2,10,30})
  1508. swait(10)
  1509. for i=0,1,0.1 do
  1510. swait()
  1511. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,0),.2)
  1512. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.2)
  1513. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,1.3),.2)
  1514. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.4,0,-1.2)*euler(0,1.3,0),.2)
  1515. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1516. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.3,0,.1)*euler(0,-.7,0),.2)
  1517. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1518. RH.C0=clerp(RH.C0,cf(.7,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.2)
  1519. LH.C0=clerp(LH.C0,cf(-.7,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.2)
  1520. end
  1521. blcf=nil
  1522. scfr=nil
  1523. for i=0,1,0.1 do
  1524. swait()
  1525. wld1.C0=clerp(wld1.C0,euler(2.9,0,0)*cf(0,1,0),.3)
  1526. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  1527. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.3)
  1528. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,1.9)*euler(0,1.57,0),.3)
  1529. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1530. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-.5)*euler(0,-.4,0),.3)
  1531. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1532. RH.C0=clerp(RH.C0,cf(.7,-1,-.5)*euler(0,1.57,0)*euler(0,1.57,0),.3)
  1533. LH.C0=clerp(LH.C0,cf(-.7,-1,.5)*euler(0,-1.57,0)*euler(0,1.57,0),.3)
  1534. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1535. break
  1536. end
  1537. end
  1538. for i=1,10 do
  1539. swait()
  1540. ref.CFrame=ref.CFrame*cf(0,0,.2)
  1541. end
  1542. dec.Parent=nil
  1543. attack=false
  1544. for i=1,300 do
  1545. swait()
  1546. ref.CFrame=ref.CFrame*cf(0,0,.2)
  1547. end
  1548. ref.Parent=nil
  1549. end
  1550. end
  1551.  
  1552. function Hail(thePart)
  1553. --numb=(1-(accuracy*.01))*5
  1554. --spread=vt((math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb)*(gunpart.Position-MMouse.Hit.p).magnitude/100
  1555. --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spread)
  1556. print((thePart.Position-MMouse.Hit.p).magnitude)
  1557. local MouseLook=cf((thePart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1558. table.insert(Effects,{MouseLook,"Shoot",30,thePart.Position,5,7,0,0})
  1559. end
  1560.  
  1561. function DecreaseStat(Model,Stat,Amount,Duration)
  1562. if Model:findFirstChild("Stats")~=nil then
  1563. if Model.Stats[Stat]~=nil then
  1564. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1565. d=Instance.new("NumberValue",Model.Stats.Decrease)
  1566. dur=Instance.new("NumberValue",d)
  1567. dur.Name="Duration"
  1568. dur.Value=Duration
  1569. game:GetService("Debris"):AddItem(d,20)
  1570. if Stat=="Damage" then
  1571. d.Name="DecreaseAtk"
  1572. elseif Stat=="Defense" then
  1573. d.Name="DecreaseDef"
  1574. elseif Stat=="Movement" then
  1575. d.Name="DecreaseMvmt"
  1576. end
  1577. if Model:findFirstChild("Torso")~=nil then
  1578. display=""
  1579. if Stat=="Damage" then
  1580. if Amount>0 then
  1581. display="-Damage"
  1582. else
  1583. display="+Damage"
  1584. end
  1585. elseif Stat=="Defense" then
  1586. if Amount>0 then
  1587. display="-Defense"
  1588. else
  1589. display="+Defense"
  1590. end
  1591. elseif Stat=="Movement" then
  1592. if Amount>0 then
  1593. display="-Movement"
  1594. else
  1595. display="+Movement"
  1596. end
  1597. end
  1598. showDamage(Model,display,"Debuff")
  1599. end
  1600. d.Value=Amount
  1601. --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  1602. end
  1603. end
  1604. end
  1605.  
  1606. function GetDist(Part1,Part2,magni)
  1607. local targ=Part1.Position-Part2.Position
  1608. local mag=targ.magnitude
  1609. if mag<=magni then
  1610. return true
  1611. else
  1612. return false
  1613. end
  1614. end
  1615.  
  1616. function MagniDamage(Part,magni,mindam,maxdam,knock,Type,Ranged,Dec,DecAm,Dur,stun,KnockP,Deb,KnockType)
  1617. for _,c in pairs(workspace:children()) do
  1618. local hum=c:findFirstChild("Humanoid")
  1619. if hum~=nil then
  1620. local head=nil
  1621. for _,d in pairs(c:children()) do
  1622. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  1623. if d.className=="Model" and Ranged==false then
  1624. head=d:findFirstChild("Hitbox")
  1625. if d.Parent==Character then break end
  1626. if head~=nil then
  1627. local targ=head.Position-Part.Position
  1628. local mag=targ.magnitude
  1629. if mag<=magni and c.Name~=Player.Name then
  1630. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1631. ref.Anchored=true
  1632. ref.CFrame=cf(head.Position)
  1633. game:GetService("Debris"):AddItem(ref,1)
  1634. hitnum=math.random(1,5)
  1635. if hitnum==1 then so("199148971",ref,1,1)
  1636. elseif hitnum==2 then so("199149025",ref,1,1)
  1637. elseif hitnum==3 then so("199149072",ref,1,1)
  1638. elseif hitnum==4 then so("199149109",ref,1,1)
  1639. elseif hitnum==5 then so("199149119",ref,1,1)
  1640. end
  1641. --StaggerHit.Value=true
  1642. end
  1643. end
  1644. end
  1645. if d.className=="Part" then
  1646. head=d
  1647. if head~=nil then
  1648. local targ=head.Position-Part.Position
  1649. local mag=targ.magnitude
  1650. if mag<=magni and c.Name~=Player.Name then
  1651. if stun==nil then
  1652. stun=math.random(5,10)
  1653. end
  1654. local Rang=nil
  1655. if Ranged==false then
  1656. Rang=true
  1657. end
  1658. local stag=nil
  1659. if shbash==true then
  1660. stag=true
  1661. end
  1662. Sou=nil
  1663. if Type=="Shatter" then
  1664. Sou="Shatter"
  1665. end
  1666. Damagefunc(head,mindam,maxdam,knock,Type,KnockP,Deb,KnockType,stun,stag,Rang,Ranged,Dec,DecAm,Dur,Sou)
  1667. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  1668. end
  1669. end
  1670. end
  1671. end
  1672. end
  1673. end
  1674. end
  1675.  
  1676. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1677. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1678. end
  1679.  
  1680. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1681. LastPoint=Point
  1682. function effect(Color,Ref,LP,P1,returnn)
  1683. if LP==nil or P1==nil then return end
  1684. local effectsmsh=Instance.new("CylinderMesh")
  1685. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1686. effectsmsh.Name="Mesh"
  1687. local effectsg=Instance.new("Part")
  1688. NoOutline(effectsg)
  1689. effectsg.formFactor=3
  1690. effectsg.CanCollide=false
  1691. effectsg.Name="Eff"
  1692. effectsg.Locked=true
  1693. effectsg.Anchored=true
  1694. effectsg.Size=Vector3.new(0.5,1,0.5)
  1695. effectsg.Parent=workspace
  1696. effectsmsh.Parent=effectsg
  1697. effectsg.BrickColor=BrickColor.new(Color)
  1698. effectsg.Reflectance=Ref
  1699. local point1=P1
  1700. local mg=(LP.p - point1.p).magnitude
  1701. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1702. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1703. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1704. game:GetService("Debris"):AddItem(effectsg,2)
  1705. if returnn then return effectsg end
  1706. if not returnn then
  1707. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  1708. end
  1709. end
  1710.  
  1711. local function CFrameFromTopBack(at, top, back)
  1712. local right = top:Cross(back)
  1713. return CFrame.new(at.x, at.y, at.z,
  1714. right.x, top.x, back.x,
  1715. right.y, top.y, back.y,
  1716. right.z, top.z, back.z)
  1717. end
  1718.  
  1719. function Triangle(a, b, c)
  1720. local edg1 = (c-a):Dot((b-a).unit)
  1721. local edg2 = (a-b):Dot((c-b).unit)
  1722. local edg3 = (b-c):Dot((a-c).unit)
  1723. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1724. a, b, c = a, b, c
  1725. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1726. a, b, c = b, c, a
  1727. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1728. a, b, c = c, a, b
  1729. else
  1730. assert(false, "unreachable")
  1731. end
  1732.  
  1733. local len1 = (c-a):Dot((b-a).unit)
  1734. local len2 = (b-a).magnitude - len1
  1735. local width = (a + (b-a).unit*len1 - c).magnitude
  1736.  
  1737. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1738.  
  1739. local list = {}
  1740.  
  1741. if len1 > 0.01 then
  1742. local w1 = Instance.new('WedgePart', m)
  1743. game:GetService("Debris"):AddItem(w1,5)
  1744. w1.Material = "SmoothPlastic"
  1745. w1.FormFactor = 'Custom'
  1746. w1.BrickColor = BrickColor.new("Medium blue")
  1747. w1.Transparency = 0
  1748. w1.Reflectance = 0
  1749. w1.Material = "SmoothPlastic"
  1750. w1.CanCollide = false
  1751. NoOutline(w1)
  1752. local sz = Vector3.new(0.2, width, len1)
  1753. w1.Size = sz
  1754. local sp = Instance.new("SpecialMesh",w1)
  1755. sp.MeshType = "Wedge"
  1756. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1757. w1:BreakJoints()
  1758. w1.Anchored = true
  1759. w1.Parent = workspace
  1760. w1.Transparency = 0.7
  1761. table.insert(Effects,{w1,"Disappear",.05})
  1762. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1763. table.insert(list,w1)
  1764. end
  1765.  
  1766. if len2 > 0.01 then
  1767. local w2 = Instance.new('WedgePart', m)
  1768. game:GetService("Debris"):AddItem(w2,5)
  1769. w2.Material = "SmoothPlastic"
  1770. w2.FormFactor = 'Custom'
  1771. w2.BrickColor = BrickColor.new("Medium blue")
  1772. w2.Transparency = 0
  1773. w2.Reflectance = 0
  1774. w2.Material = "SmoothPlastic"
  1775. w2.CanCollide = false
  1776. NoOutline(w2)
  1777. local sz = Vector3.new(0.2, width, len2)
  1778. w2.Size = sz
  1779. local sp = Instance.new("SpecialMesh",w2)
  1780. sp.MeshType = "Wedge"
  1781. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1782. w2:BreakJoints()
  1783. w2.Anchored = true
  1784. w2.Parent = workspace
  1785. w2.Transparency = 0.7
  1786. table.insert(Effects,{w2,"Disappear",.05})
  1787. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1788. table.insert(list,w2)
  1789. end
  1790. return unpack(list)
  1791. end
  1792.  
  1793. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  1794. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1795. prt.Anchored=true
  1796. prt.CFrame=cframe
  1797. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1798. game:GetService("Debris"):AddItem(prt,10)
  1799. if Type==1 or Type==nil then
  1800. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  1801. elseif Type==2 then
  1802. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  1803. end
  1804. end
  1805.  
  1806. function MagicSnowflake(brickcolor,cframe,eul,x1,y1,z1,delay)
  1807. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1808. prt.Anchored=true
  1809. prt.CFrame=cframe*eul
  1810. ID=""
  1811. rand=math.random(1,3)
  1812. if rand==1 then
  1813. ID="187687161"
  1814. elseif rand==2 then
  1815. ID="187687175"
  1816. else
  1817. ID="187687193"
  1818. end
  1819. msh=mesh("SpecialMesh",prt,"FileMesh",ID,vt(0,0,0),vt(x1,y1,z1))
  1820. game:GetService("Debris"):AddItem(prt,10)
  1821. table.insert(Effects,{prt,"Snowflake",delay,cframe,msh})
  1822. end
  1823.  
  1824. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1825. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1826. prt.Anchored=true
  1827. prt.CFrame=cframe
  1828. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1829. game:GetService("Debris"):AddItem(prt,10)
  1830. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1831. end
  1832.  
  1833. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1834. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1835. prt.Anchored=true
  1836. prt.CFrame=cframe
  1837. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1838. game:GetService("Debris"):AddItem(prt,10)
  1839. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1840. end
  1841.  
  1842. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  1843. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1844. prt.Anchored=true
  1845. prt.CFrame=cframe
  1846. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  1847. game:GetService("Debris"):AddItem(prt,10)
  1848. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  1849. end
  1850.  
  1851. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1852. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1853. prt.Anchored=true
  1854. prt.CFrame=cframe
  1855. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  1856. game:GetService("Debris"):AddItem(prt,10)
  1857. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1858. end
  1859.  
  1860. function MagicWave2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1861. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1862. prt.Anchored=true
  1863. prt.CFrame=cframe
  1864. local msh=mesh("SpecialMesh",prt,"FileMesh","1051557",vt(0,0,0),vt(x1,y1,z1))
  1865. game:GetService("Debris"):AddItem(prt,10)
  1866. table.insert(Effects,{prt,"Spin",delay,x3,y3,z3,msh,.4})
  1867. end
  1868.  
  1869. function MagicIcicle(brickcolor,cframe,x1,y1,z1,delay)
  1870. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1871. prt.Anchored=true
  1872. prt.CFrame=cframe
  1873. msh=mesh("SpecialMesh",prt,"FileMesh","1778999",vt(0,0,0),vt(x1,y1,z1))
  1874. game:GetService("Debris"):AddItem(prt,10)
  1875. for i=1,5 do
  1876. BreakEffect(BrickColor.new("Cyan"),prt.CFrame*cf(0,4,0),math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  1877. end
  1878. for i=1,6 do
  1879. local freezepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(1,2)+math.random(),math.random(1,2)+math.random(),math.random(1,2)+math.random()))
  1880. freezepart.Anchored=true
  1881. freezepart.CanCollide=true
  1882. freezepart.CFrame=cframe*cf(math.random(-300,300)/100,4,math.random(-300,300)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1883. game:GetService("Debris"):AddItem(freezepart,10)
  1884. end
  1885. table.insert(Effects,{prt,"Ice",delay,msh,1,.2})
  1886. end
  1887.  
  1888. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1889. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1890. prt.Anchored=true
  1891. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1892. game:GetService("Debris"):AddItem(prt,10)
  1893. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1894. local num=math.random(10,50)/1000
  1895. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  1896. --table.insert(Effects,{prt,"Shatter",.02,msh})
  1897. --[[
  1898. 1=prt
  1899. 2=Shatter
  1900. 3=.02
  1901. 4=Thing[1].CFrame
  1902. 5=randnum
  1903. 6=Numbb
  1904. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1905. CF=Part.CFrame
  1906. Numbb=0
  1907. randnumb=math.random()-math.random()
  1908. for i=0,1,0.05 do
  1909. wait()
  1910. CF=CF*cf(0,1,0)
  1911. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1912. Part.CFrame=CF*euler(Numbb,0,0)
  1913. Part.Transparency=i
  1914. Numbb=Numbb+randnumb
  1915. end
  1916. Part.Parent=nil
  1917. end),prt,CF,Numbb,randnumb)]]
  1918. end
  1919.  
  1920. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1921. if hit.Parent==nil then
  1922. return
  1923. end
  1924. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  1925. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1926. ref.Anchored=true
  1927. ref.CFrame=cf(hit.Position)
  1928. game:GetService("Debris"):AddItem(ref,1)
  1929. hitnum=math.random(1,5)
  1930. if hitnum==1 then so("199148971",ref,1,1)
  1931. elseif hitnum==2 then so("199149025",ref,1,1)
  1932. elseif hitnum==3 then so("199149072",ref,1,1)
  1933. elseif hitnum==4 then so("199149109",ref,1,1)
  1934. elseif hitnum==5 then so("199149119",ref,1,1)
  1935. end
  1936. --StaggerHit.Value=true
  1937. end
  1938. h=hit.Parent:FindFirstChild("Humanoid")
  1939. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1940. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1941. if Player.Neutral==false then
  1942. if hit.Parent:findFirstChild("Alignment")~=nil then
  1943. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  1944. end
  1945. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1946. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  1947. end
  1948. end
  1949. if Sound=="Shatter" then
  1950. so("199146069",hit,1,1)
  1951. end
  1952. c=Instance.new("ObjectValue")
  1953. c.Name="creator"
  1954. c.Value=game:service("Players").LocalPlayer
  1955. c.Parent=h
  1956. RecentEnemy.Value=hit.Parent
  1957. game:GetService("Debris"):AddItem(c,.5)
  1958. minim=minim*Atk.Value
  1959. maxim=maxim*Atk.Value
  1960. Damage=0
  1961. if minim==maxim then
  1962. Damage=maxim
  1963. else
  1964. Damage=math.random(minim,maxim)
  1965. end
  1966. blocked=false
  1967. enblock=nil
  1968. Stats=hit.Parent:findFirstChild("Stats")
  1969. if Stats~=nil then
  1970. invis=Stats:findFirstChild("Invisibility")
  1971. isinvis=Stats:findFirstChild("IsInvisible")
  1972. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  1973. invis.Value=0
  1974. end
  1975. enblock=Stats:findFirstChild("Block")
  1976. if enblock~=nil then
  1977. if enblock.Value==true then
  1978. blocked=true
  1979. end
  1980. end
  1981. if Stats:findFirstChild("Defense")~=nil then
  1982. Damage=Damage/(Stats.Defense.Value)
  1983. if Sound~="Shatter" then
  1984. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  1985. hitnum=math.random(1,5)
  1986. if hitnum==1 then so("199149321",hit,1,1)
  1987. elseif hitnum==2 then so("199149338",hit,1,1)
  1988. elseif hitnum==3 then so("199149367",hit,1,1)
  1989. elseif hitnum==4 then so("199149409",hit,1,1)
  1990. elseif hitnum==5 then so("199149452",hit,1,1)
  1991. end
  1992. elseif ranged==false or ranged==nil and blocked~=true then
  1993. hitnum=math.random(1,6)
  1994. if hitnum==1 then so("199149137",hit,1,1)
  1995. elseif hitnum==2 then so("199149186",hit,1,1)
  1996. elseif hitnum==3 then so("199149221",hit,1,1)
  1997. elseif hitnum==4 then so("199149235",hit,1,1)
  1998. elseif hitnum==5 then so("199149269",hit,1,1)
  1999. elseif hitnum==6 then so("199149297",hit,1,1)
  2000. end
  2001. end
  2002. end
  2003. if Damage<=3 and staghit==true then
  2004. --StaggerHit.Value=true
  2005. end
  2006. end
  2007. if Stats:findFirstChild("Stun")~=nil then
  2008. if blocked==true then
  2009. incstun=incstun/2
  2010. end
  2011. if Stats.Stun.Value<Stats.StunThreshold.Value then
  2012. Stats.Stun.Value=Stats.Stun.Value+incstun
  2013. end
  2014. end
  2015. if Stats:findFirstChild("Stagger")~=nil then
  2016. if stagger==true then
  2017. Stats.Stagger.Value=true
  2018. end
  2019. end
  2020. end
  2021. if blocked==true then
  2022. showDamage(hit.Parent,"Block","Damage")
  2023. if ranged~=true then
  2024. enblock.Value=false
  2025. Stagger.Value=true
  2026. hitnum=math.random(1,2)
  2027. if hitnum==1 then so("199148933",hit,1,1)
  2028. elseif hitnum==2 then so("199148947",hit,1,1)
  2029. end
  2030. end
  2031. else
  2032. addhit=true
  2033. Damage=math.floor(Damage)
  2034. coroutine.resume(coroutine.create(function(Hum,Dam)
  2035. hit.Parent.Humanoid:TakeDamage(Damage)
  2036. end),h,Damage)
  2037. showDamage(hit.Parent,Damage,"Damage")
  2038. if DecreaseState~=nil then
  2039. if DecreaseState=="Shatter" then
  2040. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  2041. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  2042. else
  2043. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  2044. end
  2045. end
  2046. if Type=="Knockdown" then
  2047. hum=hit.Parent.Humanoid
  2048. hum.PlatformStand=true
  2049. coroutine.resume(coroutine.create(function(HHumanoid)
  2050. swait(1)
  2051. HHumanoid.PlatformStand=false
  2052. end),hum)
  2053. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2054. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2055. local bodvol=Instance.new("BodyVelocity")
  2056. bodvol.velocity=angle*knockback
  2057. bodvol.P=5000
  2058. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2059. bodvol.Parent=hit
  2060. rl=Instance.new("BodyAngularVelocity")
  2061. rl.P=3000
  2062. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2063. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2064. rl.Parent=hit
  2065. game:GetService("Debris"):AddItem(bodvol,.5)
  2066. game:GetService("Debris"):AddItem(rl,.5)
  2067. elseif Type=="Shatter" then
  2068. for i=1,10 do
  2069. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  2070. end
  2071. elseif Type=="Knockdown2" then
  2072. hum=hit.Parent.Humanoid
  2073. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2074. local bodvol=Instance.new("BodyVelocity")
  2075. bodvol.velocity=angle*knockback
  2076. bodvol.P=5000
  2077. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2078. bodvol.Parent=hit
  2079. game:GetService("Debris"):AddItem(bodvol,.5)
  2080. elseif Type=="Normal" then
  2081. vp=Instance.new("BodyVelocity")
  2082. vp.P=500
  2083. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2084. if KnockbackType==1 then
  2085. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2086. elseif KnockbackType==2 then
  2087. vp.velocity=Property.CFrame.lookVector*knockback
  2088. end
  2089. game:GetService("Debris"):AddItem(vp,.5)
  2090. if knockback>0 then
  2091. vp.Parent=hit.Parent.Torso
  2092. end
  2093. end
  2094. end
  2095. debounce=Instance.new("BoolValue")
  2096. debounce.Name="DebounceHit"
  2097. debounce.Parent=hit.Parent
  2098. debounce.Value=true
  2099. game:GetService("Debris"):AddItem(debounce,Delay)
  2100. c=Instance.new("ObjectValue")
  2101. c.Name="creator"
  2102. c.Value=Player
  2103. c.Parent=h
  2104. game:GetService("Debris"):AddItem(c,.5)
  2105. CRIT=false
  2106. end
  2107. end
  2108.  
  2109. showDamage=function(Char,Dealt,Type)
  2110. m=Instance.new("Model")
  2111. m.Name="Effect"
  2112. c=Instance.new("Part")
  2113. c.Transparency=1
  2114. c.Name="Head"
  2115. c.TopSurface=0
  2116. c.BottomSurface=0
  2117. c.formFactor="Plate"
  2118. c.Size=Vector3.new(1,.4,1)
  2119. b=Instance.new("BillboardGui",c)
  2120. b.Size=UDim2.new(5,0,5,0)
  2121. b.AlwaysOnTop=true
  2122. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  2123. if Type=="Damage" then
  2124. damgui.Font="SourceSans"
  2125. if Dealt=="Block" then
  2126. damgui.TextColor3=BrickColor.new("Bright blue").Color
  2127. elseif Dealt<3 then
  2128. damgui.TextColor3=BrickColor.new("White").Color
  2129. elseif Dealt>=3 and Dealt<20 then
  2130. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  2131. else
  2132. damgui.TextColor3=BrickColor.new("Really red").Color
  2133. damgui.Font="SourceSansBold"
  2134. end
  2135. elseif Type=="Debuff" then
  2136. damgui.TextColor3=BrickColor.new("White").Color
  2137. elseif Type=="Interrupt" then
  2138. damgui.TextColor3=BrickColor.new("New Yeller").Color
  2139. end
  2140. --damgui.FontSize="Size48"
  2141. damgui.TextScaled=true
  2142. ms=Instance.new("CylinderMesh")
  2143. ms.Scale=Vector3.new(.8,.8,.8)
  2144. ms.Parent=c
  2145. c.Reflectance=0
  2146. Instance.new("BodyGyro").Parent=c
  2147. c.Parent=m
  2148. if Char:findFirstChild("Head")~=nil then
  2149. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2150. elseif Char.Parent:findFirstChild("Head")~=nil then
  2151. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2152. end
  2153. f=Instance.new("BodyPosition")
  2154. f.P=2000
  2155. f.D=100
  2156. f.maxForce=Vector3.new(545000,545000,545000)
  2157. if Type=="Damage" then
  2158. f.position=c.Position+Vector3.new(0,3,0)
  2159. elseif Type=="Debuff" or Type=="Interrupt" then
  2160. f.position=c.Position+Vector3.new(0,5,0)
  2161. end
  2162. f.Parent=c
  2163. game:GetService("Debris"):AddItem(m,5)
  2164. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  2165. c.CanCollide=false
  2166. m.Parent=workspace
  2167. c.CanCollide=false
  2168. end
  2169.  
  2170. combo=0
  2171. function ob1d(mouse)
  2172. if attack==true or equipped==false then return end
  2173. hold=true
  2174. if combo==0 then
  2175. combo=1
  2176. attackone()
  2177. elseif combo==1 then
  2178. combo=2
  2179. attacktwo()
  2180. elseif combo==2 then
  2181. combo=3
  2182. attackthree()
  2183. elseif combo==3 then
  2184. combo=0
  2185. attackfour()
  2186. end
  2187. coroutine.resume(coroutine.create(function()
  2188. for i=1,50 do
  2189. if attack==false then
  2190. swait()
  2191. end
  2192. end
  2193. if attack==false then
  2194. combo=0
  2195. end
  2196. end))
  2197. end
  2198.  
  2199. function ob1u(mouse)
  2200. hold = false
  2201. end
  2202.  
  2203. buttonhold = false
  2204.  
  2205. fenbarmove1.MouseButton1Click:connect(do1)
  2206. fenbarmove2.MouseButton1Click:connect(do2)
  2207. fenbarmove3.MouseButton1Click:connect(do3)
  2208. fenbarmove4.MouseButton1Click:connect(do4)
  2209. eul=0
  2210. equipped=false
  2211. function key(key)
  2212. if key=="e" then
  2213. if guard==true then
  2214. guard=false
  2215. manualguardend=true
  2216. end
  2217. end
  2218. if attack==true then return end
  2219. if key=="f" then
  2220. pressedf=true
  2221. fnumb=0
  2222. attack=true
  2223. if equipped==false then
  2224. equipped=true
  2225. RSH=ch.Torso["Right Shoulder"]
  2226. LSH=ch.Torso["Left Shoulder"]
  2227. --
  2228. RSH.Parent=nil
  2229. LSH.Parent=nil
  2230. --
  2231. RW.Name="Right Shoulder"
  2232. RW.Part0=ch.Torso
  2233. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2234. RW.C1=cf(0, 0.5, 0)
  2235. RW.Part1=ch["Right Arm"]
  2236. RW.Parent=ch.Torso
  2237. --
  2238. LW.Name="Left Shoulder"
  2239. LW.Part0=ch.Torso
  2240. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2241. LW.C1=cf(0, 0.5, 0)
  2242. LW.Part1=ch["Left Arm"]
  2243. LW.Parent=ch.Torso
  2244. --
  2245. Animate.Parent=nil
  2246. equipanim()
  2247. else
  2248. equipped=false
  2249. hideanim()
  2250. LH.C1=LHC1
  2251. RH.C1=RHC1
  2252. Animate.Parent=Humanoid
  2253. swait(0)
  2254. RW.Parent=nil
  2255. LW.Parent=nil
  2256. RSH.Parent=player.Character.Torso
  2257. LSH.Parent=player.Character.Torso
  2258. end
  2259. attack=false
  2260. end
  2261. if equipped==false then return end
  2262. if key=="e" then
  2263. if guard==false and blocknum==100 then
  2264. Guard()
  2265. end
  2266. end
  2267. --[[if key=="q" then
  2268. attack=true
  2269. for i=0,1,0.05 do
  2270. swait()
  2271. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3)*euler(-.1,0,0),.4)
  2272. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*euler(0,0,-.3)*euler(.2,0,0),.4)
  2273. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
  2274. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2275. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(1.57,0,1.07),.3)
  2276. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2277. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,-.4),.4)
  2278. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,.2),.4)
  2279. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2280. break
  2281. end
  2282. end
  2283. swait(100)
  2284. attack=false
  2285. end]]
  2286. if key=="z" then
  2287. do1()
  2288. end
  2289. if key=="x" then
  2290. do2()
  2291. end
  2292. if key=="c" then
  2293. do3()
  2294. end
  2295. if key=="v" then
  2296. do4()
  2297. end
  2298. if attack==false then
  2299. RecentEnemy.Value=nil
  2300. end
  2301. end
  2302.  
  2303. function key2(key)
  2304.  
  2305.  
  2306. end
  2307.  
  2308. function s(mouse)
  2309. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2310. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2311. mouse.KeyDown:connect(key)
  2312. mouse.KeyUp:connect(key2)
  2313.  
  2314. player=Player
  2315. ch=Character
  2316. MMouse=mouse
  2317. end
  2318.  
  2319. function ds(mouse)
  2320. end
  2321.  
  2322. Bin.Selected:connect(s)
  2323. Bin.Deselected:connect(ds)
  2324. print("Frigost loaded.")
  2325.  
  2326. local mananum=0
  2327. local blocknum2=0
  2328. local donum=0
  2329. local stunnum=0
  2330. local staggeranim=false
  2331. local stunanim=false
  2332. local Point=nil
  2333. local LastPoint=nil
  2334. local walk=0
  2335. local walkforw=true
  2336. while true do
  2337. swait()
  2338. StaggerHit.Value=false
  2339. if Humanoid.Health<=0 then
  2340. attack=true
  2341. resumeControl()
  2342. modelzorz.Parent=workspace
  2343. game:GetService("Debris"):AddItem(modelzorz,30)
  2344. for i=1,#Weapon do
  2345. Weapon[i].Parent=modelzorz
  2346. Weapon[i].CanCollide=true
  2347. end
  2348. for i=1,#Welds do
  2349. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  2350. Welds[i].Parent=nil
  2351. else
  2352. Welds[i].Parent=prt1
  2353. end
  2354. end
  2355. end
  2356. if fnumb<21 then
  2357. fnumb=fnumb+1
  2358. if pressedf==false then
  2359. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  2360. tellbar.TextTransparency=tellbar.TextTransparency-.05
  2361. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  2362. else
  2363. if fnumb==20 then
  2364. fenframe5.Parent=nil
  2365. print("daigui")
  2366. end
  2367. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  2368. tellbar.TextTransparency=tellbar.TextTransparency+.05
  2369. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  2370. end
  2371. end
  2372. if hbwld.Parent==nil then
  2373. hitbox2.Name="Hitbox"
  2374. else
  2375. hitbox2.Name="Hitbox2"
  2376. end
  2377. hitbox2.Parent=hitbox.Parent
  2378. hitbox2.Size=hitbox.Size
  2379. hitbox2.CFrame=hitboxCF
  2380. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2381. if Stagger.Value==true and staggeranim==false then
  2382. coroutine.resume(coroutine.create(function()
  2383. staggeranim=true
  2384. while attack==true do
  2385. swait()
  2386. end
  2387. StaggerAnim()
  2388. StaggerHit.Value=false
  2389. Stagger.Value=false
  2390. staggeranim=false
  2391. end))
  2392. end
  2393. if StaggerHit.Value==true and staggeranim==false then
  2394. coroutine.resume(coroutine.create(function()
  2395. staggeranim=true
  2396. while attack==true do
  2397. swait()
  2398. end
  2399. StaggerHitt()
  2400. StaggerHit.Value=false
  2401. Stagger.Value=false
  2402. staggeranim=false
  2403. end))
  2404. end
  2405. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  2406. Humanoid.WalkSpeed=0
  2407. else
  2408. Humanoid.WalkSpeed=16*Mvmt.Value
  2409. end
  2410. if Stun.Value>=StunT.Value and stunanim==false then
  2411. coroutine.resume(coroutine.create(function()
  2412. stunanim=true
  2413. while attack==true do
  2414. swait()
  2415. end
  2416. StunAnim()
  2417. Stun.Value=0
  2418. stunanim=false
  2419. end))
  2420. end
  2421. local stunnum2=45
  2422. if stunnum>=stunnum2 then
  2423. if Stun.Value>0 then
  2424. Stun.Value=Stun.Value-1
  2425. end
  2426. stunnum=0
  2427. end
  2428. stunnum=stunnum+1
  2429. if donum>=.5 then
  2430. handidle=true
  2431. elseif donum<=0 then
  2432. handidle=false
  2433. end
  2434. if handidle==false then
  2435. donum=donum+0.003
  2436. else
  2437. donum=donum-0.003
  2438. end
  2439. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2440. local velderp=RootPart.Velocity.y
  2441. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2442. if equipped==true then
  2443. if attack==false then
  2444. idle=idle+1
  2445. else
  2446. idle=0
  2447. end
  2448. if idle>=500 then
  2449. if attack==false then
  2450. --Sheath()
  2451. end
  2452. end
  2453. if Anim=="Walk" then
  2454. if walkforw==true then
  2455. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2456. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2457. else
  2458. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2459. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2460. end
  2461. else
  2462. RH.C1=clerp(RH.C1,RHC1,.2)
  2463. LH.C1=clerp(LH.C1,LHC1,.2)
  2464. end
  2465. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2466. Anim="Jump"
  2467. if attack==false then
  2468. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  2469. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  2470. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2471. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.2)
  2472. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2473. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.8)*euler(0,-.7,0),.2)
  2474. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2475. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2476. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2477. end
  2478. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2479. Anim="Fall"
  2480. if attack==false then
  2481. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  2482. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  2483. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2484. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.3,0,0.2),.2)
  2485. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2486. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.3,0,-0.2),.2)
  2487. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2488. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2489. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2490. end
  2491. elseif torvel<1 and hitfloor~=nil then
  2492. Anim="Idle"
  2493. if attack==false then
  2494. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.15)
  2495. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.15)
  2496. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.15)
  2497. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.15)
  2498. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2+(donum/5),0,.4-(donum/3)),.15)
  2499. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  2500. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(.7+(donum/3),0,.4+(donum/3))*euler(0,-.4,0),.15)
  2501. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  2502. RH.C0=clerp(RH.C0,RHC0,.2)
  2503. LH.C0=clerp(LH.C0,LHC0,.2)
  2504. end
  2505. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  2506. Anim="Walk"
  2507. --print(walk)
  2508. walk=walk+1
  2509. if walk>=15-(5*Mvmt.Value) then
  2510. walk=0
  2511. if walkforw==true then
  2512. walkforw=false
  2513. elseif walkforw==false then
  2514. walkforw=true
  2515. end
  2516. end
  2517. if attack==false then
  2518. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2519. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.2)
  2520. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,-.5),.2)
  2521. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4+(donum/2),0,.6-(donum/1)),.2)
  2522. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2523. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(.5+(donum/3),0,.8+(donum/3))*euler(0,-.7,0),.2)
  2524. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2525. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.6,0),.2)
  2526. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.2)
  2527. end
  2528. elseif torvel>=30 and hitfloor~=nil then
  2529. Anim="Run"
  2530. if attack==false then
  2531. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.4)
  2532. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.3,0,0),.4)
  2533. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.87,0,-.8)*euler(0,3.14,0),.4)
  2534. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2535. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.97,0,.8)*euler(0,0,0),.4)
  2536. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2537. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.2,0,.2),.4)
  2538. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0,-1.57,0)*euler(-.2,0,-.2),.4)
  2539. end
  2540. end
  2541. end
  2542. if #Effects>0 then
  2543. --table.insert(Effects,{prt,"Block1",delay})
  2544. for e=1,#Effects do
  2545. if Effects[e]~=nil then
  2546. --for j=1,#Effects[e] do
  2547. local Thing=Effects[e]
  2548. if Thing~=nil then
  2549. local Part=Thing[1]
  2550. local Mode=Thing[2]
  2551. local Delay=Thing[3]
  2552. local IncX=Thing[4]
  2553. local IncY=Thing[5]
  2554. local IncZ=Thing[6]
  2555. --[[if Thing[2]=="DecreaseStat" then
  2556. Thing[5]=Thing[5]-1
  2557. if Thing[5]<=0 then
  2558. if Thing[1]:findFirstChild("Stats")~=nil then
  2559. if Thing[1].Stats:findFirstChild("Decrease")~=nil then
  2560. end
  2561. end
  2562. Thing[6].Parent=nil
  2563. table.remove(Effects,e)
  2564. end
  2565. end]]
  2566. if Thing[2]=="Shoot" then
  2567. local Look=Thing[1]
  2568. Look=Thing[1]*CFrame.Angles(math.rad(Thing[8]),0,0)
  2569. Thing[8]=Thing[8]-1
  2570. local hit,pos = rayCast(Thing[4],Look.lookVector,3,modelzorz)
  2571. local mag=(Thing[4]-pos).magnitude
  2572. MagicCircle(BrickColor.new("White"),CFrame.new((Thing[4]+pos)/2,pos),20,20,20,0,0,0,.5)
  2573. Thing[4]=Thing[4]+(Look.lookVector*3)
  2574. Thing[3]=Thing[3]-1
  2575. if hit~=nil then
  2576. Thing[3]=0
  2577. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,.1,2,math.random(3,8),nil,nil,true,"Defense",.05,100)
  2578. ref=part(3,workspace,0,1,BrickColor.new("White"),"Reference",vt(0.2,0.2,0.2))
  2579. ref.Anchored=true
  2580. ref.CFrame=cf(pos)
  2581. game:GetService("Debris"):AddItem(ref,1)
  2582. MagicCircle(BrickColor.new("White"),cf(pos),20,20,20,10,10,10,.1)
  2583. MagniDamage(ref,15,4,6,math.random(30,50),"Knockdown2",true,"Movement",.3,300,math.random(10,15))
  2584. end
  2585. if Thing[3]<=0 then
  2586. table.remove(Effects,e)
  2587. end
  2588. end
  2589. if Thing[2]=="CylinderClang" then
  2590. if Thing[3]<=1 then
  2591. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  2592. Thing[7]=Thing[1].CFrame
  2593. effect("New Yeller",0,Thing[8],Thing[7])
  2594. Thing[8]=Thing[7]
  2595. Thing[3]=Thing[3]+Thing[4]
  2596. else
  2597. Part.Parent=nil
  2598. table.remove(Effects,e)
  2599. end
  2600. --[[Mesh=Thing[7]
  2601. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2602. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  2603. end
  2604. if Thing[2]=="showDamage" then
  2605. if Thing[6]<Thing[5] then
  2606. Thing[6]=Thing[6]+1
  2607. elseif Thing[6]<Thing[7] then
  2608. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  2609. Thing[6]=Thing[6]+1
  2610. elseif Thing[6]<Thing[8] then
  2611. Thing[6]=Thing[6]+1
  2612. elseif Thing[6]<Thing[9] then
  2613. Thing[6]=Thing[6]+1
  2614. Thing[4].position=Thing[4].position+vt(0,.2,0)
  2615. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  2616. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  2617. else
  2618. Thing[1].Parent=nil
  2619. table.remove(Effects,e)
  2620. end
  2621. end
  2622. if Thing[2]=="Blizzard" then
  2623. if Thing[4]>=0 then
  2624. blizcf=cf(Thing[3].Position)
  2625. Thing[4]=Thing[4]-1
  2626. local size=math.random(300,3000)/100
  2627. MagicBlock(BrickColor.new("Medium blue"),blizcf,size,size,size,1,1,1,.2,1)
  2628. MagicSnowflake(BrickColor.new("White"),blizcf*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100),euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,.03)
  2629. if Thing[5]>=2 then
  2630. Thing[5]=0
  2631. MagicBlock(BrickColor.new("Cyan"),blizcf*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
  2632. else
  2633. Thing[5]=Thing[5]+1
  2634. end
  2635. if Thing[6]>=10 then
  2636. Thing[6]=0
  2637. MagicWave2(BrickColor.new("Medium blue"),blizcf*euler(0,math.random(-50,50),0),20,20,20,1,.2,1,.05)
  2638. else
  2639. Thing[6]=Thing[6]+1
  2640. end
  2641. if Thing[7]>=25 then
  2642. Thing[7]=0
  2643. MagniDamage(Thing[3],20,5,7,math.random(-80,-65),"Knockdown2",true,"Movement",.1,300,math.random(2,7),Thing[3],0,1)
  2644. else
  2645. Thing[7]=Thing[7]+1
  2646. end
  2647. else
  2648. table.remove(Effects,e)
  2649. end
  2650. end
  2651. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Shoot" and Thing[2]~="Blizzard" then
  2652. if Thing[1].Transparency<=1 then
  2653. if Thing[2]=="Block1" then
  2654. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2655. Mesh=Thing[7]
  2656. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2657. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2658. elseif Thing[2]=="Ice" then
  2659. --prt,"Ice",delay,msh,1,.2
  2660. if Thing[6]<=Thing[5] then
  2661. Thing[6]=Thing[6]+.05
  2662. Thing[1].CFrame=Thing[1].CFrame*cf(0,.4,0)
  2663. else
  2664. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2665. end
  2666. elseif Thing[2]=="Snowflake" then
  2667. Thing[1].CFrame=Thing[1].CFrame
  2668. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2669. elseif Thing[2]=="Shatter" then
  2670. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2671. Thing[4]=Thing[4]*cf(0,Thing[7],0)
  2672. Thing[1].CFrame=Thing[4]*euler(Thing[6],0,0)
  2673. --Thing[1].CFrame=Thing[1].CFrame
  2674. Thing[6]=Thing[6]+Thing[5]
  2675. elseif Thing[2]=="Block2" then
  2676. Thing[1].CFrame=Thing[1].CFrame
  2677. Mesh=Thing[7]
  2678. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2679. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2680. elseif Thing[2]=="Cylinder" then
  2681. Mesh=Thing[7]
  2682. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2683. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2684. elseif Thing[2]=="Spin" then
  2685. Mesh=Thing[7]
  2686. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2687. Thing[1].CFrame=Thing[1].CFrame*euler(0,Thing[8],0)
  2688. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2689. elseif Thing[2]=="Blood" then
  2690. Mesh=Thing[7]
  2691. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2692. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2693. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2694. elseif Thing[2]=="Elec" then
  2695. Mesh=Thing[7]
  2696. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2697. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2698. elseif Thing[2]=="Disappear" then
  2699. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2700. end
  2701. else
  2702. Part.Parent=nil
  2703. table.remove(Effects,e)
  2704. end
  2705. end
  2706. end
  2707. --end
  2708. end
  2709. end
  2710. end
  2711. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  2712. fenbarmana4.Text="Mana("..mana.Value..")"
  2713. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  2714. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  2715. fenbarhp3.Text="("..(math.floor(Humanoid.Health)).." / "..(math.floor(Humanoid.MaxHealth))..")"
  2716. fenbarblock2:TweenSize(UDim2.new(.4,0,-4*blocknum/100,0),nil,1,0.4,true)
  2717. fenbarblock3.Text="Block("..math.floor(blocknum)..")"
  2718. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  2719. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  2720. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  2721. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  2722. for _,c in pairs(Decrease:children()) do
  2723. if c:findFirstChild("Duration")~=nil then
  2724. c.Duration.Value=c.Duration.Value-1
  2725. if c.Duration.Value<=0 then
  2726. c.Parent=nil
  2727. end
  2728. end
  2729. if c.Name=="DecreaseAtk" then
  2730. decreaseatk=decreaseatk+c.Value
  2731. elseif c.Name=="DecreaseDef" then
  2732. decreasedef=decreasedef+c.Value
  2733. elseif c.Name=="DecreaseMvmt" then
  2734. decreasemvmt=decreasemvmt+c.Value
  2735. end
  2736. end
  2737. Atk.Value=1-decreaseatk
  2738. if Atk.Value<=0 then
  2739. Atk.Value=0
  2740. end
  2741. Def.Value=1-decreasedef
  2742. if Def.Value<=0 then
  2743. Def.Value=0.01
  2744. end
  2745. Mvmt.Value=1-decreasemvmt
  2746. if Mvmt.Value<=0 then
  2747. Mvmt.Value=0
  2748. end
  2749. decreaseatk=0
  2750. decreasedef=0
  2751. decreasemvmt=0
  2752. AtkVal=Atk.Value*100
  2753. AtkVal=math.floor(AtkVal)
  2754. AtkVal=AtkVal/100
  2755. fenbardamage.Text="Damage\
  2756. ("..(AtkVal*100).."%)"
  2757. DefVal=Def.Value*100
  2758. DefVal=math.floor(DefVal)
  2759. DefVal=DefVal/100
  2760. fenbardef.Text="Defense\
  2761. ("..(DefVal*100).."%)"
  2762. MvmtVal=Mvmt.Value*100
  2763. MvmtVal=math.floor(MvmtVal)
  2764. MvmtVal=MvmtVal/100
  2765. if Rooted.Value==true then MvmtVal=0 end
  2766. fenbarmove.Text="Walkspeed\
  2767. ("..(MvmtVal*100).."%)"
  2768. if Stun.Value>=StunT.Value then
  2769. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  2770. else
  2771. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  2772. end
  2773. fenbarstun3.Text="Stun("..Stun.Value..")"
  2774. if mana.Value>=100 then
  2775. mana.Value=100
  2776. else
  2777. if mananum<=8 then
  2778. mananum=mananum+1
  2779. else
  2780. mananum=0
  2781. mana.Value=mana.Value+1
  2782. end
  2783. end
  2784. --[[if cooldown1>=cooldownmax then
  2785. cooldown1=cooldownmax
  2786. else
  2787. cooldown1=cooldown1+cooldownadd1
  2788. end]]
  2789. for i=1,#cooldowns do
  2790. if cooldowns[i]>=cooldownmax then
  2791. cooldowns[i]=cooldownmax
  2792. else
  2793. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  2794. end
  2795. end
  2796. if blocknum>=100 then
  2797. blocknum=100
  2798. else
  2799. if blocknum2<=8 then
  2800. --if blocknum2<=0 then
  2801. blocknum2=blocknum2+1
  2802. else
  2803. blocknum2=0
  2804. if guard==false then
  2805. blocknum=blocknum+1
  2806. end
  2807. end
  2808. end
  2809. end
  2810.  
  2811. --[[
  2812. Copyrighted (C) Fenrier 2015
  2813. Fixed by methaphone
  2814. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement