Advertisement
Dark_EccentricYT

Untitled

Oct 4th, 2017
3,604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.52 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local uis = game:GetService("UserInputService")
  3. repeat
  4. wait()
  5. until plr.Character and plr.Character:WaitForChild("Torso") and plr.Character:WaitForChild("Humanoid")
  6. local char = plr.Character
  7. char:findFirstChild("Animate"):Destroy()
  8. local torso = char.Torso
  9. local humanoid = char.Humanoid
  10. humanoid.Animator:Destroy()
  11. local charStats = Instance.new("Folder", char)
  12. charStats.Name = "CharStats"
  13. speed = Instance.new("NumberValue", charStats)
  14. speed.Name = "Speed"
  15. speed.Value = 10
  16. local Anim
  17. LS = torso["Left Shoulder"]
  18. LH = torso["Left Hip"]
  19. RS = torso["Right Shoulder"]
  20. RH = torso["Right Hip"]
  21. Neck = torso.Neck
  22. it = Instance.new
  23. vt = Vector3.new
  24. cf = CFrame.new
  25. euler = CFrame.fromEulerAnglesXYZ
  26. angles = CFrame.Angles
  27. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  28. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  29. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  30. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  31. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  32. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  33. RootPart = char.HumanoidRootPart
  34. RootJoint = RootPart.RootJoint
  35. RootCF = euler(-1.57, 0, 3.14)
  36. player = nil
  37. RSH, LSH = nil, nil
  38. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  39. RW.Name = "Right Shoulder"
  40. LW.Name = "Left Shoulder"
  41. Sheathed = true
  42. SwordStance = false
  43. Charge = 0
  44. RSH = char.Torso["Right Shoulder"]
  45. LSH = char.Torso["Left Shoulder"]
  46. RSH.Parent = nil
  47. LSH.Parent = nil
  48. RW.Name = "Right Shoulder"
  49. RW.Part0 = char.Torso
  50. RW.C0 = cf(1.5, 0.5, 0)
  51. RW.C1 = cf(0, 0.5, 0)
  52. RW.Part1 = char["Right Arm"]
  53. RW.Parent = char.Torso
  54. LW.Name = "Left Shoulder"
  55. LW.Part0 = char.Torso
  56. LW.C0 = cf(-1.5, 0.5, 0)
  57. LW.C1 = cf(0, 0.5, 0)
  58. LW.Part1 = char["Left Arm"]
  59. LW.Parent = char.Torso
  60. local cam = workspace.CurrentCamera
  61. canTaunt = false
  62. local Effects = Instance.new("Model", char)
  63. Effects.Name = "Effects"
  64. function basicDamage(vhum, damage, colour)
  65. if not vhum or not vhum.Parent:findFirstChild("Humanoid") then
  66. return
  67. end
  68. vhum.Parent.Humanoid:TakeDamage(damage)
  69. local damagepart = Instance.new("Part", Effects)
  70. damagepart.Transparency = 1
  71. damagepart.Anchored = true
  72. damagepart.CanCollide = false
  73. damagepart.Size = Vector3.new(1, 1, 1)
  74. damagepart.Name = "DamagePart"
  75. damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
  76. local g = Instance.new("BillboardGui", damagepart)
  77. g.Enabled = true
  78. g.Adornee = damagepart
  79. g.Size = UDim2.new(5, 0, 5, 0)
  80. g.ExtentsOffset = Vector3.new(0, 0, 0)
  81. g.StudsOffset = Vector3.new(0, 0, 0)
  82. local t = Instance.new("TextLabel", g)
  83. t.BackgroundTransparency = 1
  84. t.Font = "ArialBold"
  85. t.TextSize = 24
  86. t.Text = "-" .. round(damage)
  87. if round(damage) % 1 == 0 then
  88. t.Text = "-" .. round(damage) .. ".0"
  89. end
  90. t.Size = UDim2.new(1, 0, 1, 0)
  91. t.TextStrokeTransparency = 0
  92. t.TextTransparency = 0
  93. t.TextScaled = true
  94. t.TextWrapped = true
  95. t.TextXAlignment = "Center"
  96. t.TextYAlignment = "Center"
  97. t.TextColor3 = colour
  98. coroutine.resume(coroutine.create(function()
  99. for i = 1, 50 do
  100. game:GetService("RunService").Heartbeat:wait()
  101. local sinewave = math.sin(i / 500) * 4
  102. damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
  103. t.TextTransparency = t.TextTransparency + 0.02
  104. t.TextStrokeTransparency = t.TextTransparency + 0.02
  105. end
  106. damagepart:Destroy()
  107. end), t)
  108. end
  109. humanoid.WalkSpeed = 16
  110. mouse = plr:GetMouse()
  111. sinecount, normcount, tweentick, tweenrot, tweenrotm = 0, 0, 0, 0, 0
  112. partEffects, AttackHas, AttackNeeded, AttackCan = {}, {}, {}, {}
  113. AttackHas[1], AttackHas[2], AttackHas[3], AttackHas[4] = 1, 1, 1, 1
  114. AttackNeeded[1], AttackNeeded[2], AttackNeeded[3], AttackNeeded[4] = 1, 1, 1, 1
  115. AttackCan[1], AttackCan[2], AttackCan[3], AttackCan[4] = true, true, true, true
  116. Attack1Get = 0.004
  117. Attack2Get = 0.003
  118. Attack3Get = 0.0025
  119. Attack4Get = 0.001
  120. local key1db = false
  121. local key2db = false
  122. local key3db = false
  123. local key4db = false
  124. local attacking = Instance.new("BoolValue", charStats)
  125. attacking.Name = "Attacking"
  126. attacking.Value = false
  127. local Energy = Instance.new("NumberValue", charStats)
  128. Energy.Name = "EnergyAmount"
  129. Energy.Value = math.huge
  130. local Attack1Energy = 0--75
  131. local Attack2Energy = 0--50
  132. local Attack3Energy = 0--50
  133. local Attack4Energy = 0--100
  134. function rayCast(Pos, Dir, Max, Ignore)
  135. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  136. end
  137. function thread(f)
  138. coroutine.resume(coroutine.create(f))
  139. end
  140. ArtificialHB = Instance.new("BindableEvent", script)
  141. ArtificialHB.Name = "Heartbeat"
  142. script:WaitForChild("Heartbeat")
  143. frame = 0.025
  144. tf = 0
  145. allowframeloss = true
  146. tossremainder = false
  147. lastframe = tick()
  148. script.Heartbeat:Fire()
  149. game:GetService("RunService").Heartbeat:connect(function(s, p)
  150. tf = tf + s
  151. if tf >= frame then
  152. if allowframeloss then
  153. script.Heartbeat:Fire()
  154. lastframe = tick()
  155. else
  156. for i = 1, math.floor(tf / frame) do
  157. script.Heartbeat:Fire()
  158. end
  159. lastframe = tick()
  160. end
  161. if tossremainder then
  162. tf = 0
  163. else
  164. tf = tf - frame * math.floor(tf / frame)
  165. end
  166. end
  167. end)
  168. function swait(num)
  169. if num == 0 or num == nil then
  170. ArtificialHB.Event:wait()
  171. else
  172. for i = 0, num do
  173. ArtificialHB.Event:wait()
  174. end
  175. end
  176. end
  177. function sound(id, par, vol, dur, pit)
  178. coroutine.resume(coroutine.create(function()
  179. local sou = Instance.new("Sound", par or workspace)
  180. sou.Volume = vol
  181. sou.Pitch = pit or 1
  182. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  183. swait()
  184. sou:play()
  185. wait(dur)
  186. sou:Destroy()
  187. end))
  188. end
  189. function clerp(a, b, t)
  190. local qa = {
  191. QuaternionFromCFrame(a)
  192. }
  193. local qb = {
  194. QuaternionFromCFrame(b)
  195. }
  196. local ax, ay, az = a.x, a.y, a.z
  197. local bx, by, bz = b.x, b.y, b.z
  198. local _t = 1 - t
  199. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  200. end
  201. function QuaternionFromCFrame(cf)
  202. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  203. local trace = m00 + m11 + m22
  204. if trace > 0 then
  205. local s = math.sqrt(1 + trace)
  206. local recip = 0.5 / s
  207. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  208. else
  209. local i = 0
  210. if m00 < m11 then
  211. i = 1
  212. end
  213. if m22 > (i == 0 and m00 or m11) then
  214. i = 2
  215. end
  216. if i == 0 then
  217. local s = math.sqrt(m00 - m11 - m22 + 1)
  218. local recip = 0.5 / s
  219. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  220. elseif i == 1 then
  221. local s = math.sqrt(m11 - m22 - m00 + 1)
  222. local recip = 0.5 / s
  223. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  224. elseif i == 2 then
  225. local s = math.sqrt(m22 - m00 - m11 + 1)
  226. local recip = 0.5 / s
  227. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  228. end
  229. end
  230. end
  231. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  232. local xs, ys, zs = x + x, y + y, z + z
  233. local wx, wy, wz = w * xs, w * ys, w * zs
  234. local xx = x * xs
  235. local xy = x * ys
  236. local xz = x * zs
  237. local yy = y * ys
  238. local yz = y * zs
  239. local zz = z * zs
  240. 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))
  241. end
  242. function QuaternionSlerp(a, b, t)
  243. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  244. local startInterp, finishInterp
  245. if cosTheta >= 1.0E-4 then
  246. if 1 - cosTheta > 1.0E-4 then
  247. local theta = math.acos(cosTheta)
  248. local invSinTheta = 1 / math.sin(theta)
  249. startInterp = math.sin((1 - t) * theta) * invSinTheta
  250. finishInterp = math.sin(t * theta) * invSinTheta
  251. else
  252. startInterp = 1 - t
  253. finishInterp = t
  254. end
  255. elseif 1 + cosTheta > 1.0E-4 then
  256. local theta = math.acos(-cosTheta)
  257. local invSinTheta = 1 / math.sin(theta)
  258. startInterp = math.sin((t - 1) * theta) * invSinTheta
  259. finishInterp = math.sin(t * theta) * invSinTheta
  260. else
  261. startInterp = t - 1
  262. finishInterp = t
  263. end
  264. 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
  265. end
  266. function magic(type, thing)
  267. local magicBlock = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay, t)
  268. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  269. prt.CFrame = cframe
  270. local msh = mesh("BlockMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  271. game:GetService("Debris"):AddItem(prt, 8)
  272. if t == 1 or t == nil then
  273. table.insert(partEffects, {
  274. prt,
  275. "Block1",
  276. delay,
  277. x3,
  278. y3,
  279. z3,
  280. msh
  281. })
  282. elseif t == 2 then
  283. table.insert(partEffects, {
  284. prt,
  285. "Block2",
  286. delay,
  287. x3,
  288. y3,
  289. z3,
  290. msh
  291. })
  292. end
  293. end
  294. local magicCylinder = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  295. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  296. local msh = mesh("CylinderMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  297. game:GetService("Debris"):AddItem(prt, 8)
  298. table.insert(partEffects, {
  299. prt,
  300. "Cylinder",
  301. delay,
  302. x3,
  303. y3,
  304. z3,
  305. msh
  306. })
  307. end
  308. local magicSphere = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  309. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  310. local msh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  311. game:GetService("Debris"):AddItem(prt, 8)
  312. table.insert(partEffects, {
  313. prt,
  314. "Cylinder",
  315. delay,
  316. x3,
  317. y3,
  318. z3,
  319. msh
  320. })
  321. end
  322. local magicRing = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  323. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  324. prt.Anchored = true
  325. prt.CFrame = cframe
  326. local msh = mesh("SpecialMesh", prt, "FileMesh", 3270017, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  327. game:GetService("Debris"):AddItem(prt, 2)
  328. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  329. for i = 0, 1, delay do
  330. swait()
  331. Part.Transparency = i
  332. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  333. end
  334. Part:Destroy()
  335. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  336. end
  337. local magicSlash = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  338. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", cframe)
  339. prt.Anchored = true
  340. prt.CFrame = cframe
  341. local msh = mesh("SpecialMesh", prt, "FileMesh", 20329976, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  342. game:GetService("Debris"):AddItem(prt, 2)
  343. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  344. for i = 0, 1, delay do
  345. swait()
  346. Part.Transparency = i
  347. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  348. end
  349. Part:Destroy()
  350. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  351. end
  352. local par = thing[1]
  353. local brick = thing[2]
  354. local cframe = thing[3]
  355. local x1 = thing[4]
  356. local y1 = thing[5]
  357. local z1 = thing[6]
  358. local x3 = thing[7]
  359. local y3 = thing[8]
  360. local z3 = thing[9]
  361. local delay = thing[10]
  362. local t = thing[11]
  363. if type == "Block" or type == 1 then
  364. magicBlock(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  365. elseif type == "Cylinder" or type == 2 then
  366. magicCylinder(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  367. elseif type == "Sphere" or type == 3 then
  368. magicSphere(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  369. elseif type == "Ring" or type == 4 then
  370. magicRing(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  371. elseif type == "Slash" or type == 5 then
  372. magicSlash(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  373. end
  374. end
  375. function randomangles()
  376. local random = math.rad((math.random() - 0.5) * 180)
  377. local randomangles = CFrame.Angles(random, random, random)
  378. return randomangles
  379. end
  380. function round(num)
  381. local a, b = math.modf(num)
  382. if num % 1 ~= 0 then
  383. return math.floor(num) + math.floor(b * 10 + 0.5) / 10
  384. else
  385. return math.floor(num)
  386. end
  387. end
  388. function NoOutline(Part)
  389. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  390. end
  391. function newPart(parent, brickcolor, transparency, anchored, cancollide, size, name)
  392. local fp = Instance.new("Part")
  393. fp.Parent = parent
  394. fp.Transparency = transparency
  395. fp.Anchored = anchored
  396. fp.CanCollide = cancollide
  397. fp.Locked = true
  398. fp.BrickColor = brickcolor
  399. fp.Name = name
  400. fp.Size = size
  401. fp.Position = torso.Position
  402. NoOutline(fp)
  403. fp.Material = "SmoothPlastic"
  404. fp:BreakJoints()
  405. return fp
  406. end
  407. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  408. local mesh = Instance.new(Mesh)
  409. mesh.Parent = part
  410. if Mesh == "SpecialMesh" then
  411. mesh.MeshType = meshtype
  412. if meshid then
  413. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  414. end
  415. end
  416. if offset then
  417. mesh.Offset = offset
  418. end
  419. mesh.Scale = scale
  420. return mesh
  421. end
  422. function weld(parent, part0, part1, c0)
  423. local weld = Instance.new("Weld")
  424. weld.Parent = parent
  425. weld.Part0 = part0
  426. weld.Part1 = part1
  427. weld.C0 = c0
  428. return weld
  429. end
  430. function findCloseHumanoid(centre, distance)
  431. local tab = {}
  432. for _, child in pairs(game.Workspace:GetChildren()) do
  433. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= humanoid and child:findFirstChild("Torso") then
  434. local vtors = child.Torso
  435. local mag = math.abs((vtors.Position - centre).magnitude)
  436. if distance >= mag then
  437. table.insert(tab, child.Humanoid)
  438. end
  439. end
  440. end
  441. return tab
  442. end
  443. --[[
  444. sftorso = script.Parent.SFTorso:Clone()
  445. sftorso.Parent = char
  446. sftorso.Name = "SFTorso"
  447. armr = script.Parent.SFArm:Clone()
  448. armr.Parent = char
  449. armr.Name = "SFArmR"
  450. arml = script.Parent.SFArm:Clone()
  451. arml.Parent = char
  452. arml.Name = "SFArmL"
  453. weld(torso, sftorso.Handle, torso, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0))
  454. weld(char["Right Arm"], armr.Handle, char["Right Arm"], CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-90), 0))
  455. weld(char["Left Arm"], arml.Handle, char["Left Arm"], CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0))
  456. ]]
  457. function attackone()
  458. attacking.Value = true
  459. for i = 0, 1, 0.1 do
  460. swait()
  461. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  462. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.3)
  463. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-70)), 0.2)
  464. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  465. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -0.1, -0.2) * CFrame.Angles(math.rad(170), math.rad(-45), 0), 0.3)
  466. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  467. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(105), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  468. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), -math.rad(60), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  469. end
  470. local p0 = newPart(Effects, BrickColor.new("Institutional white"), 0.1, true, false, Vector3.new(1, 1, 1), "Part")
  471. p0.CFrame = RootPart.CFrame * CFrame.new(0, 0, -5)
  472. p0.Material = "Neon"
  473. local m0 = mesh("SpecialMesh", p0, "FileMesh", "1051557", nil, Vector3.new(3, 3, 3))
  474. local p1 = newPart(Effects, BrickColor.new("Bright red"), 0, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  475. p1.CFrame = RootPart.CFrame * CFrame.new(0, 0, -5)
  476. p1.Material = "Neon"
  477. local m1 = mesh("SpecialMesh", p1, "Sphere", nil, nil, Vector3.new(15, 15, 15))
  478. local p2 = newPart(Effects, BrickColor.new("Lily white"), 0.1, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  479. p2.CFrame = RootPart.CFrame * CFrame.new(0, 0, -5)
  480. p2.Material = "SmoothPlastic"
  481. local m2 = mesh("SpecialMesh", p2, "Sphere", nil, nil, Vector3.new(16, 16, 16))
  482. weld(p1, p0, p1, CFrame.new(0, 0, 0))
  483. weld(p1, p2, p1, CFrame.new(0, 0, 0))
  484. local now = RootPart.CFrame * CFrame.new(0, 0, -5)
  485. thread(function()
  486. for i = 1, 20 do
  487. swait()
  488. m0.Scale = m0.Scale + Vector3.new(1, 1, 1)
  489. p0.Transparency = p0.Transparency + 0.05
  490. p0.CFrame = now * CFrame.Angles(0, math.rad(15 * i), 0)
  491. m1.Scale = m1.Scale + Vector3.new(1, 1, 1)
  492. p1.Transparency = p1.Transparency + 0.05
  493. p1.CFrame = now
  494. m2.Scale = m2.Scale + Vector3.new(1, 1, 1)
  495. p2.Transparency = p2.Transparency + 0.05
  496. p2.CFrame = now
  497. end
  498. p0:Destroy()
  499. p1:Destroy()
  500. p2:Destroy()
  501. end)
  502. for i, v in pairs(findCloseHumanoid(now.p, 12)) do
  503. basicDamage(v, 8, BrickColor.new("Maroon").Color)
  504. delay(0.1, function()
  505. --basic.Burn(Effects, v, 3, BrickColor.new("Bright red").Color, math.random(2, 4))
  506. end)
  507. end
  508. sound(231917833, torso, 0.5, 5)
  509. for i = 0, 1, 0.08 do
  510. swait()
  511. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-80)), 0.3)
  512. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.3)
  513. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(160), math.rad(0), math.rad(60)) * CFrame.Angles(0, math.rad(90), 0), 0.3)
  514. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  515. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -0.1, -0.2) * CFrame.Angles(math.rad(170), math.rad(-45), 0), 0.3)
  516. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  517. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(105), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  518. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), -math.rad(60), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  519. end
  520. wait(0.2)
  521. attacking.Value = false
  522. end
  523. function attacktwo()
  524. attacking.Value = true
  525. for i = 0, 1, 0.1 do
  526. swait()
  527. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-90)), 0.3)
  528. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.3)
  529. RW.C0 = clerp(RW.C0, CFrame.new(1.5, -0.1, 0) * CFrame.Angles(math.rad(160), math.rad(45), 0), 0.2)
  530. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  531. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -0.1, -0.2) * CFrame.Angles(math.rad(90), math.rad(-45), 0), 0.2)
  532. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  533. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(105), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  534. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), -math.rad(60), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  535. end
  536. local p0 = newPart(Effects, BrickColor.new("Institutional white"), 0.1, true, false, Vector3.new(1, 1, 1), "Part")
  537. p0.CFrame = RootPart.CFrame * CFrame.new(0, 0, -5)
  538. p0.Material = "Neon"
  539. local m0 = mesh("SpecialMesh", p0, "FileMesh", "1051557", nil, Vector3.new(3, 3, 3))
  540. local p1 = newPart(Effects, BrickColor.new("Bright red"), 0, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  541. p1.CFrame = RootPart.CFrame * CFrame.new(0, 0, -5)
  542. p1.Material = "Neon"
  543. local m1 = mesh("SpecialMesh", p1, "Sphere", nil, nil, Vector3.new(15, 15, 15))
  544. local p2 = newPart(Effects, BrickColor.new("Lily white"), 0.1, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  545. p2.CFrame = RootPart.CFrame * CFrame.new(0, 0, -5)
  546. p2.Material = "SmoothPlastic"
  547. local m2 = mesh("SpecialMesh", p2, "Sphere", nil, nil, Vector3.new(16, 16, 16))
  548. weld(p1, p0, p1, CFrame.new(0, 0, 0))
  549. weld(p1, p2, p1, CFrame.new(0, 0, 0))
  550. local now = RootPart.CFrame * CFrame.new(0, 0, -5)
  551. thread(function()
  552. for i = 1, 20 do
  553. swait()
  554. m0.Scale = m0.Scale + Vector3.new(1, 1, 1)
  555. p0.Transparency = p0.Transparency + 0.05
  556. p0.CFrame = now * CFrame.Angles(0, math.rad(15 * i), 0)
  557. m1.Scale = m1.Scale + Vector3.new(1, 1, 1)
  558. p1.Transparency = p1.Transparency + 0.05
  559. p1.CFrame = now
  560. m2.Scale = m2.Scale + Vector3.new(1, 1, 1)
  561. p2.Transparency = p2.Transparency + 0.05
  562. p2.CFrame = now
  563. end
  564. p0:Destroy()
  565. p1:Destroy()
  566. p2:Destroy()
  567. end)
  568. for i, v in pairs(findCloseHumanoid(now.p, 12)) do
  569. basicDamage(v, 8, BrickColor.new("Maroon").Color)
  570. delay(0.1, function()
  571. --basic.Burn(Effects, v, 3, BrickColor.new("Bright red").Color, math.random(2, 4))
  572. end)
  573. end
  574. sound(231917833, torso, 0.5, 5, 1.2)
  575. for i = 0, 1, 0.1 do
  576. swait()
  577. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(10), math.rad(80)), 0.3)
  578. if i < 0.3 then
  579. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(-80)), 0.3)
  580. else
  581. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(-140)), 0.3)
  582. end
  583. RW.C0 = clerp(RW.C0, CFrame.new(1.5, -0.1, 0) * CFrame.Angles(math.rad(160), math.rad(45), 0), 0.2)
  584. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  585. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * CFrame.Angles(math.rad(90), math.rad(-45), 0), 0.2)
  586. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  587. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(105), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  588. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), -math.rad(60), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  589. end
  590. wait(0.2)
  591. attacking.Value = false
  592. end
  593. function attackthree()
  594. attacking.Value = true
  595. for i = 0, 1.1, 0.1 do
  596. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.14)
  597. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.05, 0, math.rad(0)), 0.14)
  598. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(50)), 0.14)
  599. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.14)
  600. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.14)
  601. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.14)
  602. swait()
  603. end
  604. local p0 = newPart(Effects, BrickColor.new("Institutional white"), 0.1, true, false, Vector3.new(1, 1, 1), "Part")
  605. p0.CFrame = RootPart.CFrame * CFrame.new(0, 0, -7)
  606. p0.Material = "Neon"
  607. local m0 = mesh("SpecialMesh", p0, "FileMesh", "1051557", nil, Vector3.new(6, 6, 6))
  608. local pc = p0:Clone()
  609. local p1 = newPart(Effects, BrickColor.new("Bright red"), 0, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  610. p1.CFrame = RootPart.CFrame * CFrame.new(0, 0, -7)
  611. p1.Material = "Neon"
  612. local m1 = mesh("SpecialMesh", p1, "Sphere", nil, nil, Vector3.new(30, 30, 30))
  613. local p2 = newPart(Effects, BrickColor.new("Bright red"), 0.1, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  614. p2.CFrame = RootPart.CFrame * CFrame.new(0, 0, -7)
  615. p2.Material = "Neon"
  616. local m2 = mesh("SpecialMesh", p2, "Sphere", nil, nil, Vector3.new(32, 32, 32))
  617. thread(function()
  618. local now = RootPart.CFrame * CFrame.new(0, 0, -7)
  619. for i = 1, 50 do
  620. swait()
  621. local sinewave = math.sin(i * math.pi / 100)
  622. p0.CFrame = now * CFrame.new(0, 0, -sinewave * 12) * CFrame.Angles(0, math.rad(10 * i), 0)
  623. p1.CFrame = now * CFrame.new(0, 0, -sinewave * 12)
  624. p2.CFrame = now * CFrame.new(0, 0, -sinewave * 12)
  625. if i % 12 == 0 then
  626. do
  627. local cnow = p0.CFrame
  628. for i, v in pairs(findCloseHumanoid(cnow.p, 17)) do
  629. basicDamage(v, math.random(2, 5), BrickColor.new("Really red").Color)
  630. end
  631. local pc = pc:Clone()
  632. pc.CFrame = cnow
  633. pc.Parent = Effects
  634. thread(function()
  635. for i = 1, 20 do
  636. swait()
  637. pc.Mesh.Scale = pc.Mesh.Scale + Vector3.new(1, 1, 1)
  638. pc.Transparency = pc.Transparency + 0.05
  639. pc.CFrame = cnow
  640. end
  641. pc:Destroy()
  642. end)
  643. end
  644. end
  645. if i >= 30 then
  646. p0.Transparency = p0.Transparency + 0.05
  647. p1.Transparency = p1.Transparency + 0.05
  648. p2.Transparency = p2.Transparency + 0.05
  649. m0.Scale = m0.Scale + Vector3.new(1, 1, 1)
  650. m1.Scale = m1.Scale + Vector3.new(1, 1, 1)
  651. m2.Scale = m2.Scale + Vector3.new(1, 1, 1)
  652. end
  653. end
  654. p0:Destroy()
  655. p1:Destroy()
  656. p2:Destroy()
  657. end)
  658. sound(300916038, torso, 0.5, 5)
  659. for i = 0, 1.1, 0.05 do
  660. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(10), 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.15) * 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.15) * 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. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.98, -0.2) * CFrame.Angles(-0.2, math.rad(90), 0), 0.14)
  667. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -math.rad(90), 0), 0.14)
  668. swait()
  669. end
  670. wait(0.4)
  671. attacking.Value = false
  672. end
  673. counter = 0
  674. uis.InputBegan:connect(function(key, Global)
  675. if Global then
  676. return
  677. end
  678. if attacking.Value == true then
  679. return
  680. end
  681. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  682. if attacking.Value == true then
  683. return
  684. end
  685. if counter == 0 then
  686. attackone()
  687. counter = 1
  688. elseif counter == 1 then
  689. attacktwo()
  690. counter = 2
  691. elseif counter == 2 then
  692. attackthree()
  693. counter = 0
  694. end
  695. end
  696. if key.KeyCode == Enum.KeyCode.Q then
  697. if AttackHas[1] < AttackNeeded[1] or Energy.Value < Attack1Energy then
  698. return
  699. end
  700. Energy.Value = Energy.Value - Attack1Energy
  701. AttackHas[1] = 0
  702. AttackCan[1] = false
  703. attacking.Value = true
  704. for i = 0, 1, 0.05 do
  705. swait()
  706. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0.1, 0, math.rad(-45)), 0.3)
  707. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(-0.1, 0, math.rad(45)), 0.3)
  708. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(1.57, 0, 0), 0.3)
  709. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  710. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, -1.57), 0.3)
  711. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  712. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.3)
  713. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -math.rad(90), 0), 0.3)
  714. end
  715. local nancount = 0
  716. for i = 0, 3, 0.05 do
  717. nancount = nancount + 1
  718. if nancount % 10 == 0 then
  719. sound(231917888, torso, 0.5, 4)
  720. do
  721. local p0 = newPart(Effects, BrickColor.new("Institutional white"), 0.1, true, false, Vector3.new(1, 1, 1), "Part")
  722. p0.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  723. p0.Material = "Neon"
  724. local m0 = mesh("SpecialMesh", p0, "FileMesh", "1051557", nil, Vector3.new(3, 3, 3))
  725. local p1 = newPart(Effects, BrickColor.new("Bright red"), 0, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  726. p1.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  727. p1.Material = "Neon"
  728. local m1 = mesh("SpecialMesh", p1, "Sphere", nil, nil, Vector3.new(30, 30, 30))
  729. local p2 = newPart(Effects, BrickColor.new("Lily white"), 0.1, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  730. p2.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  731. p2.Material = "SmoothPlastic"
  732. local m2 = mesh("SpecialMesh", p2, "Sphere", nil, nil, Vector3.new(31, 31, 31))
  733. weld(p1, p0, p1, CFrame.new(0, 0, 0))
  734. weld(p1, p2, p1, CFrame.new(0, 0, 0))
  735. local now = RootPart.CFrame * CFrame.new(0, 0, 0)
  736. thread(function()
  737. for i = 1, 20 do
  738. swait()
  739. m0.Scale = m0.Scale + Vector3.new(1, 1, 1)
  740. p0.Transparency = p0.Transparency + 0.05
  741. p0.CFrame = now * CFrame.Angles(0, math.rad(15 * i), 0)
  742. m1.Scale = m1.Scale + Vector3.new(1, 1, 1)
  743. p1.Transparency = p1.Transparency + 0.05
  744. p1.CFrame = now
  745. m2.Scale = m2.Scale + Vector3.new(1, 1, 1)
  746. p2.Transparency = p2.Transparency + 0.05
  747. p2.CFrame = now
  748. end
  749. p0:Destroy()
  750. p1:Destroy()
  751. p2:Destroy()
  752. end)
  753. for i, v in pairs(findCloseHumanoid(now.p, 15)) do
  754. basicDamage(v, 4, BrickColor.new("Maroon").Color)
  755. delay(0.1, function()
  756. --basic.Burn(Effects, v, 1, BrickColor.new("Bright red").Color, math.random(1, 3))
  757. end)
  758. end
  759. end
  760. end
  761. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(0.1, 0, math.rad(-45)), 0.3)
  762. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0.1, 0, math.rad(45) + 0.1 * -i * 67), 0.3)
  763. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(1.57, 0, 0.785), 0.3)
  764. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  765. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.785, 0, -1.57), 0.3)
  766. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  767. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.3)
  768. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -math.rad(90), 0), 0.3)
  769. swait()
  770. end
  771. AttackCan[1] = true
  772. attacking.Value = false
  773. end
  774. if key.KeyCode == Enum.KeyCode.E then
  775. if AttackHas[2] < AttackNeeded[2] or Energy.Value < Attack2Energy then
  776. return
  777. end
  778. Energy.Value = Energy.Value - Attack2Energy
  779. AttackHas[2] = 0
  780. AttackCan[2] = false
  781. attacking.Value = true
  782. for i = 0, 1, 0.05 do
  783. swait()
  784. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), 0, math.rad(0)), 0.15)
  785. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.15)
  786. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.2) * CFrame.Angles(math.rad(90), 0, -math.rad(45)), 0.15)
  787. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0.2), 0.2)
  788. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(45)), 0.15)
  789. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  790. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(15), math.rad(80), 0), 0.15)
  791. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.2) * CFrame.Angles(math.rad(15), -math.rad(80), 0), 0.15)
  792. end
  793. do
  794. local p0 = newPart(Effects, BrickColor.new("Institutional white"), 0.1, true, false, Vector3.new(1, 1, 1), "Part")
  795. p0.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  796. p0.Material = "Neon"
  797. local m0 = mesh("SpecialMesh", p0, "FileMesh", "1051557", nil, Vector3.new(3, 3, 3))
  798. local p1 = newPart(Effects, BrickColor.new("Bright red"), 0, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  799. p1.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  800. p1.Material = "Neon"
  801. local m1 = mesh("SpecialMesh", p1, "Sphere", nil, nil, Vector3.new(30, 30, 30))
  802. local p2 = newPart(Effects, BrickColor.new("Lily white"), 0.1, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  803. p2.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  804. p2.Material = "SmoothPlastic"
  805. local m2 = mesh("SpecialMesh", p2, "Sphere", nil, nil, Vector3.new(31, 31, 31))
  806. weld(p1, p0, p1, CFrame.new(0, 0, 0))
  807. weld(p1, p2, p1, CFrame.new(0, 0, 0))
  808. local now = RootPart.CFrame * CFrame.new(0, 0, 0)
  809. thread(function()
  810. for i = 1, 40 do
  811. swait()
  812. m0.Scale = m0.Scale + Vector3.new(5, 5, 5)
  813. p0.Transparency = p0.Transparency + 0.025
  814. p0.CFrame = now * CFrame.Angles(0, math.rad(15 * i), 0)
  815. m1.Scale = m1.Scale + Vector3.new(5, 5, 5)
  816. p1.Transparency = p1.Transparency + 0.025
  817. p1.CFrame = now
  818. m2.Scale = m2.Scale + Vector3.new(1, 1, 1)
  819. p2.Transparency = p2.Transparency + 0.025
  820. p2.CFrame = now
  821. end
  822. p0:Destroy()
  823. p1:Destroy()
  824. p2:Destroy()
  825. end)
  826. for i, v in pairs(findCloseHumanoid(torso.Position, 25)) do
  827. do
  828. local enemply = game.Players:GetPlayerFromCharacter(v.Parent)
  829. local baseply = player
  830. if enemply then
  831. if enemply.TeamColor == baseply.TeamColor and enemply.Neutral == false and baseply.Neutral == false then
  832. --basic.Buff(Effects, v, Color3.new(0, 0, 0), "Attack", 0.1, 5)
  833. else
  834. --basic.Burn(Effects, v, 2.5, BrickColor.new("Bright red").Color, math.random(3, 6))
  835. delay(0.5, function()
  836. --basic.Burn(Effects, v, 2.5, BrickColor.new("Bright red").Color, math.random(3, 6))
  837. end)
  838. end
  839. elseif not enemply then
  840. --basic.Burn(Effects, v, 2.5, BrickColor.new("Bright red").Color, math.random(3, 6))
  841. delay(0.5, function()
  842. --basic.Burn(Effects, v, 2.5, BrickColor.new("Bright red").Color, math.random(3, 6))
  843. end)
  844. end
  845. end
  846. end
  847. sound(416103546, torso, 0.5, 5)
  848. for i = 0, 1, 0.05 do
  849. swait()
  850. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.3)
  851. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.3)
  852. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, 0, math.rad(100)), 0.3)
  853. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  854. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, math.rad(-100)), 0.3)
  855. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  856. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(80), 0), 0.3)
  857. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.2) * CFrame.Angles(math.rad(-15), -math.rad(80), 0), 0.3)
  858. end
  859. wait(0.1)
  860. AttackCan[2] = true
  861. attacking.Value = false
  862. end
  863. end
  864. if key.KeyCode == Enum.KeyCode.R then
  865. if AttackHas[3] < AttackNeeded[3] or Energy.Value < Attack3Energy then
  866. return
  867. end
  868. Energy.Value = Energy.Value - Attack3Energy
  869. AttackHas[3] = 0
  870. AttackCan[3] = false
  871. attacking.Value = true
  872. for i = 0, 1, 0.1 do
  873. swait()
  874. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.15)
  875. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.15)
  876. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, 0, math.rad(100)), 0.15)
  877. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  878. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, math.rad(-100)), 0.15)
  879. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  880. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(80), 0), 0.15)
  881. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.2) * CFrame.Angles(math.rad(-15), -math.rad(80), 0), 0.15)
  882. end
  883. for i = 1, 6 do
  884. do
  885. local p0 = newPart(Effects, BrickColor.new("Institutional white"), 0.1, false, false, Vector3.new(1, 1, 1), "Part")
  886. p0.CFrame = RootPart.CFrame * CFrame.new(0, 2, -2)
  887. p0.Material = "Neon"
  888. local m0 = mesh("SpecialMesh", p0, "FileMesh", "1051557", nil, Vector3.new(8, 8, 8))
  889. local bv0 = Instance.new("BodyVelocity", p0)
  890. bv0.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  891. bv0.Velocity = (RootPart.CFrame * CFrame.Angles(0, math.rad(-45 + 11.25 * i), 0)).lookVector * 15
  892. local bv1 = Instance.new("BodyAngularVelocity", p0)
  893. bv1.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  894. bv1.AngularVelocity = Vector3.new(0, 10, 0)
  895. p0.Touched:connect(function(hit)
  896. thread(function()
  897. if not hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  898. return
  899. end
  900. if hit.Parent.Humanoid == humanoid then
  901. return
  902. end
  903. if hit.Parent:findFirstChild("Vandalism_Hit" .. plr.Name) then
  904. return
  905. end
  906. local bvc = bv0:Clone()
  907. bvc.Parent = hit.Parent.Torso
  908. local bvc2 = bv1:Clone()
  909. bvc2.Parent = hit.Parent.Torso
  910. local str = Instance.new("StringValue", hit.Parent)
  911. str.Name = "Vandalism_Hit" .. plr.Name
  912. sound(240517987, p0, 0.5, 5, 1)
  913. while p0.Parent == Effects do
  914. basicDamage(hit.Parent.Humanoid, 3, BrickColor.new("Mid gray").Color)
  915. wait(0.25)
  916. end
  917. bvc:Destroy()
  918. bvc2:Destroy()
  919. str:Destroy()
  920. end)
  921. end)
  922. spawn(function()
  923. wait(3)
  924. for i = 1, 10 do
  925. swait()
  926. p0.Transparency = p0.Transparency + 0.1
  927. end
  928. p0:Destroy()
  929. end)
  930. end
  931. end
  932. for i = 0, 1, 0.05 do
  933. swait()
  934. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), 0, math.rad(0)), 0.3)
  935. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.3)
  936. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.4) * CFrame.Angles(math.rad(90), 0, -math.rad(0)), 0.3)
  937. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0.2), 0.5)
  938. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0.4) * CFrame.Angles(math.rad(90), 0, math.rad(0)), 0.3)
  939. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  940. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(15), math.rad(80), 0), 0.3)
  941. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.2) * CFrame.Angles(math.rad(15), -math.rad(80), 0), 0.3)
  942. end
  943. AttackCan[3] = true
  944. attacking.Value = false
  945. end
  946. if key.KeyCode == Enum.KeyCode.F then
  947. if AttackHas[4] < AttackNeeded[4] or Energy.Value < Attack4Energy then
  948. return
  949. end
  950. Energy.Value = Energy.Value - Attack4Energy
  951. AttackHas[4] = 0
  952. AttackCan[4] = false
  953. attacking.Value = true
  954. for i = 0, 1, 0.05 do
  955. swait()
  956. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), 0.1)
  957. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.1)
  958. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-70)), 0.1)
  959. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  960. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -0.1, -0.2) * CFrame.Angles(math.rad(170), math.rad(-45), 0), 0.1)
  961. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  962. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(105), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.1)
  963. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), -math.rad(60), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.1)
  964. end
  965. charStats.Speed.Value = charStats.Speed.Value - 2
  966. function explode(pos)
  967. local p0 = newPart(Effects, BrickColor.new("Institutional white"), 0.1, true, false, Vector3.new(1, 1, 1), "Part")
  968. p0.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  969. p0.Material = "Neon"
  970. local m0 = mesh("SpecialMesh", p0, "FileMesh", "1051557", nil, Vector3.new(3, 3, 3))
  971. local p1 = newPart(Effects, BrickColor.new("Bright red"), 0, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  972. p1.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  973. p1.Material = "Neon"
  974. local m1 = mesh("SpecialMesh", p1, "Sphere", nil, nil, Vector3.new(30, 30, 30))
  975. local p2 = newPart(Effects, BrickColor.new("Lily white"), 0.1, true, false, Vector3.new(0.2, 0.2, 0.2), "Part")
  976. p2.CFrame = RootPart.CFrame * CFrame.new(0, 0, 0)
  977. p2.Material = "SmoothPlastic"
  978. local m2 = mesh("SpecialMesh", p2, "Sphere", nil, nil, Vector3.new(31, 31, 31))
  979. weld(p1, p0, p1, CFrame.new(0, 0, 0))
  980. weld(p1, p2, p1, CFrame.new(0, 0, 0))
  981. local ref = newPart(Effects, BrickColor.Black(), 1, true, false, Vector3.new(), "Ref")
  982. sound(231917744, ref, 0.7, 8, 1)
  983. delay(8, function()
  984. ref:Destroy()
  985. end)
  986. local now = CFrame.new(pos)
  987. thread(function()
  988. for i = 1, 40 do
  989. swait()
  990. m0.Scale = m0.Scale + Vector3.new(2, 10, 2)
  991. p0.Transparency = p0.Transparency + 0.025
  992. p0.CFrame = now * CFrame.Angles(0, math.rad(15 * i), 0)
  993. m1.Scale = m1.Scale + Vector3.new(10, 10, 10)
  994. p1.Transparency = p1.Transparency + 0.025
  995. p1.CFrame = now
  996. m2.Scale = m2.Scale + Vector3.new(10, 10, 10)
  997. p2.Transparency = p2.Transparency + 0.025
  998. p2.CFrame = now
  999. end
  1000. p0:Destroy()
  1001. p1:Destroy()
  1002. p2:Destroy()
  1003. end)
  1004. end
  1005. do
  1006. local hitpart, pospart = rayCast(RootPart.Position, RootPart.CFrame.lookVector, 30, char)
  1007. local prevpos = RootPart.CFrame.p
  1008. local nowpos = RootPart.CFrame.p
  1009. local rootunit = RootPart.CFrame.lookVector * 1
  1010. local targpos = nowpos + prevpos
  1011. if not pospart then
  1012. RootPart.CFrame = RootPart.CFrame * CFrame.new(0, 0, -40)
  1013. nowpos = RootPart.CFrame * CFrame.new(0, 0, -40)
  1014. nowpos = nowpos.p
  1015. targpos = (nowpos + prevpos) / 2
  1016. elseif hitpart then
  1017. if hitpart.Parent:findFirstChild("Humanoid") then
  1018. RootPart.CFrame = CFrame.new(pospart + rootunit * 40, RootPart.Position + rootunit)
  1019. nowpos = CFrame.new(pospart + rootunit * 40)
  1020. nowpos = nowpos.p
  1021. targpos = (nowpos + prevpos) / 2
  1022. else
  1023. RootPart.CFrame = CFrame.new(pospart + rootunit, RootPart.Position + rootunit)
  1024. nowpos = CFrame.new(pospart)
  1025. nowpos = nowpos.p
  1026. targpos = (nowpos + prevpos) / 2
  1027. end
  1028. else
  1029. RootPart.CFrame = CFrame.new(pospart + rootunit, RootPart.Position + rootunit)
  1030. nowpos = CFrame.new(pospart)
  1031. nowpos = nowpos.p
  1032. targpos = (nowpos + prevpos) / 2
  1033. end
  1034. local mag = math.abs((nowpos - prevpos).magnitude)
  1035. local mid = (nowpos + prevpos) / 2
  1036. local unit = rootunit
  1037. local laser = newPart(nil, BrickColor.new("Bright red"), 0.5, true, false, Vector3.new(), "Laser", "SmoothPlastic")
  1038. local lmsh = mesh("SpecialMesh", laser, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  1039. laser.CFrame = CFrame.new(mid, mid + unit)
  1040. lmsh.Scale = Vector3.new(2, 2, math.abs(mag * 2))
  1041. thread(function()
  1042. for i = 1, 20 do
  1043. swait()
  1044. lmsh.Scale = lmsh.Scale + Vector3.new(0, 0, 4)
  1045. end
  1046. for i = 1, 20 do
  1047. swait()
  1048. lmsh.Scale = lmsh.Scale + Vector3.new(0, 0, 4)
  1049. laser.Transparency = laser.Transparency + 0.05
  1050. end
  1051. laser:Destroy()
  1052. end)
  1053. laser.Parent = Effects
  1054. for i = 0, 1, 0.05 do
  1055. swait()
  1056. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-80)), 0.3)
  1057. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.3)
  1058. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(160), math.rad(0), math.rad(60)) * CFrame.Angles(0, math.rad(90), 0), 0.3)
  1059. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  1060. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -0.1, -0.2) * CFrame.Angles(math.rad(170), math.rad(-45), 0), 0.3)
  1061. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  1062. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(105), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  1063. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), -math.rad(60), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.3)
  1064. end
  1065. for i = 0, 1, 0.025 do
  1066. swait()
  1067. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(15), 0, math.rad(0)), 0.1)
  1068. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.1)
  1069. if i >= 0.4 then
  1070. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.4) * CFrame.Angles(math.rad(80), math.rad(0), math.rad(100)) * CFrame.Angles(0, math.rad(90), 0), 0.1)
  1071. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0.4) * CFrame.Angles(math.rad(80), math.rad(0), math.rad(-100)), 0.1)
  1072. if i > 0.4 and i < 0.425 then
  1073. explode(targpos)
  1074. for i, v in pairs(findCloseHumanoid(targpos, 40)) do
  1075. basicDamage(v, 15, BrickColor.new("Maroon").Color)
  1076. delay(0.1, function()
  1077. --basic.Burn(Effects, v, 3, BrickColor.new("Bright red").Color, math.random(5, 10), 0.1)
  1078. end)
  1079. end
  1080. end
  1081. else
  1082. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(210)), 0.1)
  1083. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-210)), 0.1)
  1084. end
  1085. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  1086. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(105), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.1)
  1087. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), -math.rad(60), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.1)
  1088. end
  1089. charStats.Speed.Value = charStats.Speed.Value + 2
  1090. AttackCan[4] = true
  1091. attacking.Value = false
  1092. end
  1093. end
  1094. end)
  1095. thread(function()
  1096. tweentick = 45
  1097. tweenrot = 0.9
  1098. tweenrotm = 0.15
  1099. while true do
  1100. swait()
  1101. sinecount = sinecount + 1
  1102. normcount = normcount + 1
  1103. local sinewave = math.sin(sinecount * 3 / 75) * 0.2
  1104. local function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  1105. local function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1106. local fp = Instance.new("Part")
  1107. fp.formFactor = formfactor
  1108. fp.Parent = Effects
  1109. fp.Reflectance = reflectance
  1110. fp.Transparency = transparency
  1111. fp.CanCollide = false
  1112. fp.Locked = true
  1113. fp.BrickColor = brickcolor
  1114. fp.Name = name
  1115. fp.Size = size
  1116. fp.Position = torso.Position
  1117. NoOutline(fp)
  1118. fp.Material = "SmoothPlastic"
  1119. fp:BreakJoints()
  1120. return fp
  1121. end
  1122. local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new())
  1123. prt.Anchored = true
  1124. prt.CFrame = cframe
  1125. local msh = mesh("BlockMesh", prt, "", nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1126. return prt, msh
  1127. end
  1128. if normcount % 3 == 0 then
  1129. local mb = MagicBlock(BrickColor.new("Really red"), torso.CFrame * CFrame.new(math.random(-3, 3), math.random(-3, -3), math.random(-3, 3)) * CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, 2, 2, 2, 0.05, 2, Part)
  1130. mb.Material = "Neon"
  1131. local m = mesh("BlockMesh", mb, nil, nil, Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1132. table.insert(partEffects, {
  1133. mb,
  1134. "MoveDisappear",
  1135. 0.05,
  1136. 0,
  1137. 0.1,
  1138. 0
  1139. })
  1140. end
  1141. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1142. local rotvel = RootPart.RotVelocity.Y
  1143. local hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1144. if attacking.Value == false then
  1145. if 1 < RootPart.Velocity.y and hitfloor == nil then
  1146. Anim = "Jump"
  1147. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.1)
  1148. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1149. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1150. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1151. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1152. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1153. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.2)
  1154. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.2)
  1155. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1156. Anim = "Fall"
  1157. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(23), 0, 0), 0.2)
  1158. Neck.C1 = clerp(Neck.C1, necko2 * CFrame.Angles(0, 0, 0), 0.2)
  1159. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1160. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1161. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1162. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1163. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1164. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(24), math.rad(90), 0), 0.2)
  1165. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-12), -math.rad(90), 0), 0.2)
  1166. elseif torvel < 1 and hitfloor ~= nil then
  1167. Anim = "Idle"
  1168. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(5), 0, math.rad(20)), 0.1)
  1169. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, math.cos(normcount / 45) / 8) * CFrame.Angles(math.rad(0), 0, math.rad(-20)), 0.1)
  1170. RW.C0 = clerp(RW.C0, CFrame.new(1.5, -0.1 + math.cos(normcount / 32) / 8, 0) * CFrame.Angles(math.rad(160), math.rad(45), 0), 0.2)
  1171. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1172. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -0.1 + math.cos(normcount / 32) / 8, -0.2) * CFrame.Angles(math.rad(140), math.rad(-45), 0), 0.2)
  1173. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1174. RH.C0 = clerp(RH.C0, CFrame.new(1, -1 - math.cos(normcount / 45) / 8, 0) * CFrame.Angles(math.rad(0), math.rad(95), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1175. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - math.cos(normcount / 45) / 8, 0) * CFrame.Angles(math.rad(0), -math.rad(80), math.rad(0)) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1176. elseif torvel > 1 and hitfloor ~= nil then
  1177. sinewave = sinewave / 10
  1178. Anim = "Walk"
  1179. Neck.C0 = clerp(Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(5), math.rad(70) + math.rad(rotvel * 4)), 0.1)
  1180. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(0), math.rad(rotvel * 1), math.rad(-70)), 0.1)
  1181. RW.C0 = clerp(RW.C0, CFrame.new(1.5, -0.1, 0) * CFrame.Angles(math.rad(150), math.rad(45), 0), 0.2)
  1182. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1183. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -0.1, -0.2) * CFrame.Angles(math.rad(130), math.rad(-45), 0), 0.2)
  1184. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1185. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.cos(normcount * 1 / 6), math.rad(105), 0), 0.2)
  1186. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(-math.cos(normcount * 1 / 6), -math.rad(60), 0), 0.2)
  1187. end
  1188. RootJoint.C0 = clerp(RootJoint.C0, RootJoint.C0 * CFrame.new(0, 0, sinewave / 3), 0.1)
  1189. RW.C0 = clerp(RW.C0, RW.C0 * CFrame.new(0, sinewave / 3, 0), 0.2)
  1190. LW.C0 = clerp(LW.C0, LW.C0 * CFrame.new(0, sinewave / 3, 0), 0.2)
  1191. RH.C0 = clerp(RH.C0, RH.C0 * CFrame.new(0, -sinewave / 3, 0), 0.2)
  1192. LH.C0 = clerp(LH.C0, LH.C0 * CFrame.new(0, -sinewave / 3, 0), 0.2)
  1193. end
  1194. if AttackHas[1] < AttackNeeded[1] and AttackCan[1] == true then
  1195. AttackHas[1] = AttackHas[1] + Attack1Get
  1196. end
  1197. if AttackHas[2] < AttackNeeded[2] and AttackCan[2] == true then
  1198. AttackHas[2] = AttackHas[2] + Attack2Get
  1199. end
  1200. if AttackHas[3] < AttackNeeded[3] and AttackCan[3] == true then
  1201. AttackHas[3] = AttackHas[3] + Attack3Get
  1202. end
  1203. if AttackHas[4] < AttackNeeded[4] and AttackCan[4] == true then
  1204. AttackHas[4] = AttackHas[4] + Attack4Get
  1205. end
  1206. --[[
  1207. Re1:TweenSize(UDim2.new(AttackHas[1] / AttackNeeded[1], 0, 1, 0), nil, 1, 0.4)
  1208. Re2:TweenSize(UDim2.new(AttackHas[2] / AttackNeeded[2], 0, 1, 0), nil, 1, 0.4)
  1209. Re3:TweenSize(UDim2.new(AttackHas[3] / AttackNeeded[3], 0, 1, 0), nil, 1, 0.4)
  1210. Re4:TweenSize(UDim2.new(AttackHas[4] / AttackNeeded[4], 0, 1, 0), nil, 1, 0.4)
  1211. ]]
  1212. for i = 1, #partEffects do
  1213. if partEffects[i] ~= nil then
  1214. local Thing = partEffects[i]
  1215. if Thing ~= nil then
  1216. local Part = Thing[1]
  1217. local Type = Thing[2]
  1218. local Increment = Thing[3]
  1219. local IncX = Thing[4]
  1220. local IncY = Thing[5]
  1221. local IncZ = Thing[6]
  1222. local SizeX = Thing[7]
  1223. local SizeY = Thing[8]
  1224. local SizeZ = Thing[9]
  1225. if 1 >= Part.Transparency then
  1226. if Type == "Disappear" then
  1227. Part.Transparency = Part.Transparency + Increment
  1228. end
  1229. if Type == "MoveDisappear" then
  1230. Part.Transparency = Part.Transparency + Increment
  1231. Part.CFrame = CFrame.new(Part.CFrame.X + IncX, Part.CFrame.Y + IncY, Part.CFrame.Z + IncZ) * randomangles()
  1232. end
  1233. if Type == "MoveBloom" then
  1234. Part.Transparency = Part.Transparency + Increment
  1235. Part.CFrame = Part.CFrame * CFrame.new(IncX, IncY, IncZ)
  1236. Part.CFrame = Part.CFrame * CFrame.new(SizeX, SizeY, SizeZ)
  1237. end
  1238. if Type == "DiappearBloom" then
  1239. Part.Transparency = Part.Transparency + Increment
  1240. Part.CFrame = Part.CFrame * CFrame.new(IncX, IncY, IncZ)
  1241. end
  1242. else
  1243. Part.Transparency = 1
  1244. Part:Destroy()
  1245. table.remove(partEffects, i)
  1246. end
  1247. end
  1248. end
  1249. end
  1250. end
  1251. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement