Advertisement
Guest User

Untitled

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