Advertisement
Dark_EccentricYT

Untitled

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