Legendofawesomeness3

Grim

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