Dark_EccentricYT

Untitled

May 20th, 2018
1,870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.71 KB | None | 0 0
  1. --[ Fixed by all_suck ]--
  2. taunting = false
  3. math.randomseed(tick())
  4. local plr = game.Players.LocalPlayer
  5. local uis = game:GetService("UserInputService")
  6. repeat
  7. wait()
  8. until plr.Character and plr.Character:WaitForChild("Torso") and plr.Character:WaitForChild("Humanoid")
  9. local char = plr.Character
  10. local torso = char.Torso
  11. local humanoid = char.Humanoid
  12. local canTaunt = false
  13. local charStats = Instance.new("Folder", char)
  14. charStats.Name = "CharStats"
  15. speed = Instance.new("NumberValue", charStats)
  16. speed.Name = "Speed"
  17. speed.Value = 10
  18. local Anim
  19. LS = torso["Left Shoulder"]
  20. LH = torso["Left Hip"]
  21. RS = torso["Right Shoulder"]
  22. RH = torso["Right Hip"]
  23. Neck = torso.Neck
  24. it = Instance.new
  25. vt = Vector3.new
  26. cf = CFrame.new
  27. euler = CFrame.fromEulerAnglesXYZ
  28. angles = CFrame.Angles
  29. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  30. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  31. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  32. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  34. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  35. RootPart = char.HumanoidRootPart
  36. RootJoint = RootPart.RootJoint
  37. RootCF = euler(-1.57, 0, 3.14)
  38. player = nil
  39. RSH, LSH = nil, nil
  40. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  41. RW.Name = "Right Shoulder"
  42. LW.Name = "Left Shoulder"
  43. Sheathed = true
  44. SwordStance = false
  45. Charge = 0
  46. RSH = char.Torso["Right Shoulder"]
  47. LSH = char.Torso["Left Shoulder"]
  48. RSH.Parent = nil
  49. LSH.Parent = nil
  50. RW.Name = "Right Shoulder"
  51. RW.Part0 = char.Torso
  52. RW.C0 = cf(1.5, 0.5, 0)
  53. RW.C1 = cf(0, 0.5, 0)
  54. RW.Part1 = char["Right Arm"]
  55. RW.Parent = char.Torso
  56. LW.Name = "Left Shoulder"
  57. LW.Part0 = char.Torso
  58. LW.C0 = cf(-1.5, 0.5, 0)
  59. LW.C1 = cf(0, 0.5, 0)
  60. LW.Part1 = char["Left Arm"]
  61. LW.Parent = char.Torso
  62. local cam = workspace.CurrentCamera
  63. local Effects = Instance.new("Model", char)
  64. Effects.Name = "Effects"
  65. local currentattack, basicattacking
  66. local walkspeed = 14
  67. humanoid.WalkSpeed = walkspeed
  68. mouse = plr:GetMouse()
  69. sinecount, normcount, tweentick, tweenrot, tweenrotm = 0, 0, 0, 0, 0
  70. Mode = "Positive"
  71. local Key1 = Enum.KeyCode.Q
  72. local Key2 = Enum.KeyCode.E
  73. local Key3 = Enum.KeyCode.R
  74. local Key4 = Enum.KeyCode.F
  75. local key1re = 5
  76. local key2re = 6
  77. local key3re = 10
  78. local key4re = 1
  79. local atk1d = 3.2
  80. local atk2d = 1.8
  81. local atk3d = 3
  82. local atk4d = 0
  83. local key1db = false
  84. local key2db = false
  85. local key3db = false
  86. local key4db = false
  87. local attacking = Instance.new("BoolValue", charStats)
  88. attacking.Value = false
  89. attacking.Name = "Attacking"
  90. local PosAtk1 = "Up"
  91. local PosAtk2 = "Force Push"
  92. local PosAtk3 = "Gravity Field"
  93. local PosAtk4 = "Inverse Polarity"
  94. local NegAtk1 = "Down"
  95. local NegAtk2 = "Fissure"
  96. local NegAtk3 = "Black Hole"
  97. local NegAtk4 = "Inverse Polarity"
  98. local Click1 = Enum.UserInputType.MouseButton1
  99. local ComboAttacks = {
  100. "Combo1",
  101. "Combo2",
  102. "Combo3"
  103. }
  104. local counter = 1
  105. local countermax = #ComboAttacks
  106. local combo1duration = 0.8
  107. local combo2duration = 1
  108. local combo3duration = 1.2
  109. click1db = false
  110. local Stab1Dam = 10
  111. local Stab2Dam = 10
  112. local Stab3Dam = 1
  113. local Attack1Damage = 2.5
  114. local Attack2Damage = 15
  115. local Attack3Damage = 13
  116. local Attack4Damage
  117. local Energy = Instance.new("NumberValue", charStats)
  118. Energy.Name = "EnergyAmount"
  119. Energy.Value = math.huge
  120. local Attack1Energy = 0
  121. local Attack2Energy = 0
  122. local Attack3Energy = 0
  123. local Attack4Energy = 0
  124. function rayCast(Pos, Dir, Max, Ignore)
  125. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  126. end
  127. function thread(f)
  128. coroutine.resume(coroutine.create(f))
  129. end
  130. function swait(num)
  131. if num == 0 or num == nil then
  132. game:service("RunService").Stepped:wait(0)
  133. else
  134. for i = 0, num do
  135. game:service("RunService").Stepped:wait(0)
  136. end
  137. end
  138. end
  139. function clerp(a, b, t)
  140. local qa = {
  141. QuaternionFromCFrame(a)
  142. }
  143. local qb = {
  144. QuaternionFromCFrame(b)
  145. }
  146. local ax, ay, az = a.x, a.y, a.z
  147. local bx, by, bz = b.x, b.y, b.z
  148. local _t = 1 - t
  149. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  150. end
  151. function QuaternionFromCFrame(cf)
  152. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  153. local trace = m00 + m11 + m22
  154. if trace > 0 then
  155. local s = math.sqrt(1 + trace)
  156. local recip = 0.5 / s
  157. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  158. else
  159. local i = 0
  160. if m00 < m11 then
  161. i = 1
  162. end
  163. if m22 > (i == 0 and m00 or m11) then
  164. i = 2
  165. end
  166. if i == 0 then
  167. local s = math.sqrt(m00 - m11 - m22 + 1)
  168. local recip = 0.5 / s
  169. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  170. elseif i == 1 then
  171. local s = math.sqrt(m11 - m22 - m00 + 1)
  172. local recip = 0.5 / s
  173. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  174. elseif i == 2 then
  175. local s = math.sqrt(m22 - m00 - m11 + 1)
  176. local recip = 0.5 / s
  177. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  178. end
  179. end
  180. end
  181. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  182. local xs, ys, zs = x + x, y + y, z + z
  183. local wx, wy, wz = w * xs, w * ys, w * zs
  184. local xx = x * xs
  185. local xy = x * ys
  186. local xz = x * zs
  187. local yy = y * ys
  188. local yz = y * zs
  189. local zz = z * zs
  190. 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))
  191. end
  192. function QuaternionSlerp(a, b, t)
  193. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  194. local startInterp, finishInterp
  195. if cosTheta >= 1.0E-4 then
  196. if 1 - cosTheta > 1.0E-4 then
  197. local theta = math.acos(cosTheta)
  198. local invSinTheta = 1 / math.sin(theta)
  199. startInterp = math.sin((1 - t) * theta) * invSinTheta
  200. finishInterp = math.sin(t * theta) * invSinTheta
  201. else
  202. startInterp = 1 - t
  203. finishInterp = t
  204. end
  205. elseif 1 + cosTheta > 1.0E-4 then
  206. local theta = math.acos(-cosTheta)
  207. local invSinTheta = 1 / math.sin(theta)
  208. startInterp = math.sin((t - 1) * theta) * invSinTheta
  209. finishInterp = math.sin(t * theta) * invSinTheta
  210. else
  211. startInterp = t - 1
  212. finishInterp = t
  213. end
  214. 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
  215. end
  216. function round(num)
  217. local a, b = math.modf(num)
  218. if num % 1 ~= 0 then
  219. return math.floor(num) + math.floor(b * 10 + 0.5) / 10
  220. else
  221. return math.floor(num)
  222. end
  223. end
  224. function NoOutline(Part)
  225. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  226. end
  227. function newPart(parent, brickcolor, transparency, anchored, cancollide, size, name)
  228. local fp = Instance.new("Part")
  229. fp.Parent = parent
  230. fp.Transparency = transparency
  231. fp.Anchored = anchored
  232. fp.CanCollide = cancollide
  233. fp.Locked = true
  234. fp.BrickColor = BrickColor.new(brickcolor)
  235. fp.Name = name
  236. fp.Size = size
  237. fp.Position = torso.Position
  238. NoOutline(fp)
  239. fp.Material = "SmoothPlastic"
  240. fp:BreakJoints()
  241. fp.CFrame = RootPart.CFrame
  242. return fp
  243. end
  244. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  245. local mesh = Instance.new(Mesh)
  246. mesh.Parent = part
  247. if Mesh == "SpecialMesh" then
  248. mesh.MeshType = meshtype
  249. if meshid then
  250. mesh.MeshId = meshid
  251. end
  252. end
  253. if offset then
  254. mesh.Offset = offset
  255. end
  256. mesh.Scale = scale
  257. return mesh
  258. end
  259. function weld(parent, part0, part1, c0)
  260. local weld = Instance.new("Weld")
  261. weld.Parent = parent
  262. weld.Part0 = part0
  263. weld.Part1 = part1
  264. weld.C0 = c0
  265. return weld
  266. end
  267. function createBlockPart()
  268. local part = Instance.new("Part", Effects)
  269. part.Anchored = true
  270. part.CanCollide = false
  271. part.Size = Vector3.new(1, 1, 1)
  272. part.BrickColor = BrickColor.new(Mode == "Negative" and "Really black" or "Lily white")
  273. part.Transparency = 0.4
  274. part.Material = Mode == "Negative" and "Granite" or "Neon"
  275. part.CFrame = RootPart.CFrame
  276. coroutine.resume(coroutine.create(function()
  277. if humanoid.Health <= 0 then
  278. part:Destroy()
  279. end
  280. end), part)
  281. return part
  282. end
  283. function createSpherePart()
  284. local part = Instance.new("Part", Effects)
  285. part.Anchored = true
  286. part.CanCollide = false
  287. part.Size = Vector3.new(1, 1, 1)
  288. part.BrickColor = BrickColor.new(Mode == "Negative" and "Really black" or "Lily white")
  289. part.Transparency = 0.4
  290. part.Material = "Neon"
  291. part.Material = Mode == "Negative" and "Granite" or "Neon"
  292. local pmesh = Instance.new("SpecialMesh", part)
  293. pmesh.MeshType = "Sphere"
  294. part.CFrame = RootPart.CFrame
  295. return part, pmesh
  296. end
  297. function createPulsePart()
  298. local pulse = Instance.new("Part", Effects)
  299. pulse.BrickColor = BrickColor.new("Lily white")
  300. pulse.Material = "Neon"
  301. pulse.Transparency = 0.2
  302. pulse.Anchored = true
  303. pulse.CanCollide = false
  304. pulse.Size = Vector3.new(5, 5, 0.2)
  305. local pulsem = Instance.new("SpecialMesh", pulse)
  306. pulsem.MeshId = "http://www.roblox.com/asset/?id=3270017"
  307. pulsem.Scale = Vector3.new(10, 10, 0.2)
  308. pulse.CFrame = RootPart.CFrame
  309. return pulse, pulsem
  310. end
  311. function createBodyVelocity(vtors)
  312. local bv = Instance.new("BodyVelocity", vtors)
  313. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  314. bv.P = 1250
  315. return bv
  316. end
  317. function randomangles()
  318. local random = math.rad((math.random() - 0.5) * 180)
  319. local randomangles = CFrame.Angles(random, random, random)
  320. return randomangles
  321. end
  322. function findCloseHumanoid(centre, distance)
  323. local tab = {}
  324. for _, child in pairs(game.Workspace:GetChildren()) do
  325. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= humanoid and child:findFirstChild("Torso") then
  326. local vtors = child.Torso
  327. local mag = math.abs((vtors.Position - centre).magnitude)
  328. if distance >= mag then
  329. table.insert(tab, child.Humanoid)
  330. end
  331. end
  332. end
  333. return tab
  334. end
  335. function sound(id, par, vol, dur, pit)
  336. coroutine.resume(coroutine.create(function()
  337. local sou = Instance.new("Sound", par or workspace)
  338. sou.Volume = vol
  339. sou.Pitch = pit or 1
  340. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  341. swait()
  342. sou:play()
  343. thread(function()
  344. wait(dur)
  345. sou:Destroy()
  346. end)
  347. return sou
  348. end))
  349. end
  350. --loldamage
  351. function basicDamage(vhum, damage, colour)
  352. if not vhum or not vhum.Parent:findFirstChild("Humanoid") then
  353. return
  354. end
  355. vhum.Parent.Humanoid:TakeDamage(damage)
  356. local damagepart = Instance.new("Part", Effects)
  357. damagepart.Transparency = 1
  358. damagepart.Anchored = true
  359. damagepart.CanCollide = false
  360. damagepart.Size = Vector3.new(1, 1, 1)
  361. damagepart.Name = "DamagePart"
  362. damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
  363. local g = Instance.new("BillboardGui", damagepart)
  364. g.Enabled = true
  365. g.Adornee = damagepart
  366. g.Size = UDim2.new(5, 0, 5, 0)
  367. g.ExtentsOffset = Vector3.new(0, 0, 0)
  368. g.StudsOffset = Vector3.new(0, 0, 0)
  369. local t = Instance.new("TextLabel", g)
  370. t.BackgroundTransparency = 1
  371. t.Font = "ArialBold"
  372. t.TextSize = 24
  373. t.Text = "-" .. round(damage)
  374. if round(damage) % 1 == 0 then
  375. t.Text = "-" .. round(damage) .. ".0"
  376. end
  377. t.Size = UDim2.new(1, 0, 1, 0)
  378. t.TextStrokeTransparency = 0
  379. t.TextTransparency = 0
  380. t.TextScaled = true
  381. t.TextWrapped = true
  382. t.TextXAlignment = "Center"
  383. t.TextYAlignment = "Center"
  384. t.TextColor3 = colour
  385. coroutine.resume(coroutine.create(function()
  386. for i = 1, 50 do
  387. game:GetService("RunService").Heartbeat:wait()
  388. local sinewave = math.sin(i / 500) * 4
  389. damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
  390. t.TextTransparency = t.TextTransparency + 0.02
  391. t.TextStrokeTransparency = t.TextTransparency + 0.02
  392. end
  393. damagepart:Destroy()
  394. end), t)
  395. end
  396. --xdddddddddddd
  397. function keyDown(key, clientinput)
  398. if clientinput then
  399. return
  400. end
  401. if not humanoid or not torso or humanoid.Health <= 0 then
  402. return
  403. end
  404. if attacking.Value == true then
  405. return
  406. end
  407. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  408. if click1db then
  409. return
  410. end
  411. local attack = ComboAttacks[counter]
  412. currentattack = attack
  413. if attack == "Combo1" then
  414. attacking.Value = true
  415. do
  416. local p = createBlockPart()
  417. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  418. p.Size = Vector3.new(1.25, 1.25, 1.25)
  419. p.Transparency = 0.4
  420. p.Parent = Effects
  421. local p2 = createBlockPart()
  422. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  423. p2.Size = Vector3.new(1.75, 1.75, 1.75)
  424. p2.Transparency = 0.6
  425. p2.Parent = Effects
  426. for i = 0, 1.1, 0.05 do
  427. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), 0, math.rad(90)), 0.14)
  428. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-90)), 0.14)
  429. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.14)
  430. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60), 0, 0), 0.14)
  431. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, -math.rad(45)), 0.14)
  432. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  433. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  434. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  435. swait()
  436. end
  437. for i = 0, 0.8, 0.05 do
  438. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.16)
  439. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(80)), 0.16)
  440. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.16)
  441. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, math.rad(35)), 0.16)
  442. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(60)), 0.16)
  443. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.16)
  444. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  445. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  446. if i > 0 and i < 0.1 then
  447. thread(function()
  448. sound(300915947, char.Head, 0.5, 4, 1)
  449. for i = 1, 2 do
  450. do
  451. local s, smesh = createSpherePart()
  452. s.Transparency = 0.2
  453. thread(function()
  454. for i = 1, 18 do
  455. wait()
  456. local sinewave = 100 * math.asin(i / 100)
  457. smesh.Scale = smesh.Scale + Vector3.new(sinewave * 0.05, sinewave * 0.05, sinewave * 0.05)
  458. s.CFrame = p.CFrame
  459. s.Transparency = s.Transparency + 0.044444444444444446
  460. end
  461. s:Destroy()
  462. end)
  463. wait(0.05)
  464. end
  465. end
  466. end)
  467. thread(function()
  468. wait(0.1)
  469. local closeHumanoids = findCloseHumanoid(p.Position, 7)
  470. for _, vhum in pairs(closeHumanoids) do
  471. if Mode ~= "Positive" or not Color3.fromRGB(255, 255, 255) then
  472. end
  473. basicDamage(vhum, Stab1Dam, (Color3.fromRGB(0, 0, 0)))
  474. if vhum.Parent:findFirstChild("Torso") then
  475. do
  476. local vtors = vhum.Parent.Torso
  477. local bv = createBodyVelocity(vtors)
  478. bv.Velocity = (vtors.Position - torso.Position).unit * (Mode == "Negative" and -4 or 10) + Vector3.new(0, 2, 0)
  479. delay(0.5, function()
  480. bv:Destroy()
  481. end)
  482. end
  483. end
  484. end
  485. end)
  486. end
  487. swait()
  488. end
  489. thread(function()
  490. for i = 1, 10 do
  491. wait()
  492. p.Transparency = p.Transparency + 0.06
  493. p2.Transparency = p.Transparency + 0.04
  494. end
  495. p:Destroy()
  496. p2:Destroy()
  497. end)
  498. wait(0.1)
  499. attacking.Value = false
  500. end
  501. end
  502. if attack == "Combo2" then
  503. attacking.Value = true
  504. do
  505. local p = createBlockPart()
  506. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  507. p.Size = Vector3.new(1.25, 1.25, 1.25)
  508. p.Transparency = 0.4
  509. p.Parent = Effects
  510. local p2 = createBlockPart()
  511. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  512. p2.Size = Vector3.new(1.75, 1.75, 1.75)
  513. p2.Transparency = 0.6
  514. p2.Parent = Effects
  515. for i = 0, 1.1, 0.05 do
  516. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), 0, math.rad(-90)), 0.14)
  517. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(90)), 0.14)
  518. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(45)), 0.14)
  519. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  520. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(60), 0, 0), 0.14)
  521. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  522. p.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  523. p2.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  524. swait()
  525. end
  526. for i = 0, 0.8, 0.05 do
  527. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), 0, math.rad(80)), 0.16)
  528. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-80)), 0.16)
  529. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-60)), 0.16)
  530. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.16)
  531. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0), 0.16)
  532. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, math.rad(-35)), 0.16)
  533. p.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  534. p2.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  535. if i > 0 and i < 0.1 then
  536. thread(function()
  537. sound(300915983, char.Head, 0.5, 4, 1)
  538. for i = 1, 2 do
  539. do
  540. local s, smesh = createSpherePart()
  541. s.Transparency = 0.2
  542. thread(function()
  543. for i = 1, 18 do
  544. wait()
  545. local sinewave = 100 * math.asin(i / 100)
  546. smesh.Scale = smesh.Scale + Vector3.new(sinewave * 0.05, sinewave * 0.05, sinewave * 0.05)
  547. s.CFrame = p.CFrame
  548. s.Transparency = s.Transparency + 0.044444444444444446
  549. end
  550. s:Destroy()
  551. end)
  552. wait(0.05)
  553. end
  554. end
  555. end)
  556. thread(function()
  557. wait(0.1)
  558. local closeHumanoids = findCloseHumanoid(p.Position, 7)
  559. for _, vhum in pairs(closeHumanoids) do
  560. if Mode ~= "Positive" or not Color3.fromRGB(255, 255, 255) then
  561. end
  562. basicDamage(vhum, Stab1Dam, (Color3.fromRGB(0, 0, 0)))
  563. if vhum.Parent:findFirstChild("Torso") then
  564. do
  565. local vtors = vhum.Parent.Torso
  566. local bv = createBodyVelocity(vtors)
  567. bv.Velocity = (vtors.Position - torso.Position).unit * (Mode == "Negative" and -4 or 10) + Vector3.new(0, 2, 0)
  568. delay(0.5, function()
  569. bv:Destroy()
  570. end)
  571. end
  572. end
  573. end
  574. end)
  575. end
  576. swait()
  577. end
  578. thread(function()
  579. for i = 1, 10 do
  580. wait()
  581. p.Transparency = p.Transparency + 0.06
  582. p2.Transparency = p.Transparency + 0.04
  583. end
  584. p:Destroy()
  585. p2:Destroy()
  586. end)
  587. wait(0.1)
  588. attacking.Value = false
  589. end
  590. end
  591. if attack == "Combo3" then
  592. attacking.Value = true
  593. do
  594. local p = createBlockPart()
  595. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  596. p.Size = Vector3.new(1.25, 1.25, 1.25)
  597. p.Transparency = 0.4
  598. p.Parent = Effects
  599. local p2 = createBlockPart()
  600. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  601. p2.Size = Vector3.new(1.75, 1.75, 1.75)
  602. p2.Transparency = 0.6
  603. p2.Parent = Effects
  604. local p3 = createBlockPart()
  605. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0)
  606. p3.Size = Vector3.new(1.25, 1.25, 1.25)
  607. p3.Transparency = 0.4
  608. p3.Parent = Effects
  609. local p4 = createBlockPart()
  610. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0)
  611. p4.Size = Vector3.new(1.75, 1.75, 1.75)
  612. p4.Transparency = 0.6
  613. p4.Parent = Effects
  614. for i = 0, 1.1, 0.05 do
  615. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.14)
  616. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.05, 0, math.rad(0)), 0.14)
  617. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(50)), 0.14)
  618. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  619. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.14)
  620. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  621. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  622. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  623. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  624. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  625. swait()
  626. end
  627. thread(function()
  628. sound(300916014, char.Head, 0.5, 4, 2)
  629. local s, smesh = createSpherePart()
  630. s.Transparency = 0.2
  631. smesh.Scale = Vector3.new(2, 2, 2)
  632. thread(function()
  633. for i = 1, 25 do
  634. wait()
  635. local sinewave = 100 * math.asin(i / 100)
  636. smesh.Scale = smesh.Scale + Vector3.new(2 - sinewave * 0.08, 2 - sinewave * 0.08, 2 - sinewave * 0.08)
  637. s.CFrame = char.HumanoidRootPart.CFrame
  638. s.Transparency = s.Transparency + 0.032
  639. end
  640. s:Destroy()
  641. end)
  642. wait(0.1)
  643. local closeHumanoids = findCloseHumanoid(p.Position, 12)
  644. for _, vhum in pairs(closeHumanoids) do
  645. if Mode ~= "Positive" or not Color3.fromRGB(255, 255, 255) then
  646. end
  647. basicDamage(vhum, Stab3Dam, (Color3.fromRGB(0, 0, 0)))
  648. if vhum.Parent:findFirstChild("Torso") then
  649. do
  650. local vtors = vhum.Parent.Torso
  651. local bv = createBodyVelocity(vtors)
  652. bv.Velocity = (vtors.Position - torso.Position).unit * (Mode == "Negative" and -10 or 20) + Vector3.new(0, 4, 0)
  653. delay(0.5, function()
  654. bv:Destroy()
  655. end)
  656. end
  657. end
  658. end
  659. end)
  660. for i = 0, 1.1, 0.05 do
  661. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.14)
  662. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(-0.05, 0, math.rad(0)), 0.14)
  663. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.25) * CFrame.Angles(math.rad(90), 0, math.rad(-80)), 0.14)
  664. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  665. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.25) * CFrame.Angles(math.rad(90), 0, math.rad(80)), 0.14)
  666. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  667. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  668. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  669. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  670. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  671. swait()
  672. end
  673. thread(function()
  674. for i = 1, 10 do
  675. wait()
  676. p.Transparency = p.Transparency + 0.06
  677. p2.Transparency = p.Transparency + 0.04
  678. p3.Transparency = p.Transparency + 0.06
  679. p4.Transparency = p.Transparency + 0.04
  680. end
  681. p:Destroy()
  682. p2:Destroy()
  683. p3:Destroy()
  684. p4:Destroy()
  685. end)
  686. wait(0.1)
  687. attacking.Value = false
  688. end
  689. end
  690. if counter <= countermax then
  691. counter = counter + 1
  692. end
  693. if counter > countermax then
  694. counter = 1
  695. end
  696. end
  697. if key.KeyCode == Enum.KeyCode.T then
  698. if canTaunt == false then
  699. return
  700. end
  701. if Anim ~= "Idle" then
  702. return
  703. end
  704. do
  705. local function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  706. local fp = Instance.new("Part")
  707. fp.formFactor = formfactor
  708. fp.Parent = parent
  709. fp.Reflectance = reflectance
  710. fp.Transparency = transparency
  711. fp.CanCollide = false
  712. fp.Locked = true
  713. fp.BrickColor = brickcolor
  714. fp.Name = name
  715. fp.Size = size
  716. fp.Position = torso.Position
  717. NoOutline(fp)
  718. fp.Material = "SmoothPlastic"
  719. fp:BreakJoints()
  720. return fp
  721. end
  722. local mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  723. local mesh = Instance.new(Mesh)
  724. mesh.Parent = part
  725. if Mesh == "SpecialMesh" then
  726. mesh.MeshType = meshtype
  727. if meshid then
  728. mesh.MeshId = meshid
  729. end
  730. end
  731. if offset then
  732. mesh.Offset = offset
  733. end
  734. mesh.Scale = scale
  735. return mesh
  736. end
  737. local function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  738. local prt = part(3, Effects, 0, 0, brickcolor, "Effect", Vector3.new())
  739. prt.Anchored = true
  740. prt.CFrame = cframe
  741. local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  742. return prt, msh
  743. end
  744. if taunting == true then
  745. return
  746. end
  747. if 0 >= charStats.Speed.Value then
  748. return
  749. end
  750. taunting = true
  751. attacking.Value = true
  752. charStats.Speed.Value = charStats.Speed.Value - 10
  753. for i = 0, 1.1, 0.05 do
  754. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.14)
  755. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.05, 0, math.rad(0)), 0.14)
  756. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(50)), 0.14)
  757. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  758. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.14)
  759. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  760. swait()
  761. end
  762. local ts = sound(300916082, char.Head, 1, 4, 0.5)
  763. local ncount = 0
  764. for i = 0, 5, 0.05 do
  765. ts = char.Head:findFirstChild("Sound")
  766. if not ts then
  767. return
  768. end
  769. ncount = ncount + 1
  770. if ncount % 1 == 0 then
  771. do
  772. local mb = MagicBlock(BrickColor.new("Really black"), RootPart.CFrame * CFrame.new(math.random(-7, 7), math.random(-5, 5), math.random(-7, 7)) * CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, 2, 2, 2, 0.05, 2, Part)
  773. local mb2 = MagicBlock(BrickColor.new("Lily white"), RootPart.CFrame * CFrame.new(math.random(-7, 7), math.random(-5, 5), math.random(-7, 7)) * CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, 2, 2, 2, 0.05, 2, Part)
  774. mb.Transparency = 0.2
  775. mb2.Transparency = 0.2
  776. mb.Material = "Granite"
  777. mb2.Material = "Neon"
  778. thread(function()
  779. local now = mb.CFrame
  780. for i = 1, 20 do
  781. swait()
  782. mb.CFrame = clerp(mb.CFrame, char["Right Arm"].CFrame * CFrame.new(0, -0.9, 0), 0.05)
  783. mb2.CFrame = clerp(mb2.CFrame, char["Left Arm"].CFrame * CFrame.new(0, -0.9, 0), 0.05)
  784. mb.Transparency = mb.Transparency + 0.04
  785. mb2.Transparency = mb2.Transparency + 0.04
  786. end
  787. mb:Destroy()
  788. mb2:Destroy()
  789. end)
  790. end
  791. end
  792. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.14)
  793. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(-0.05, 0, math.rad(0)), 0.14)
  794. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.15) * CFrame.Angles(math.rad(90), 0, math.rad(-80)), 0.14)
  795. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  796. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.15) * CFrame.Angles(math.rad(90), 0, math.rad(80)), 0.14)
  797. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  798. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.98, -0.2) * CFrame.Angles(-0.2, math.rad(90), 0), 0.14)
  799. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -math.rad(90), 0), 0.14)
  800. swait()
  801. end
  802. for i = 0, 1.1, 0.05 do
  803. ts = char.Head.Sound
  804. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.14)
  805. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.05, 0, math.rad(0)), 0.14)
  806. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(50)), 0.14)
  807. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  808. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.14)
  809. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  810. swait()
  811. end
  812. taunting = false
  813. attacking.Value = false
  814. charStats.Speed.Value = charStats.Speed.Value + 10
  815. end
  816. end
  817. if key.KeyCode == Key1 then
  818. if key1db then
  819. return
  820. end
  821. if Energy.Value < Attack1Energy then
  822. return
  823. end
  824. key1db = true
  825. delay(key1re + atk1d, function()
  826. key1db = false
  827. end)
  828. coroutine.resume(coroutine.create(function()
  829. local rewinddelay = atk1d
  830. local reloaddelay = key1re
  831. Re1:TweenSize(UDim2.new(0, 0, 1, 0), "InOut", "Linear", rewinddelay)
  832. wait(rewinddelay)
  833. Re1:TweenSize(UDim2.new(1, 0, 1, 0), "InOut", "Linear", reloaddelay)
  834. end))
  835. Energy.Value = Energy.Value - Attack1Energy
  836. attacking.Value = true
  837. if Mode == "Positive" then
  838. attacking.Value = true
  839. for i = 0, 2, 0.05 do
  840. swait()
  841. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(-0.15, 0, math.rad(-20)), 0.2)
  842. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(15)), 0.2)
  843. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-15)), 0.2)
  844. if i < 0.2 then
  845. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * CFrame.Angles(math.rad(90), 0, math.rad(15)), 0.1)
  846. else
  847. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * CFrame.Angles(math.rad(175), 0, math.rad(15)), 0.1)
  848. end
  849. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  850. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  851. end
  852. do
  853. local bvtable = {}
  854. thread(function()
  855. for i = 1, 4 do
  856. sound(301033949, char.Head, 0.5, 4, 1)
  857. for _, vhum in pairs(findCloseHumanoid(torso.Position, 18)) do
  858. basicDamage(vhum, 4, Color3.fromRGB(255, 255, 255))
  859. end
  860. do
  861. local s, smesh = createSpherePart()
  862. s.Transparency = 0.2
  863. thread(function()
  864. for i = 1, 25 do
  865. wait()
  866. local sinewave = 100 * math.asin(i / 100)
  867. smesh.Scale = smesh.Scale + Vector3.new(2 - sinewave * 0.1, 2 - sinewave * 0.1, 2 - sinewave * 0.1)
  868. s.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  869. s.Transparency = s.Transparency + 0.0404
  870. end
  871. s:Destroy()
  872. end)
  873. wait(0.25)
  874. end
  875. end
  876. end)
  877. for i = 1, 13 do
  878. wait(0.1)
  879. for _, vhum in pairs(findCloseHumanoid(torso.Position, 16)) do
  880. thread(function()
  881. if not vhum.Parent.Torso:findFirstChild("UpVelocity" .. char.Name) then
  882. local vtors = vhum.Parent.Torso
  883. local bv = createBodyVelocity(vtors)
  884. bv.Name = "UpVelocity" .. char.Name
  885. bv.Velocity = Vector3.new(0, 4, 0)
  886. table.insert(bvtable, bv)
  887. end
  888. end)
  889. end
  890. end
  891. for _, v in pairs(bvtable) do
  892. v:Destroy()
  893. end
  894. for i = 0, 1, 0.05 do
  895. swait()
  896. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0, 0, math.rad(0)), 0.2)
  897. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(0)), 0.2)
  898. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  899. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.1)
  900. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  901. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  902. end
  903. attacking.Value = false
  904. end
  905. elseif Mode == "Negative" then
  906. attacking.Value = true
  907. for i = 0, 1.5, 0.05 do
  908. swait()
  909. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0.2, 0, math.rad(0)), 0.2)
  910. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(0)), 0.2)
  911. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-20)), 0.2)
  912. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(20)), 0.2)
  913. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  914. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  915. end
  916. do
  917. local bvtable = {}
  918. thread(function()
  919. for i = 1, 4 do
  920. sound(301033949, char.Head, 0.5, 4, 1)
  921. for _, vhum in pairs(findCloseHumanoid(torso.Position, 18)) do
  922. basicDamage(vhum, 4, Color3.fromRGB(0, 0, 0))
  923. end
  924. do
  925. local s, smesh = createSpherePart()
  926. s.Transparency = 0.2
  927. s.BrickColor = BrickColor.new()
  928. thread(function()
  929. for i = 1, 25 do
  930. wait()
  931. local sinewave = 100 * math.asin(i / 100)
  932. smesh.Scale = smesh.Scale + Vector3.new(2 - sinewave * 0.1, 2 - sinewave * 0.1, 2 - sinewave * 0.1)
  933. s.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.3, 0)
  934. s.Transparency = s.Transparency + 0.0404
  935. end
  936. s:Destroy()
  937. end)
  938. wait(0.25)
  939. end
  940. end
  941. end)
  942. for i = 1, 13 do
  943. wait(0.1)
  944. for _, vhum in pairs(findCloseHumanoid(torso.Position, 16)) do
  945. thread(function()
  946. if not vhum.Parent.Torso:findFirstChild("DownVelocity" .. char.Name) then
  947. local vtors = vhum.Parent.Torso
  948. local bv = createBodyVelocity(vtors)
  949. bv.Name = "DownVelocity" .. char.Name
  950. bv.Velocity = Vector3.new(0, -2, 0)
  951. table.insert(bvtable, bv)
  952. end
  953. end)
  954. end
  955. end
  956. for i, v in pairs(bvtable) do
  957. v:Destroy()
  958. end
  959. attacking.Value = false
  960. end
  961. end
  962. end
  963. if key.KeyCode == Key2 then
  964. if key2db then
  965. return
  966. end
  967. if Energy.Value < Attack2Energy then
  968. return
  969. end
  970. key2db = true
  971. delay(key2re + atk2d, function()
  972. key2db = false
  973. end)
  974. coroutine.resume(coroutine.create(function()
  975. local rewinddelay = atk2d
  976. local reloaddelay = key2re
  977. Re2:TweenSize(UDim2.new(0, 0, 1, 0), "InOut", "Linear", rewinddelay)
  978. wait(rewinddelay)
  979. Re2:TweenSize(UDim2.new(1, 0, 1, 0), "InOut", "Linear", reloaddelay)
  980. end))
  981. Energy.Value = Energy.Value - Attack2Energy
  982. if Mode == "Positive" then
  983. attacking.Value = true
  984. for i = 0, 1.5, 0.05 do
  985. swait()
  986. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0, 0, math.rad(80)), 0.12)
  987. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-80)), 0.12)
  988. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.4) * CFrame.Angles(math.rad(90), 0, math.rad(45)), 0.14)
  989. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  990. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.14)
  991. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  992. end
  993. do
  994. local bvtable = {}
  995. sound(301031757, char.Head, 0.5, 8, 1)
  996. local pushpart = createBlockPart()
  997. pushpart.Anchored = false
  998. pushpart.Size = Vector3.new(30, 0.65, 30)
  999. pushpart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2) * CFrame.Angles(math.rad(90), 0, 0)
  1000. local pushmesh = Instance.new("CylinderMesh", pushpart)
  1001. local pushbv = createBodyVelocity(pushpart)
  1002. local prevvector = char.HumanoidRootPart.CFrame.lookVector
  1003. thread(function()
  1004. for i = 1, 30 do
  1005. wait()
  1006. local sinewave = math.sin(i / 45) * 60
  1007. pushbv.Velocity = prevvector * (40 - sinewave)
  1008. end
  1009. end)
  1010. thread(function()
  1011. wait(0.2)
  1012. for i = 1, 30 do
  1013. wait()
  1014. pushpart.Transparency = pushpart.Transparency + 0.030000000000000002
  1015. end
  1016. pushpart:Destroy()
  1017. for _, v in pairs(bvtable) do
  1018. v:Destroy()
  1019. end
  1020. end)
  1021. pushpart.Touched:connect(function(hit)
  1022. if hit.Parent == char then
  1023. return
  1024. end
  1025. if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  1026. if hit.Parent.Torso:findFirstChild("PushVelocity" .. char.Name) then
  1027. return
  1028. end
  1029. local vhum = hit.Parent.Humanoid
  1030. local vtors = hit.Parent.Torso
  1031. basicDamage(vhum, Attack2Damage, Color3.new(255, 255, 255))
  1032. local bv = createBodyVelocity(vtors)
  1033. bv.Name = "PushVelocity" .. char.Name
  1034. bv.Velocity = pushpart.BodyVelocity.Velocity
  1035. game.Debris:AddItem(bv, 2.5)
  1036. table.insert(bvtable, bv)
  1037. end
  1038. end)
  1039. for i = 0, 1.5, 0.05 do
  1040. swait()
  1041. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0, 0, math.rad(-80)), 0.14)
  1042. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(80)), 0.14)
  1043. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.25) * CFrame.Angles(math.rad(90), 0, math.rad(-80)), 0.14)
  1044. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  1045. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.25) * CFrame.Angles(math.rad(90), 0, math.rad(80)), 0.14)
  1046. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  1047. end
  1048. attacking.Value = false
  1049. end
  1050. elseif Mode == "Negative" then
  1051. attacking.Value = true
  1052. local hyperdrive = false
  1053. charStats.Speed.Value = charStats.Speed.Value - 1
  1054. for i = 0, 1.3, 0.05 + (hyperdrive == true and 0.05 or 0) do
  1055. swait()
  1056. Neck.C0 = clerp(Neck.C0, necko * euler(math.rad(23), 0, 0), 0.13 + (true == true and 0.1 or 0))
  1057. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.13 + (hyperdrive == true and 0.1 or 0))
  1058. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2 + (hyperdrive == true and 0.1 or 0))
  1059. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-math.rad(17), 0, math.rad(12)), 0.13 + (hyperdrive == true and 0.1 or 0))
  1060. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.13 + (hyperdrive == true and 0.1 or 0))
  1061. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-math.rad(17), 0, -math.rad(12)), 0.13 + (hyperdrive == true and 0.1 or 0))
  1062. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.13 + (hyperdrive == true and 0.1 or 0))
  1063. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * euler(0, math.rad(90), math.rad(-25)) * cf(0, 0.7, 0), 0.13 + (hyperdrive == true and 0.1 or 0))
  1064. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-math.rad(0), -math.rad(90), 0), 0.2 + (hyperdrive == true and 0.1 or 0))
  1065. end
  1066. for i = 0, 1, 0.05 + (hyperdrive == true and 0.05 or 0) do
  1067. swait()
  1068. Neck.C0 = clerp(Neck.C0, necko * euler(math.rad(23), 0, 0), 0.15 + (hyperdrive == true and 0.1 or 0))
  1069. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.13 + (hyperdrive == true and 0.1 or 0))
  1070. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, 0), 0.15 + (hyperdrive == true and 0.1 or 0))
  1071. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-math.rad(17), 0, math.rad(12)), 0.15 + (hyperdrive == true and 0.1 or 0))
  1072. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15 + (hyperdrive == true and 0.1 or 0))
  1073. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-math.rad(17), 0, -math.rad(12)), 0.15 + (hyperdrive == true and 0.1 or 0))
  1074. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15 + (hyperdrive == true and 0.1 or 0))
  1075. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * euler(0, math.rad(90), math.rad(15)) * cf(0, -0.1, 0), 0.15 + (hyperdrive == true and 0.1 or 0))
  1076. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-math.rad(0), -math.rad(90), 0), 0.15 + (hyperdrive == true and 0.1 or 0))
  1077. end
  1078. for i = 1, 3 do
  1079. sound(300916105, char.Head, 0.5, 12, 1)
  1080. do
  1081. local sphere, spherem = createSpherePart()
  1082. sphere.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, -18 * i)
  1083. sphere.Transparency = 0.1
  1084. spherem.Scale = Vector3.new(3, 8, 3)
  1085. local cnow = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, -18 * i)
  1086. for _, vhum in pairs(findCloseHumanoid(sphere.Position, 18)) do
  1087. basicDamage(vhum, 12, Color3.fromRGB(0, 0, 0))
  1088. do
  1089. local vtors = vhum.Parent.Torso
  1090. local bv = createBodyVelocity(vtors)
  1091. bv.Name = "UpVelocity" .. char.Name
  1092. bv.Velocity = (vtors.Position - sphere.Position).unit * -5 + Vector3.new(0, 5, 0)
  1093. thread(function()
  1094. wait(0.5)
  1095. bv:Destroy()
  1096. end)
  1097. end
  1098. end
  1099. thread(function()
  1100. for i = 1, 15 do
  1101. wait()
  1102. local sinewave = 3 - math.sin(i / 45) * 5
  1103. spherem.Scale = spherem.Scale + Vector3.new(0, sinewave, 0)
  1104. sphere.CFrame = cnow
  1105. end
  1106. for i = 1, 15 do
  1107. wait()
  1108. sphere.Transparency = sphere.Transparency + 0.060000000000000005
  1109. end
  1110. end)
  1111. local pulse, pulsem = createPulsePart()
  1112. pulse.CFrame = sphere.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1113. pulse.BrickColor = BrickColor.new("Really black")
  1114. local cnow = sphere.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1115. thread(function()
  1116. for i = 1, 30 do
  1117. wait()
  1118. local sinewave = 2.5 - math.sin(i / 45) * 4
  1119. pulsem.Scale = pulsem.Scale + Vector3.new(sinewave, sinewave, 0)
  1120. pulse.Transparency = pulse.Transparency + 0.030000000000000002
  1121. pulse.CFrame = cnow
  1122. end
  1123. pulse:Destroy()
  1124. end)
  1125. wait(0.2)
  1126. end
  1127. end
  1128. charStats.Speed.Value = charStats.Speed.Value + 1
  1129. attacking.Value = false
  1130. end
  1131. end
  1132. if key.KeyCode == Key3 then
  1133. if key3db then
  1134. return
  1135. end
  1136. if Energy.Value < Attack3Energy then
  1137. return
  1138. end
  1139. key3db = true
  1140. delay(key3re + atk3d, function()
  1141. key3db = false
  1142. end)
  1143. coroutine.resume(coroutine.create(function()
  1144. local rewinddelay = atk3d
  1145. local reloaddelay = key3re
  1146. Re3:TweenSize(UDim2.new(0, 0, 1, 0), "InOut", "Linear", rewinddelay)
  1147. wait(rewinddelay)
  1148. Re3:TweenSize(UDim2.new(1, 0, 1, 0), "InOut", "Linear", reloaddelay)
  1149. end))
  1150. Energy.Value = Energy.Value - Attack3Energy
  1151. if Mode == "Positive" then
  1152. attacking.Value = true
  1153. do
  1154. local p = createBlockPart()
  1155. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1156. p.Size = Vector3.new(1.25, 1.25, 1.25)
  1157. p.Transparency = 0.4
  1158. p.Parent = Effects
  1159. local p2 = createBlockPart()
  1160. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1161. p2.Size = Vector3.new(1.75, 1.75, 1.75)
  1162. p2.Transparency = 0.6
  1163. p2.Parent = Effects
  1164. local p3 = createBlockPart()
  1165. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1166. p3.Size = Vector3.new(1.25, 1.25, 1.25)
  1167. p3.Transparency = 0.4
  1168. p3.Parent = Effects
  1169. local p4 = createBlockPart()
  1170. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1171. p4.Size = Vector3.new(1.75, 1.75, 1.75)
  1172. p4.Transparency = 0.6
  1173. p4.Parent = Effects
  1174. for i = 0, 1.1, 0.05 do
  1175. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.14)
  1176. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.05, 0, math.rad(0)), 0.14)
  1177. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(50)), 0.14)
  1178. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  1179. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.14)
  1180. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  1181. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1182. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1183. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1184. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1185. swait()
  1186. end
  1187. local pulses = -1
  1188. for i = 1, 3 do
  1189. sound(301033949, char.Head, 0.5, 4, 1)
  1190. pulses = pulses + 1
  1191. do
  1192. local pulse, pulsem = createPulsePart()
  1193. pulse.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(90), 0, 0)
  1194. thread(function()
  1195. for i = 1, 30 do
  1196. wait()
  1197. local sinewave = 2 - math.sin(i / 45) * 3
  1198. pulse.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(90), 0, 0)
  1199. pulsem.Scale = pulsem.Scale + Vector3.new(sinewave, sinewave, 0)
  1200. pulse.Transparency = pulse.Transparency + 0.030000000000000002
  1201. end
  1202. pulse:Destroy()
  1203. end)
  1204. local s, smesh = createSpherePart()
  1205. s.Transparency = 0.2
  1206. thread(function()
  1207. for i = 1, 25 do
  1208. wait()
  1209. local sinewave = 8 - 100 * math.asin(i / 100) * 0.8
  1210. if pulses == 3 then
  1211. sinewave = 10 - 100 * math.asin(i / 100) * 0.8
  1212. end
  1213. smesh.Scale = smesh.Scale + Vector3.new(sinewave, sinewave, sinewave)
  1214. s.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, 0)
  1215. s.Transparency = s.Transparency + 0.04
  1216. end
  1217. s:Destroy()
  1218. end)
  1219. local closeHumanoids = findCloseHumanoid(pulse.Position, pulses == 3 and 40 or 25)
  1220. for _, vhum in pairs(closeHumanoids) do
  1221. basicDamage(vhum, pulses == 3 and 12 or 8, Color3.fromRGB(255, 255, 255))
  1222. if vhum.Parent:findFirstChild("Torso") then
  1223. do
  1224. local vtors = vhum.Parent.Torso
  1225. local bv = createBodyVelocity(vtors)
  1226. bv.Velocity = (vtors.Position - torso.Position).unit * ((pulses == 3 and 35 or 30) - (vtors.Position - torso.Position).magnitude) + Vector3.new(0, 7, 0)
  1227. delay(0.5, function()
  1228. bv:Destroy()
  1229. end)
  1230. end
  1231. end
  1232. end
  1233. for i = 0, 2.1, 0.05 do
  1234. swait()
  1235. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0.1, 0, math.rad(0)), 0.14)
  1236. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(0)), 0.14)
  1237. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-95)), 0.08)
  1238. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  1239. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(95)), 0.08)
  1240. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  1241. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1242. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1243. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1244. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1245. end
  1246. end
  1247. end
  1248. thread(function()
  1249. for i = 1, 10 do
  1250. wait()
  1251. p.Transparency = p.Transparency + 0.06
  1252. p2.Transparency = p.Transparency + 0.04
  1253. p3.Transparency = p.Transparency + 0.06
  1254. p4.Transparency = p.Transparency + 0.04
  1255. end
  1256. p:Destroy()
  1257. p2:Destroy()
  1258. p3:Destroy()
  1259. p4:Destroy()
  1260. end)
  1261. end
  1262. elseif Mode == "Negative" then
  1263. attacking.Value = true
  1264. do
  1265. local p = createBlockPart()
  1266. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1267. p.Size = Vector3.new(1.25, 1.25, 1.25)
  1268. p.Transparency = 0.4
  1269. p.Parent = Effects
  1270. local p2 = createBlockPart()
  1271. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1272. p2.Size = Vector3.new(1.75, 1.75, 1.75)
  1273. p2.Transparency = 0.6
  1274. p2.Parent = Effects
  1275. local p3 = createBlockPart()
  1276. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1277. p3.Size = Vector3.new(1.25, 1.25, 1.25)
  1278. p3.Transparency = 0.4
  1279. p3.Parent = Effects
  1280. local p4 = createBlockPart()
  1281. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0)
  1282. p4.Size = Vector3.new(1.75, 1.75, 1.75)
  1283. p4.Transparency = 0.6
  1284. p4.Parent = Effects
  1285. p.BrickColor = BrickColor.new("Really black")
  1286. p2.BrickColor = BrickColor.new("Really black")
  1287. p3.BrickColor = BrickColor.new("Really black")
  1288. p4.BrickColor = BrickColor.new("Really black")
  1289. for i = 0, 1.1, 0.05 do
  1290. swait()
  1291. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0.1, 0, math.rad(0)), 0.14)
  1292. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(0)), 0.14)
  1293. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-95)), 0.14)
  1294. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  1295. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(95)), 0.14)
  1296. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  1297. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1298. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1299. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1300. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1301. end
  1302. local pulses = -1
  1303. for i = 1, 3 do
  1304. sound(301033949, char.Head, 0.5, 4, 1)
  1305. pulses = pulses + 1
  1306. do
  1307. local pulse, pulsem = createPulsePart()
  1308. pulse.BrickColor = BrickColor.new("Really black")
  1309. pulse.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(90), 0, 0)
  1310. thread(function()
  1311. for i = 1, 30 do
  1312. wait()
  1313. local sinewave = 2 - math.sin(i / 45) * 3
  1314. pulse.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(90), 0, 0)
  1315. pulsem.Scale = pulsem.Scale + Vector3.new(sinewave, sinewave, 0)
  1316. pulse.Transparency = pulse.Transparency + 0.030000000000000002
  1317. end
  1318. pulse:Destroy()
  1319. end)
  1320. local s, smesh = createSpherePart()
  1321. s.Transparency = 0.2
  1322. thread(function()
  1323. for i = 1, 25 do
  1324. wait()
  1325. local sinewave = 8 - 100 * math.asin(i / 100) * 0.8
  1326. if pulses == 3 then
  1327. sinewave = 10 - 100 * math.asin(i / 100) * 0.8
  1328. end
  1329. smesh.Scale = smesh.Scale + Vector3.new(sinewave, sinewave, sinewave)
  1330. s.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -1.5, 0)
  1331. s.Transparency = s.Transparency + 0.04
  1332. end
  1333. s:Destroy()
  1334. end)
  1335. local closeHumanoids = findCloseHumanoid(pulse.Position, pulses == 3 and 40 or 25)
  1336. for _, vhum in pairs(closeHumanoids) do
  1337. basicDamage(vhum, pulses == 3 and 12 or 8, Color3.fromRGB(0, 0, 0))
  1338. if vhum.Parent:findFirstChild("Torso") then
  1339. do
  1340. local vtors = vhum.Parent.Torso
  1341. local bv = createBodyVelocity(vtors)
  1342. bv.Velocity = -(vtors.Position - torso.Position).unit * ((pulses == 3 and 35 or 30) - (vtors.Position - torso.Position).magnitude) + Vector3.new(0, 0, 0)
  1343. delay(0.5, function()
  1344. bv:Destroy()
  1345. end)
  1346. end
  1347. end
  1348. end
  1349. for i = 0, 2.1, 0.05 do
  1350. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.14)
  1351. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.05, 0, math.rad(0)), 0.14)
  1352. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(50)), 0.14)
  1353. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  1354. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.14)
  1355. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  1356. p.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1357. p2.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1358. p3.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1359. p4.CFrame = char["Left Arm"].CFrame * CFrame.new(0, -1.3, 0) * randomangles()
  1360. swait()
  1361. end
  1362. end
  1363. end
  1364. thread(function()
  1365. for i = 1, 10 do
  1366. wait()
  1367. p.Transparency = p.Transparency + 0.06
  1368. p2.Transparency = p.Transparency + 0.04
  1369. p3.Transparency = p.Transparency + 0.06
  1370. p4.Transparency = p.Transparency + 0.04
  1371. end
  1372. p:Destroy()
  1373. p2:Destroy()
  1374. p3:Destroy()
  1375. p4:Destroy()
  1376. end)
  1377. end
  1378. end
  1379. attacking.Value = false
  1380. end
  1381. if key.KeyCode == Key4 then
  1382. if key4db then
  1383. return
  1384. end
  1385. if Energy.Value < Attack4Energy then
  1386. return
  1387. end
  1388. Energy.Value = Energy.Value - Attack4Energy
  1389. key4db = true
  1390. delay(key4re, function()
  1391. key4db = false
  1392. end)
  1393. coroutine.resume(coroutine.create(function()
  1394. local rewinddelay = 0.5
  1395. local reloaddelay = key4re
  1396. Re4:TweenSize(UDim2.new(0, 0, 1, 0), "InOut", "Linear", rewinddelay)
  1397. wait(rewinddelay)
  1398. Re4:TweenSize(UDim2.new(1, 0, 1, 0), "InOut", "Linear", reloaddelay)
  1399. end))
  1400. attacking.Value = true
  1401. delay(0.5, function()
  1402. attacking.Value = false
  1403. end)
  1404. do
  1405. local boom = Instance.new("Part", Effects)
  1406. boom.BrickColor = BrickColor.new(Mode == "Positive" and "Really black" or "Lily white")
  1407. boom.Material = Mode == "Positive" and "Granite" or "Neon"
  1408. boom.Transparency = 0.2
  1409. boom.Anchored = true
  1410. boom.CanCollide = false
  1411. boom.Shape = "Ball"
  1412. boom.Size = Vector3.new(8, 8, 8)
  1413. boom.CFrame = char.HumanoidRootPart.CFrame
  1414. thread(function()
  1415. for i = 1, 30 do
  1416. wait()
  1417. boom.Size = boom.Size + Vector3.new(0.2, 0.2, 0.2)
  1418. boom.CFrame = char.HumanoidRootPart.CFrame
  1419. boom.Transparency = boom.Transparency + 0.02666666666666667
  1420. end
  1421. boom:Destroy()
  1422. end)
  1423. local pulse = Instance.new("Part", Effects)
  1424. pulse.BrickColor = BrickColor.new(Mode == "Positive" and "Really black" or "Lily white")
  1425. pulse.Material = Mode == "Positive" and "Granite" or "Neon"
  1426. pulse.Transparency = 0.1
  1427. pulse.Anchored = true
  1428. pulse.CanCollide = false
  1429. pulse.Size = Vector3.new(5, 5, 0.2)
  1430. pulse.CFrame = boom.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1431. local now = pulse.CFrame
  1432. local pulsem = Instance.new("SpecialMesh", pulse)
  1433. pulsem.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1434. pulsem.Scale = Vector3.new(10, 10, 0.2)
  1435. thread(function()
  1436. for i = 1, 30 do
  1437. wait()
  1438. pulsem.Scale = pulsem.Scale + Vector3.new(0.3, 0.3, 0)
  1439. pulse.CFrame = boom.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1440. pulse.Transparency = pulse.Transparency + 0.030000000000000002
  1441. end
  1442. pulse:Destroy()
  1443. end)
  1444. sound(300916105, char.Head, 0.5, 12, 1)
  1445. if Mode == "Positive" then
  1446. Mode = "Negative"
  1447. Atk1.AttackLabel.Text = NegAtk1
  1448. Atk2.AttackLabel.Text = NegAtk2
  1449. Atk3.AttackLabel.Text = NegAtk3
  1450. Atk4.AttackLabel.Text = NegAtk4
  1451. Atk1.AttackLabel.TextColor3 = Color3.new(255, 255, 255)
  1452. Atk1.EnergyLabel.TextColor3 = Color3.new(255, 255, 255)
  1453. Atk1.KeyLabel.TextColor3 = Color3.new(255, 255, 255)
  1454. Atk1.Reload.BackgroundColor3 = Color3.new(0, 0, 0)
  1455. Atk1.BackgroundColor3 = Color3.new(0, 0, 0)
  1456. Atk2.AttackLabel.TextColor3 = Color3.new(255, 255, 255)
  1457. Atk2.EnergyLabel.TextColor3 = Color3.new(255, 255, 255)
  1458. Atk2.KeyLabel.TextColor3 = Color3.new(255, 255, 255)
  1459. Atk2.Reload.BackgroundColor3 = Color3.new(0, 0, 0)
  1460. Atk2.BackgroundColor3 = Color3.new(0, 0, 0)
  1461. Atk3.AttackLabel.TextColor3 = Color3.new(255, 255, 255)
  1462. Atk3.EnergyLabel.TextColor3 = Color3.new(255, 255, 255)
  1463. Atk3.KeyLabel.TextColor3 = Color3.new(255, 255, 255)
  1464. Atk3.Reload.BackgroundColor3 = Color3.new(0, 0, 0)
  1465. Atk3.BackgroundColor3 = Color3.new(0, 0, 0)
  1466. Atk4.AttackLabel.TextColor3 = Color3.new(255, 255, 255)
  1467. Atk4.EnergyLabel.TextColor3 = Color3.new(255, 255, 255)
  1468. Atk4.KeyLabel.TextColor3 = Color3.new(255, 255, 255)
  1469. Atk4.Reload.BackgroundColor3 = Color3.new(0, 0, 0)
  1470. Atk4.BackgroundColor3 = Color3.new(0, 0, 0)
  1471. elseif Mode == "Negative" then
  1472. Mode = "Positive"
  1473. Atk1.AttackLabel.Text = PosAtk1
  1474. Atk2.AttackLabel.Text = PosAtk2
  1475. Atk3.AttackLabel.Text = PosAtk3
  1476. Atk4.AttackLabel.Text = PosAtk4
  1477. Atk1.AttackLabel.TextColor3 = Color3.new(0, 0, 0)
  1478. Atk1.EnergyLabel.TextColor3 = Color3.new(0, 0, 0)
  1479. Atk1.KeyLabel.TextColor3 = Color3.new(0, 0, 0)
  1480. Atk1.Reload.BackgroundColor3 = Color3.new(255, 255, 255)
  1481. Atk1.BackgroundColor3 = Color3.new(0, 0, 0)
  1482. Atk2.AttackLabel.TextColor3 = Color3.new(0, 0, 0)
  1483. Atk2.EnergyLabel.TextColor3 = Color3.new(0, 0, 0)
  1484. Atk2.KeyLabel.TextColor3 = Color3.new(0, 0, 0)
  1485. Atk2.Reload.BackgroundColor3 = Color3.new(255, 255, 255)
  1486. Atk2.BackgroundColor3 = Color3.new(0, 0, 0)
  1487. Atk3.AttackLabel.TextColor3 = Color3.new(0, 0, 0)
  1488. Atk3.EnergyLabel.TextColor3 = Color3.new(0, 0, 0)
  1489. Atk3.KeyLabel.TextColor3 = Color3.new(0, 0, 0)
  1490. Atk3.Reload.BackgroundColor3 = Color3.new(255, 255, 255)
  1491. Atk3.BackgroundColor3 = Color3.new(0, 0, 0)
  1492. Atk4.AttackLabel.TextColor3 = Color3.new(0, 0, 0)
  1493. Atk4.EnergyLabel.TextColor3 = Color3.new(0, 0, 0)
  1494. Atk4.KeyLabel.TextColor3 = Color3.new(0, 0, 0)
  1495. Atk4.Reload.BackgroundColor3 = Color3.new(255, 255, 255)
  1496. Atk4.BackgroundColor3 = Color3.new(0, 0, 0)
  1497. end
  1498. end
  1499. end
  1500. end
  1501. uis.InputBegan:connect(keyDown)
  1502. thread(function()
  1503. tweentick = 45
  1504. tweenrot = 0.9
  1505. tweenrotm = 0.15
  1506. while true do
  1507. swait()
  1508. humanoid.WalkSpeed = ((speed.Value / 10) * 16)
  1509. sinecount = sinecount + 1
  1510. normcount = normcount + 1
  1511. local sinewave = math.sin(sinecount * 3 / 75) * 0.2
  1512. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1513. local hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1514. if attacking.Value == false and taunting == false then
  1515. if 1 < RootPart.Velocity.y and hitfloor == nil then
  1516. Anim = "Jump"
  1517. canTaunt = false
  1518. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.1)
  1519. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1520. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1521. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1522. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1523. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1524. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.2)
  1525. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.2)
  1526. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1527. Anim = "Fall"
  1528. canTaunt = false
  1529. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(23), 0, 0), 0.2)
  1530. Neck.C1 = clerp(Neck.C1, necko2 * CFrame.Angles(0, 0, 0), 0.2)
  1531. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1532. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1533. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1534. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1535. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1536. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(24), math.rad(90), 0), 0.2)
  1537. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-12), -math.rad(90), 0), 0.2)
  1538. elseif torvel < 1 and hitfloor ~= nil then
  1539. Anim = "Idle"
  1540. canTaunt = true
  1541. Neck.C0 = clerp(Neck.C0, necko, 0.1)
  1542. RootJoint.C0 = clerp(RootJoint.C0, RootCF, 0.1)
  1543. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.new(-0.35, 0, 0.3) * CFrame.Angles(math.rad(-35), 0, math.rad(-35)), 0.2)
  1544. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1545. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.new(0.35, 0, 0.3) * CFrame.Angles(math.rad(-35), 0, math.rad(35)), 0.2)
  1546. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1547. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.2)
  1548. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -math.rad(90), 0), 0.2)
  1549. elseif torvel > 1 and hitfloor ~= nil then
  1550. sinewave = sinewave / 10
  1551. Anim = "Walk"
  1552. canTaunt = false
  1553. Neck.C0 = clerp(Neck.C0, necko, 0.1)
  1554. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.1, 0, 0), 0.1)
  1555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.new(-0.35, 0, 0.3) * CFrame.Angles(math.rad(-35), 0, math.rad(-35)), 0.2)
  1556. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1557. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.new(0.35, 0, 0.3) * CFrame.Angles(math.rad(-35), 0, math.rad(35)), 0.2)
  1558. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1559. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.2)
  1560. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -math.rad(90), 0), 0.2)
  1561. end
  1562. RootJoint.C0 = clerp(RootJoint.C0, RootJoint.C0 * CFrame.new(0, 0, sinewave / 3), 0.1)
  1563. RW.C0 = clerp(RW.C0, RW.C0 * CFrame.new(0, sinewave / 3, 0), 0.2)
  1564. LW.C0 = clerp(LW.C0, LW.C0 * CFrame.new(0, sinewave / 3, 0), 0.2)
  1565. RH.C0 = clerp(RH.C0, RH.C0 * CFrame.new(0, -sinewave / 3, 0), 0.2)
  1566. LH.C0 = clerp(LH.C0, LH.C0 * CFrame.new(0, -sinewave / 3, 0), 0.2)
  1567. end
  1568. end
  1569. end)
Add Comment
Please, Sign In to add comment