Advertisement
astronaut32

frigost guard

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