Advertisement
memberhero

Strife Class Fix 2

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