Advertisement
Guest User

Untitled

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