Advertisement
Guest User

Untitled

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