Advertisement
Dark_EccentricYT

Untitled

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