Advertisement
Guest User

Untitled

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