Advertisement
JasonLion

Some visualer

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