Advertisement
cat568

Untitled

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