Advertisement
Guest User

Untitled

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