Dark_EccentricYT

Untitled

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