Advertisement
Yeetyboi

power

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