Advertisement
coolgoldboy166

Aether

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