Advertisement
Guest User

Audio Viz

a guest
Nov 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.57 KB | None | 0 0
  1. --[[Floaty thing by SezHu.
  2.  
  3. If you want a creation like this of your own, shoot me a friend request me on Discord! (Sezzie
  4. #1875) Prices start at 250 robux.]]--
  5.  
  6.  
  7. local songs = {
  8. 877658690, --Derrick Bum Kitchen Gun...
  9. 2294569397, --Welcome to the party...
  10. 1010161686, --Everyone dies in their nightmares...
  11. 1003325030, --Carry on
  12. 342552080, --Broken..
  13. 390830356, --All we do..
  14. 1461866646, --Its cool
  15. 1330797958, --Big Deep Voice
  16. 1236713261, --Its just a Ghetto Christmas
  17. } --Add your songs by replacing the IDs with your song ID.
  18.  
  19.  
  20. local quotes = {
  21. "Something to relax to..",
  22. "Yawn..",
  23. "Just floatin'~",
  24. "Going up~",
  25. "I like this song..",
  26. "Time to kick back..",
  27. "Life is such a drag sometimes....",
  28. "Sometimes you just gotta let go...",
  29. "Love, Live, Peace....",
  30. "Its time to P A R T Y",
  31. "I miss them.",
  32. "I love you...",
  33. } --Feel free to replace the quotes with stuff of your own.
  34.  
  35.  
  36. local function soundbork(obj)
  37. if obj:IsA("Sound") and obj.Name ~= "playlist" then
  38. --obj:Destroy() Remove the two dashes to silence all music but your own.
  39. return
  40. end
  41.  
  42.  
  43. local children = obj:GetChildren()
  44. for i = 1, #children do
  45. soundbork(children[i])
  46. end
  47.  
  48. return
  49. end
  50.  
  51. --//Constants\\--
  52.  
  53. Effects = { }
  54. local Player = game.Players.localPlayer
  55. local Mouse = Player:GetMouse()
  56. local Character = Player.Character
  57. local Humanoid = Character.Humanoid
  58. local Head = Character.Head
  59. local RootPart = Character.HumanoidRootPart
  60. local Torso = Character.Torso
  61. local LeftArm = Character["Left Arm"]
  62. local RightArm = Character["Right Arm"]
  63. local LeftLeg = Character["Left Leg"]
  64. local RightLeg = Character["Right Leg"]
  65. local Camera = game.Workspace.CurrentCamera
  66. local RootJoint = RootPart.RootJoint
  67. local Equipped = false
  68. local Attack = false
  69. local Anim = 'Idle'
  70. local Idle = 0
  71. local Combo = 1
  72. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  73. local Velocity = RootPart.Velocity.y
  74. local Sine = 0
  75. local Change = 1
  76. local aoeconstant = 10
  77. local maincol = "Pink"
  78. local maincol2 = "White"
  79. local randString = songs[math.random(#songs)]
  80. local circleinthesky = false
  81. Character.Humanoid.Name = "help"
  82. humanoid = Character.help
  83. Instance.new("ForceField",Character).Visible = false
  84.  
  85.  
  86.  
  87.  
  88.  
  89. local RbxUtility = LoadLibrary("RbxUtility")
  90. local Create = RbxUtility.Create
  91.  
  92. humanoid.WalkSpeed = 13
  93. humanoid.JumpPower = 0
  94. humanoid.Animator.Parent = nil
  95. Character.Animate.Parent = nil
  96.  
  97. local newMotor = function(part0, part1, c0, c1)
  98. local w = Create('Motor'){
  99. Parent = part0,
  100. Part0 = part0,
  101. Part1 = part1,
  102. C0 = c0,
  103. C1 = c1,
  104. }
  105. return w
  106. end
  107.  
  108.  
  109. skillcolorscheme = BrickColor.new(maincol).Color
  110.  
  111. local hue = 0
  112.  
  113. spawn(function()
  114. while true do
  115. hue = hue + .0005
  116. if hue >= 1 then hue = 0 end
  117. maincol2 = Color3.fromHSV(hue,1,1)
  118. game["Run Service"].RenderStepped:wait()
  119. end
  120. end)
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  128. function makeframe(par, trans, pos, size, color)
  129. local frame = Instance.new('Frame', par)
  130. frame.BackgroundTransparency = trans
  131. frame.BorderSizePixel = 0
  132. frame.Position = pos
  133. frame.Size = size
  134. frame.BackgroundColor3 = color
  135. return frame
  136. end
  137.  
  138. --framesk1 = makeframe(scrn, .95, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  139.  
  140. function clerp(a, b, t)
  141. return a:lerp(b, t)
  142. end
  143.  
  144. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  145. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  146.  
  147. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  148. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  149. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  150. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  151. RootJoint.C1 = CFrame.new(0, 0, 0)
  152. RootJoint.C0 = CFrame.new(0, 0, 0)
  153. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  154. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  155.  
  156. local rarmc1 = RW.C1
  157. local larmc1 = LW.C1
  158. local rlegc1 = RH.C1
  159. local llegc1 = LH.C1
  160.  
  161. local resetc1 = false
  162.  
  163. function PlayAnimationFromTable(table, speed, bool)
  164. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  165. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  166. RW.C0 = clerp(RW.C0, table[3], speed)
  167. LW.C0 = clerp(LW.C0, table[4], speed)
  168. RH.C0 = clerp(RH.C0, table[5], speed)
  169. LH.C0 = clerp(LH.C0, table[6], speed)
  170. if bool == true then
  171. if resetc1 == false then
  172. resetc1 = true
  173. RootJoint.C1 = RootJoint.C1
  174. Torso.Neck.C1 = Torso.Neck.C1
  175. RW.C1 = rarmc1
  176. LW.C1 = larmc1
  177. RH.C1 = rlegc1
  178. LH.C1 = llegc1
  179. end
  180. end
  181. end
  182.  
  183. ArtificialHB = Create("BindableEvent"){
  184. Parent = script,
  185. Name = "Heartbeat",
  186. }
  187.  
  188. script:WaitForChild("Heartbeat")
  189.  
  190. frame = 1 / 35
  191. tf = 0
  192. allowframeloss = false
  193. tossremainder = false
  194. lastframe = tick()
  195. script.Heartbeat:Fire()
  196.  
  197. game:GetService("RunService").Heartbeat:connect(function(s, p)
  198. tf = tf + s
  199. if tf >= frame then
  200. if allowframeloss then
  201. script.Heartbeat:Fire()
  202. lastframe = tick()
  203. else
  204. for i = 1, math.floor(tf / frame) do
  205. script.Heartbeat:Fire()
  206. end
  207. lastframe = tick()
  208. end
  209. if tossremainder then
  210. tf = 0
  211. else
  212. tf = tf - frame * math.floor(tf / frame)
  213. end
  214. end
  215. end)
  216.  
  217. function swait(num)
  218. if num == 0 or num == nil then
  219. ArtificialHB.Event:wait()
  220. else
  221. for i = 0, num do
  222. ArtificialHB.Event:wait()
  223. end
  224. end
  225. end
  226.  
  227.  
  228.  
  229. local m = Create("Model"){
  230. Parent = Character,
  231. Name = "WeaponModel"
  232. }
  233.  
  234. function RemoveOutlines(part)
  235. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  236. end
  237.  
  238. CFuncs = {
  239. Part = {
  240. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  241. local Part = Create("Part"){
  242. Parent = Parent,
  243. Reflectance = Reflectance,
  244. Transparency = Transparency,
  245. CanCollide = false,
  246. Locked = true,
  247. BrickColor = BrickColor.new(tostring(BColor)),
  248. Name = Name,
  249. Size = Size,
  250. Material = Material,
  251. }
  252. RemoveOutlines(Part)
  253. if Size == Vector3.new() then
  254. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  255. else
  256. Part.Size = Size
  257. end
  258. return Part
  259. end;
  260. };
  261.  
  262. Mesh = {
  263. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  264. local Msh = Create(Mesh){
  265. Parent = Part,
  266. Offset = OffSet,
  267. Scale = Scale,
  268. }
  269. if Mesh == "SpecialMesh" then
  270. Msh.MeshType = MeshType
  271. Msh.MeshId = MeshId
  272. end
  273. return Msh
  274. end;
  275. };
  276.  
  277. Weld = {
  278. Create = function(Parent, Part0, Part1, C0, C1)
  279. local Weld = Create("Weld"){
  280. Parent = Parent,
  281. Part0 = Part0,
  282. Part1 = Part1,
  283. C0 = C0,
  284. C1 = C1,
  285. }
  286. return Weld
  287. end;
  288. };
  289.  
  290. Sound = {
  291. Create = function(id, par, vol, pit, looped)
  292. coroutine.resume(coroutine.create(function()
  293. local S = Create("Sound"){
  294. Volume = vol,
  295. Pitch = pit or 1,
  296. SoundId = "rbxassetid://" .. id,
  297. Parent = par or workspace,
  298. Looped = looped
  299. }
  300. wait()
  301. S:play()
  302. end))
  303. end;
  304. };
  305.  
  306. ParticleEmitter = {
  307. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  308. local Particle = Create("ParticleEmitter"){
  309. Parent = Parent,
  310. Color = ColorSequence.new(Color1, Color2),
  311. LightEmission = LightEmission,
  312. Size = Size,
  313. Texture = Texture,
  314. Transparency = Transparency,
  315. ZOffset = ZOffset,
  316. Acceleration = Accel,
  317. Drag = Drag,
  318. LockedToPart = LockedToPart,
  319. VelocityInheritance = VelocityInheritance,
  320. EmissionDirection = EmissionDirection,
  321. Enabled = Enabled,
  322. Lifetime = LifeTime,
  323. Rate = Rate,
  324. Rotation = Rotation,
  325. RotSpeed = RotSpeed,
  326. Speed = Speed,
  327. VelocitySpread = VelocitySpread,
  328. }
  329. return Particle
  330. end;
  331. };
  332.  
  333. CreateTemplate = {
  334.  
  335. };
  336. }
  337.  
  338. --/v/Don't touch this part. \v\--
  339.  
  340. playlist=Instance.new("Sound", Torso)
  341. playlist.SoundId = "rbxassetid://" ..randString
  342. playlist.Volume = 5
  343. playlist.Looped = false
  344. playlist.Name = "playlist"
  345. playlist:Play()
  346.  
  347. --/^/Don't touch this part. \^\--
  348.  
  349. function RayCast(Position, Direction, Range, Ignore)
  350. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  351. end
  352.  
  353. FindNearestTorso = function(pos)
  354. local list = (game.Workspace:children())
  355. local torso = nil
  356. local dist = 1000
  357. local temp, human, temp2 = nil, nil, nil
  358. for x = 1, #list do
  359. temp2 = list[x]
  360. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  361. temp = temp2:findFirstChild("Torso")
  362. human = temp2:findFirstChild("Humanoid")
  363. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  364. local dohit = true
  365. if dohit == true then
  366. torso = temp
  367. dist = (temp.Position - pos).magnitude
  368. end
  369. end
  370. end
  371. end
  372. return torso, dist
  373. end
  374.  
  375. RootPart.CFrame = RootPart.CFrame * CFrame.new(0,5,0)
  376.  
  377. Harness=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Harness",Vector3.new(0.420000285, 0.490000188, 0.399999768))
  378. HarnessWeld=CFuncs.Weld.Create(m,Character["Torso"],Harness,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500001907, -0.0350001119, -0.0871353149, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  379. FloatField2=CFuncs.Part.Create(m,Enum.Material.Neon,0,.5,"Lily white","FloatField2",Vector3.new(5, 8, 5))
  380. FloatField2Weld=CFuncs.Weld.Create(m,Harness,FloatField2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.58035278e-05, 3.50000337e-05, 6.10351563e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  381. flotemesh=CFuncs.Mesh.Create("SpecialMesh",FloatField2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  382. spinny=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny", Vector3.new())
  383. spinny.Anchored=true
  384. spinny.CanCollide=false
  385.  
  386.  
  387. transp = .5
  388. spawn(function()
  389. while true do
  390. transp = transp + .001
  391. FloatField2.Transparency = transp
  392. swait()
  393. if transp >= 1 then
  394. transp = .5
  395. end
  396. end
  397. end)
  398.  
  399.  
  400.  
  401. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  402. if hit.Parent == nil then
  403. return
  404. end
  405. local h = hit.Parent:FindFirstChild("Humanoid")
  406. for _, v in pairs(hit.Parent:children()) do
  407. if v:IsA("Humanoid") then
  408. h = v
  409. end
  410. end
  411. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  412. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  413. if hit.Parent.DebounceHit.Value == true then
  414. return
  415. end
  416. end
  417. local c = Create("ObjectValue"){
  418. Name = "creator",
  419. Value = game:service("Players").LocalPlayer,
  420. Parent = h,
  421. }
  422. game:GetService("Debris"):AddItem(c, .5)
  423. if HitSound ~= nil and HitPitch ~= nil then
  424. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  425. end
  426. local Damage = math.random(minim, maxim)
  427. local blocked = false
  428. local block = hit.Parent:findFirstChild("Block")
  429. if block ~= nil then
  430. if block.className == "IntValue" then
  431. if block.Value > 0 then
  432. blocked = true
  433. block.Value = block.Value - 1
  434. print(block.Value)
  435. end
  436. end
  437. end
  438. if blocked == false then
  439. h.Health = h.Health - Damage
  440. --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  441. else
  442. h.Health = h.Health - (Damage / 2)
  443. --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  444. end
  445. if Type == "Knockdown" then
  446. local hum = hit.Parent.Humanoid
  447. hum.PlatformStand = true
  448. coroutine.resume(coroutine.create(function(HHumanoid)
  449. swait(1)
  450. HHumanoid.PlatformStand = false
  451. end), hum)
  452. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  453. local bodvol = Create("BodyVelocity"){
  454. velocity = angle * knockback,
  455. P = 5000,
  456. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  457. Parent = hit,
  458. }
  459. local rl = Create("BodyAngularVelocity"){
  460. P = 3000,
  461. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  462. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  463. Parent = hit,
  464. }
  465. game:GetService("Debris"):AddItem(bodvol, .5)
  466. game:GetService("Debris"):AddItem(rl, .5)
  467. elseif Type == "Normal" then
  468. local vp = Create("BodyVelocity"){
  469. P = 10,
  470. maxForce = Vector3.new(math.huge, 0, math.huge),
  471. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  472. }
  473. print(hit.Parent)
  474. if knockback > 0 then
  475. vp.Parent = hit.Parent.Torso
  476. end
  477. local hum = hit.Parent.Humanoid
  478. hum.PlatformStand = true
  479. local TotalMass = 0
  480. for _, part in pairs(hit.Parent:GetChildren()) do
  481. if part:IsA("Part") then
  482. TotalMass = TotalMass + part:GetMass()
  483. end
  484. end
  485.  
  486.  
  487.  
  488. local ForceOfGravity = -197 * TotalMass
  489. local floatybits = Instance.new("BodyForce", hit.Parent.Torso)
  490. floatybits.force = Vector3.new(0, -ForceOfGravity, 0)
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497. spawn(function()
  498. local spinny2=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny2", Vector3.new())
  499. spinny2.Anchored=true
  500. spinny2.CanCollide=false
  501. for i = 0, 2, .001 do
  502. local alg = math.floor(playlist.PlaybackLoudness)/500
  503. local alg2 = math.floor(playlist.PlaybackLoudness)/80
  504. local efekt2=CFuncs.Part.Create(hit.Parent.Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))
  505. efekt2.Anchored=true
  506. efekt2.CanCollide=false
  507. spinny2.CFrame = spinny2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  508. spinny2.Position = hit.Parent.Torso.Position
  509. efekt2.CFrame=spinny2.CFrame*CFrame.new(aoeconstant-5,0,0)
  510. game:GetService("Debris"):AddItem(efekt2, .7)
  511. swait()
  512. end
  513. end)
  514.  
  515. local rl = Create("BodyAngularVelocity"){
  516. P = 500,
  517. maxTorque = Vector3.new(10, 10, 10),
  518. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  519. Parent = hit,
  520. }
  521. game:GetService("Debris"):AddItem(rl, 10)
  522. game:GetService("Debris"):AddItem(floatybits, 10)
  523. game:GetService("Debris"):AddItem(vp, .5)
  524.  
  525. elseif Type == "Up" then
  526. local bodyVelocity = Create("BodyVelocity"){
  527. velocity = Vector3.new(0, 20, 0),
  528. P = 5000,
  529. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  530. Parent = hit,
  531. }
  532. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  533. elseif Type == "DarkUp" then
  534. coroutine.resume(coroutine.create(function()
  535. for i = 0, 1, 0.1 do
  536. swait()
  537. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  538. end
  539. end))
  540. local bodyVelocity = Create("BodyVelocity"){
  541. velocity = Vector3.new(0, 20, 0),
  542. P = 5000,
  543. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  544. Parent = hit,
  545. }
  546. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  547. elseif Type == "Snare" then
  548. local bp = Create("BodyPosition"){
  549. P = 2000,
  550. D = 100,
  551. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  552. position = hit.Parent.Torso.Position,
  553. Parent = hit.Parent.Torso,
  554. }
  555. game:GetService("Debris"):AddItem(bp, 1)
  556. elseif Type == "Freeze" then
  557. local BodPos = Create("BodyPosition"){
  558. P = 50000,
  559. D = 1000,
  560. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  561. position = hit.Parent.Torso.Position,
  562. Parent = hit.Parent.Torso,
  563. }
  564. local BodGy = Create("BodyGyro") {
  565. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  566. P = 20e+003,
  567. Parent = hit.Parent.Torso,
  568. cf = hit.Parent.Torso.CFrame,
  569. }
  570. hit.Parent.Torso.Anchored = true
  571. coroutine.resume(coroutine.create(function(Part)
  572. swait(1.5)
  573. Part.Anchored = false
  574. end), hit.Parent.Torso)
  575. game:GetService("Debris"):AddItem(BodPos, 3)
  576. game:GetService("Debris"):AddItem(BodGy, 3)
  577. end
  578. local debounce = Create("BoolValue"){
  579. Name = "DebounceHit",
  580. Parent = hit.Parent,
  581. Value = true,
  582. }
  583. game:GetService("Debris"):AddItem(debounce, Delay)
  584. c = Create("ObjectValue"){
  585. Name = "creator",
  586. Value = Player,
  587. Parent = h,
  588. }
  589. game:GetService("Debris"):AddItem(c, .5)
  590. end
  591. end
  592.  
  593. function ShowDamage(Pos, Text, Time, Color)
  594. local Rate = (1 / 60)
  595. local Pos = (Pos or Vector3.new(0, 0, 0))
  596. local Text = (Text or "")
  597. local Time = (Time or 2)
  598. local Color = (Color or Color3.new(1, 0, 1))
  599. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  600. EffectPart.Anchored = true
  601. local BillboardGui = Create("BillboardGui"){
  602. Size = UDim2.new(3, 0, 3, 0),
  603. Adornee = EffectPart,
  604. Parent = EffectPart,
  605. }
  606. local TextLabel = Create("TextLabel"){
  607. BackgroundTransparency = 1,
  608. Size = UDim2.new(1, 0, 1, 0),
  609. Text = Text,
  610. Font = "SourceSansLight",
  611. TextColor3 = Color,
  612. TextScaled = true,
  613. Parent = BillboardGui,
  614. }
  615. game.Debris:AddItem(EffectPart, (Time))
  616. EffectPart.Parent = game:GetService("Workspace")
  617. delay(0, function()
  618. local Frames = (Time / Rate)
  619. for Frame = 1, Frames do
  620. wait(Rate)
  621. local Percent = (Frame / Frames)
  622. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  623. TextLabel.TextTransparency = Percent
  624. end
  625. if EffectPart and EffectPart.Parent then
  626. EffectPart:Destroy()
  627. end
  628. end)
  629. end
  630.  
  631. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  632. for _, c in pairs(workspace:children()) do
  633. local hum = c:findFirstChild("Humanoid")
  634. if hum ~= nil then
  635. local head = c:findFirstChild("Torso")
  636. if head ~= nil then
  637. local targ = head.Position - Part.Position
  638. local mag = targ.magnitude
  639. if mag <= Magnitude and c.Name ~= Player.Name then
  640. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 10, "rbxassetid://" .. HitSound, HitPitch)
  641. end
  642. end
  643. end
  644. end
  645. end
  646.  
  647. EffectModel = Create("Model"){
  648. Parent = Character,
  649. Name = "EffectModel",
  650. }
  651.  
  652. Effects = {
  653. Block = {
  654. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  655. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  656. prt.Anchored = true
  657. prt.CFrame = cframe
  658. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  659. game:GetService("Debris"):AddItem(prt, 10)
  660. if Type == 1 or Type == nil then
  661. table.insert(Effects, {
  662. prt,
  663. "Block1",
  664. delay,
  665. x3,
  666. y3,
  667. z3,
  668. msh
  669. })
  670. elseif Type == 2 then
  671. table.insert(Effects, {
  672. prt,
  673. "Block2",
  674. delay,
  675. x3,
  676. y3,
  677. z3,
  678. msh
  679. })
  680. elseif Type == 3 then
  681. table.insert(Effects, {
  682. prt,
  683. "Block3",
  684. delay,
  685. x3,
  686. y3,
  687. z3,
  688. msh,
  689. Part
  690. })
  691. elseif Type == 4 then
  692. table.insert(Effects, {
  693. prt,
  694. "Block2Fire",
  695. delay,
  696. x3,
  697. y3,
  698. z3,
  699. msh
  700. })
  701. end
  702. end
  703. };
  704.  
  705. Sphere = {
  706. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  707. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  708. prt.Anchored = true
  709. prt.CFrame = cframe
  710. if parent == nil then
  711. prt.Parent = workspace
  712. else
  713. prt.Parent = parent
  714. end
  715. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  716. game:GetService("Debris"):AddItem(prt, 10)
  717. table.insert(Effects, {
  718. prt,
  719. "Cylinder",
  720. delay,
  721. x3,
  722. y3,
  723. z3,
  724. msh
  725. })
  726. end
  727. };
  728.  
  729. Blood = {
  730. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  731. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  732. prt.Anchored = true
  733. prt.CFrame = cframe
  734. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  735. game:GetService("Debris"):AddItem(prt, 10)
  736. table.insert(Effects, {
  737. prt,
  738. "Blood",
  739. delay,
  740. x3,
  741. y3,
  742. z3,
  743. msh
  744. })
  745. end
  746. };
  747.  
  748. Blast = {
  749. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  750. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  751. prt.Anchored = true
  752. prt.CFrame = cframe
  753. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  754. game:GetService("Debris"):AddItem(prt, 10)
  755. table.insert(Effects, {
  756. prt,
  757. "Block4",
  758. delay,
  759. x3,
  760. y3,
  761. z3,
  762. msh,
  763. Part
  764. })
  765. end
  766. };
  767.  
  768. Ring = {
  769. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  770. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  771. prt.Anchored = true
  772. prt.CFrame = cframe
  773. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  774. game:GetService("Debris"):AddItem(prt, 10)
  775. table.insert(Effects, {
  776. prt,
  777. "Cylinder",
  778. delay,
  779. x3,
  780. y3,
  781. z3,
  782. msh
  783. })
  784. end
  785. };
  786.  
  787. Cylinder = {
  788. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  789. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  790. prt.Anchored = true
  791. prt.CFrame = cframe
  792. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  793. game:GetService("Debris"):AddItem(prt, 10)
  794. table.insert(Effects, {
  795. prt,
  796. "Cylinder",
  797. delay,
  798. x3,
  799. y3,
  800. z3,
  801. msh
  802. })
  803. end
  804. };
  805.  
  806. Head = {
  807. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  808. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  809. prt.Anchored = true
  810. prt.CFrame = cframe
  811. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  812. game:GetService("Debris"):AddItem(prt, 10)
  813. table.insert(Effects, {
  814. prt,
  815. "Cylinder",
  816. delay,
  817. x3,
  818. y3,
  819. z3,
  820. msh
  821. })
  822. end
  823. };
  824.  
  825. Wave = {
  826. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  827. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  828. prt.Anchored = true
  829. prt.CFrame = cframe
  830. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  831. game:GetService("Debris"):AddItem(prt, 10)
  832. table.insert(Effects, {
  833. prt,
  834. "Cylinder",
  835. delay,
  836. x3,
  837. y3,
  838. z3,
  839. msh
  840. })
  841. end
  842. };
  843.  
  844. Break = {
  845. Create = function(brickcolor, cframe, x1, y1, z1)
  846. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  847. prt.Anchored = true
  848. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  849. game:GetService("Debris"):AddItem(prt, 10)
  850. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  851. local num = math.random(10, 50) / 1000
  852. table.insert(Effects, {
  853. prt,
  854. "Shatter",
  855. num,
  856. prt.CFrame,
  857. math.random() - math.random(),
  858. 0,
  859. math.random(50, 100) / 100
  860. })
  861. end
  862. };
  863.  
  864. Elec = {
  865. Create = function(brickcolor, cff, x, y, z)
  866. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  867. prt.Anchored = true
  868. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  869. prt.CFrame = CFrame.new(prt.Position)
  870. game:GetService("Debris"):AddItem(prt, 10)
  871. xval = math.random() / 9
  872. yval = math.random() / 9
  873. zval = math.random() / 9
  874. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  875. eul1 = math.random(-50, 50)
  876. eul2 = math.random(-50, 50)
  877. eul3 = math.random(-50, 50)
  878. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  879. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  880. table.insert(Effects, {
  881. prt,
  882. "Elec",
  883. .05,
  884. x,
  885. y,
  886. z,
  887. xval,
  888. yval,
  889. zval,
  890. msh,
  891. euld,
  892. euld2
  893. })
  894. end
  895. };
  896.  
  897. Elec2 = {
  898. Create = function(brickcolor, cff, x, y, z)
  899. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  900. prt.Anchored = true
  901. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  902. prt.CFrame = CFrame.new(prt.Position)
  903. game:GetService("Debris"):AddItem(prt, 10)
  904. xval = math.random() / 7
  905. yval = math.random() / 7
  906. zval = math.random() / 7
  907. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  908. eul1 = math.random(-50, 50)
  909. eul2 = math.random(-50, 50)
  910. eul3 = math.random(-50, 50)
  911. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  912. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  913. table.insert(Effects, {
  914. prt,
  915. "Elec",
  916. .1,
  917. x,
  918. y,
  919. z,
  920. xval,
  921. yval,
  922. zval,
  923. msh,
  924. euld,
  925. euld2
  926. })
  927. end
  928. };
  929.  
  930. Clone = {
  931. Create = function()
  932. for _, v in pairs(Torso.Parent:children()) do
  933. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  934. local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  935. c.Anchored = true
  936. c.CFrame = v.CFrame
  937. game:GetService("Debris"):AddItem(c, 5)
  938. local cmsh = nil
  939. if v.Name == "Head" then
  940. cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  941. else
  942. cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  943. end
  944. table.insert(Effects, {
  945. c,
  946. "Cylinder",
  947. 0.05,
  948. 0.1,
  949. 0.1,
  950. 0.1,
  951. cmsh
  952. })
  953. end
  954. end
  955. end
  956. };
  957.  
  958. EffectTemplate = {
  959.  
  960. };
  961. }
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969. Mouse.Button1Down:connect(function()
  970. if Mouse ~= nil then
  971. if Mouse.Target ~= nil then
  972. part = Mouse.Target
  973. bp = Instance.new("BodyPosition",part)
  974. bp.MaxForce = Vector3.new(5000,5000,5000)
  975. bp.Position = part.Position
  976. dwn = true
  977. end
  978. while dwn == true do
  979. wait()
  980. bp.Position = Mouse.hit.p
  981. if part then
  982. if part.Parent:FindFirstChildOfClass("Humanoid") then
  983. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  984. end
  985. end
  986. end
  987. end
  988. end)
  989. Mouse.Button1Up:connect(function()
  990. dwn = false
  991. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  992. if bp then bp:Destroy() end
  993. end)
  994.  
  995.  
  996. Mouse.KeyDown:connect(function(k)
  997. k = k:lower()
  998. if k == 'm' then
  999. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color)
  1000. playlist:Destroy()
  1001. playlist=Instance.new("Sound", Torso)
  1002. playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
  1003. playlist.Volume = 5
  1004. playlist.Looped = false
  1005. playlist.Name = "playlist"
  1006. playlist:Play()
  1007. elseif k == 'n' and circleinthesky == false then
  1008. circleinthesky = true
  1009. elseif k == 'n' and circleinthesky == true then
  1010. circleinthesky = false
  1011. end
  1012. end)
  1013.  
  1014.  
  1015.  
  1016. while true do
  1017. swait()
  1018. for i, v in pairs(Character:GetChildren()) do
  1019. if v:IsA("Part") then
  1020. v.Material = "SmoothPlastic"
  1021. elseif v:IsA("Accessory") then
  1022. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1023. end
  1024. end
  1025. for i, v in pairs(Character:GetChildren()) do
  1026. if v:IsA'Model' then
  1027. for _, c in pairs(v:GetChildren()) do
  1028. if c:IsA'Part' then
  1029. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1030. end
  1031. end
  1032. end
  1033. end
  1034. if playlist.IsPlaying == false then
  1035. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color)
  1036. playlist:Destroy()
  1037. playlist=Instance.new("Sound", Torso)
  1038. playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
  1039. playlist.Volume = 5
  1040. playlist.Looped = false
  1041. playlist.Name = "playlist"
  1042. playlist:Play()
  1043. end
  1044. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1045. Velocity = RootPart.Velocity.y
  1046. Sine = Sine + Change
  1047. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1048. if RootPart.Velocity.y > 1 and hit == nil then
  1049. Anim = "Jump"
  1050. if Attack == false then
  1051. Change = 1
  1052. PlayAnimationFromTable({
  1053. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1054. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
  1055. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1056. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1057. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1058. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1059. }, .3, false)
  1060. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1061. end
  1062. elseif RootPart.Velocity.y < -1 and hit == nil then
  1063. Anim = "Fall"
  1064. if Attack == false then
  1065. Change = 1
  1066. PlayAnimationFromTable({
  1067. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1068. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
  1069. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1070. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1071. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1072. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1073. }, .3, false)
  1074. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1075. end
  1076. elseif TorsoVelocity < 1 and hit ~= nil then
  1077. Anim = "Idle"
  1078. if Attack == false then
  1079. Change = 1
  1080. PlayAnimationFromTable({
  1081. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1082. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .1 * math.cos(Sine/35), 0, 0),
  1083. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1084. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1085. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1086. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1087. }, .3, false)
  1088. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1089. end
  1090. elseif TorsoVelocity > 2 and hit ~= nil then
  1091. Anim = "Walk"
  1092. if Attack == false then
  1093. PlayAnimationFromTable({
  1094. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1095. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
  1096. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1097. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1098. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1099. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1100. }, .3, false)
  1101. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1102. end
  1103. end
  1104. if #Effects > 0 then
  1105. for e = 1, #Effects do
  1106. if Effects[e] ~= nil then
  1107. local Thing = Effects[e]
  1108. if Thing ~= nil then
  1109. local Part = Thing[1]
  1110. local Mode = Thing[2]
  1111. local Delay = Thing[3]
  1112. local IncX = Thing[4]
  1113. local IncY = Thing[5]
  1114. if Thing[1].Transparency <= 1 then
  1115. if Thing[2] == "Block1" then
  1116. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1117. Mesh = Thing[7]
  1118. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1119. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1120. elseif Thing[2] == "Ice" then
  1121. if Thing[6] <= Thing[5] then
  1122. Thing[6] = Thing[6] + .05
  1123. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  1124. else
  1125. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1126. end
  1127. elseif Thing[2] == "Shatter" then
  1128. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1129. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1130. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1131. Thing[6] = Thing[6] + Thing[5]
  1132. elseif Thing[2] == "Block2" then
  1133. Thing[1].CFrame = Thing[1].CFrame
  1134. Mesh = Thing[7]
  1135. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1136. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1137. elseif Thing[2] == "Block3" then
  1138. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1139. Mesh = Thing[7]
  1140. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1141. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1142. elseif Thing[2] == "Block4" then
  1143. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1144. Mesh = Thing[7]
  1145. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1146. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1147. elseif Thing[2] == "Block2Fire" then
  1148. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1149. Mesh = Thing[7]
  1150. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1151. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1152. if Thing[1].Transparency >= .3 then
  1153. Thing[1].BrickColor = BrickColor.new("Bright red")
  1154. else
  1155. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  1156. end
  1157. elseif Thing[2] == "Cylinder" then
  1158. Mesh = Thing[7]
  1159. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1160. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1161. elseif Thing[2] == "Blood" then
  1162. Mesh = Thing[7]
  1163. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  1164. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1165. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1166. elseif Thing[2] == "Elec" then
  1167. Mesh = Thing[10]
  1168. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1169. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1170. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  1171. Thing[1].Rotation = Vector3.new(0, 0, 0)
  1172. elseif Thing[2] == "Disappear" then
  1173. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1174. end
  1175. else
  1176. Part.Parent = nil
  1177. table.remove(Effects, e)
  1178. end
  1179. end
  1180. end
  1181. end
  1182. end
  1183. local alg = math.floor(playlist.PlaybackLoudness)/500
  1184. local alg2 = math.floor(playlist.PlaybackLoudness)/80
  1185.  
  1186. if circleinthesky == false then
  1187. FloatField2.BrickColor = BrickColor.new(maincol2)
  1188. spinny.Position = Torso.Position
  1189. spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  1190. efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))
  1191. efekt.Anchored=true
  1192. efekt.CanCollide=false
  1193. game:GetService("Debris"):AddItem(efekt, .5)
  1194. --ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
  1195. efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,0,0)
  1196.  
  1197. elseif circleinthesky == true then
  1198.  
  1199. FloatField2.BrickColor = BrickColor.new(maincol2)
  1200. spinny.Position = Torso.Position
  1201. spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  1202. efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(1+alg2,.05,.3))
  1203. efekt.Anchored=true
  1204. efekt.CanCollide=false
  1205. efekt2=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(alg2,.05,.3))
  1206. efekt2.Anchored=true
  1207. efekt2.CanCollide=false
  1208. game:GetService("Debris"):AddItem(efekt, 2)
  1209. game:GetService("Debris"):AddItem(efekt2, 2)
  1210. --ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
  1211. efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,20,0)
  1212. efekt2.CFrame=spinny.CFrame*CFrame.new(aoeconstant-4,10,0)
  1213. end
  1214. humanoid.Health = math.huge
  1215. soundbork(workspace)
  1216. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement