LynXS_

Untitled

May 28th, 2024
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.68 KB | None | 0 0
  1. local Name = "others"
  2. local Targets = {
  3.         "All"
  4.     } -- "All", "Target Name", "arian_was_here"
  5.     local Players = game:GetService("Players")
  6.     local Player = Players.LocalPlayer
  7.     local AllBool = false
  8.     local GetPlayer = function(Name)
  9.         Name = Name:lower()
  10.         if Name == "all" or Name == "others" then
  11.             AllBool = true
  12.             return
  13.         elseif Name == "random" then
  14.             local GetPlayers = Players:GetPlayers()
  15.             if table.find(GetPlayers, Player) then
  16.                 table.remove(GetPlayers, table.find(GetPlayers, Player))
  17.             end
  18.             return GetPlayers[math.random(#GetPlayers)]
  19.         elseif Name ~= "random" and Name ~= "all" and Name ~= "others" then
  20.             for _, x in next, Players:GetPlayers() do
  21.                 if x ~= Player then
  22.                     if x.Name:lower():match("^" .. Name) then
  23.                         return x;
  24.                     elseif x.DisplayName:lower():match("^" .. Name) then
  25.                         return x;
  26.                     end
  27.                 end
  28.             end
  29.         else
  30.             return
  31.         end
  32.     end
  33.     local Message = function(_Title, _Text, Time)
  34.         game:GetService("StarterGui"):SetCore("SendNotification", {
  35.             Title = _Title,
  36.             Text = _Text,
  37.             Duration = Time
  38.         })
  39.     end
  40.     local SkidFling = function(TargetPlayer)
  41.         local Character = Player.Character
  42.         local Humanoid = Character and Character:FindFirstChildOfClass("Humanoid")
  43.         local RootPart = Humanoid and Humanoid.RootPart
  44.         local TCharacter = TargetPlayer.Character
  45.         local THumanoid
  46.         local TRootPart
  47.         local THead
  48.         local Accessory
  49.         local Handle
  50.         if TCharacter:FindFirstChildOfClass("Humanoid") then
  51.             THumanoid = TCharacter:FindFirstChildOfClass("Humanoid")
  52.         end
  53.         if THumanoid and THumanoid.RootPart then
  54.             TRootPart = THumanoid.RootPart
  55.         end
  56.         if TCharacter:FindFirstChild("Head") then
  57.             THead = TCharacter.Head
  58.         end
  59.         if TCharacter:FindFirstChildOfClass("Accessory") then
  60.             Accessory = TCharacter:FindFirstChildOfClass("Accessory")
  61.         end
  62.         if Accessoy and Accessory:FindFirstChild("Handle") then
  63.             Handle = Accessory.Handle
  64.         end
  65.         if Character and Humanoid and RootPart then
  66.             if RootPart.Velocity.Magnitude < 50 then
  67.                 getgenv().OldPos = RootPart.CFrame
  68.             end
  69.             if THumanoid and THumanoid.Sit and not AllBool then
  70.                 return Message("Error Occurred", "Targeting is sitting", 5) -- u can remove dis part if u want lol
  71.             end
  72.             if THead then
  73.                 game:GetService("Workspace").CurrentCamera.CameraSubject = THead
  74.             elseif not THead and Handle then
  75.                 game:GetService("Workspace").CurrentCamera.CameraSubject = Handle
  76.             elseif THumanoid and TRootPart then
  77.                 game:GetService("Workspace").CurrentCamera.CameraSubject = THumanoid
  78.             end
  79.             if not TCharacter:FindFirstChildWhichIsA("BasePart") then
  80.                 return
  81.             end
  82.             local FPos = function(BasePart, Pos, Ang)
  83.                 RootPart.CFrame = CFrame.new(BasePart.Position) * Pos * Ang
  84.                 Character:SetPrimaryPartCFrame(CFrame.new(BasePart.Position) * Pos * Ang)
  85.                 RootPart.Velocity = Vector3.new(9e7, 9e7 * 10, 9e7)
  86.                 RootPart.RotVelocity = Vector3.new(9e8, 9e8, 9e8)
  87.             end
  88.             local SFBasePart = function(BasePart)
  89.                 local TimeToWait = 2
  90.                 local Time = tick()
  91.                 local Angle = 0
  92.                 repeat
  93.                     if RootPart and THumanoid then
  94.                         if BasePart.Velocity.Magnitude < 50 then
  95.                             Angle = Angle + 100
  96.                             FPos(BasePart, CFrame.new(0, 1.5, 0) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle), 0 , 0))
  97.                             task.wait()
  98.                             FPos(BasePart, CFrame.new(0, -1.5, 0) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle), 0, 0))
  99.                             task.wait()
  100.                             FPos(BasePart, CFrame.new(2.25, 1.5, -2.25) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle), 0, 0))
  101.                             task.wait()
  102.                             FPos(BasePart, CFrame.new(-2.25, -1.5, 2.25) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle), 0, 0))
  103.                             task.wait()
  104.                             FPos(BasePart, CFrame.new(0, 1.5, 0) + THumanoid.MoveDirection, CFrame.Angles(math.rad(Angle), 0, 0))
  105.                             task.wait()
  106.                             FPos(BasePart, CFrame.new(0, -1.5, 0) + THumanoid.MoveDirection, CFrame.Angles(math.rad(Angle), 0, 0))
  107.                             task.wait()
  108.                         else
  109.                             FPos(BasePart, CFrame.new(0, 1.5, THumanoid.WalkSpeed), CFrame.Angles(math.rad(90), 0, 0))
  110.                             task.wait()
  111.                             FPos(BasePart, CFrame.new(0, -1.5, -THumanoid.WalkSpeed), CFrame.Angles(0, 0, 0))
  112.                             task.wait()
  113.                             FPos(BasePart, CFrame.new(0, 1.5, THumanoid.WalkSpeed), CFrame.Angles(math.rad(90), 0, 0))
  114.                             task.wait()
  115.                             FPos(BasePart, CFrame.new(0, 1.5, TRootPart.Velocity.Magnitude / 1.25), CFrame.Angles(math.rad(90), 0, 0))
  116.                             task.wait()
  117.                             FPos(BasePart, CFrame.new(0, -1.5, -TRootPart.Velocity.Magnitude / 1.25), CFrame.Angles(0, 0, 0))
  118.                             task.wait()
  119.                             FPos(BasePart, CFrame.new(0, 1.5, TRootPart.Velocity.Magnitude / 1.25), CFrame.Angles(math.rad(90), 0, 0))
  120.                             task.wait()
  121.                             FPos(BasePart, CFrame.new(0, -1.5, 0), CFrame.Angles(math.rad(90), 0, 0))
  122.                             task.wait()
  123.                             FPos(BasePart, CFrame.new(0, -1.5, 0), CFrame.Angles(0, 0, 0))
  124.                             task.wait()
  125.                             FPos(BasePart, CFrame.new(0, -1.5 , 0), CFrame.Angles(math.rad(-90), 0, 0))
  126.                             task.wait()
  127.                             FPos(BasePart, CFrame.new(0, -1.5, 0), CFrame.Angles(0, 0, 0))
  128.                             task.wait()
  129.                         end
  130.                     else
  131.                         break
  132.                     end
  133.                 until BasePart.Velocity.Magnitude > 500 or BasePart.Parent ~= TargetPlayer.Character or TargetPlayer.Parent ~= Players or not TargetPlayer.Character == TCharacter or THumanoid.Sit or Humanoid.Health <= 0 or tick() > Time + TimeToWait
  134.             end
  135.             game:GetService("Workspace").FallenPartsDestroyHeight = 0 / 0
  136.             local BV = Instance.new("BodyVelocity")
  137.             BV.Name = "EpixVel"
  138.             BV.Parent = RootPart
  139.             BV.Velocity = Vector3.new(9e8, 9e8, 9e8)
  140.             BV.MaxForce = Vector3.new(1 / 0, 1 / 0, 1 / 0)
  141.             Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  142.             if TRootPart and THead then
  143.                 if (TRootPart.CFrame.p - THead.CFrame.p).Magnitude > 5 then
  144.                     SFBasePart(THead)
  145.                 else
  146.                     SFBasePart(TRootPart)
  147.                 end
  148.             elseif TRootPart and not THead then
  149.                 SFBasePart(TRootPart)
  150.             elseif not TRootPart and THead then
  151.                 SFBasePart(THead)
  152.             elseif not TRootPart and not THead and Accessory and Handle then
  153.                 SFBasePart(Handle)
  154.             else
  155.                 return Message("Error Occurred", "Target is missing everything", 5)
  156.             end
  157.             BV:Destroy()
  158.             Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true)
  159.             game:GetService("Workspace").CurrentCamera.CameraSubject = Humanoid
  160.             repeat
  161.                 RootPart.CFrame = getgenv().OldPos * CFrame.new(0, .5, 0)
  162.                 Character:SetPrimaryPartCFrame(getgenv().OldPos * CFrame.new(0, .5, 0))
  163.                 Humanoid:ChangeState("GettingUp")
  164.                 table.foreach(Character:GetChildren(), function(_, x)
  165.                     if x:IsA("BasePart") then
  166.                         x.Velocity, x.RotVelocity = Vector3.new(), Vector3.new()
  167.                     end
  168.                 end)
  169.                 task.wait()
  170.             until (RootPart.Position - getgenv().OldPos.p).Magnitude < 25
  171.             game:GetService("Workspace").FallenPartsDestroyHeight = getgenv().FPDH
  172.         else
  173.             return Message("Error Occurred", "Random error", 5)
  174.         end
  175.     end
  176.     if not Welcome then
  177.         Message("甩飞已开启成功", "猫脚本", 5)
  178.     end
  179.     getgenv().Welcome = true
  180.     if Targets[1] then
  181.         for _, x in next, Targets do
  182.             GetPlayer(x)
  183.         end
  184.     else
  185.         return
  186.     end
  187.     if AllBool then
  188.         for _, x in next, Players:GetPlayers() do
  189.             SkidFling(x)
  190.         end
  191.     end
  192.     for _, x in next, Targets do
  193.         if GetPlayer(x) and GetPlayer(x) ~= Player then
  194.             if GetPlayer(x).UserId ~= 1414978355 then
  195.                 local TPlayer = GetPlayer(x)
  196.                 if TPlayer then
  197.                     SkidFling(TPlayer)
  198.                 end
  199.             else
  200.                 Message("Error Occurred", "This user is whitelisted! (Owner)", 5)
  201.             end
  202.         elseif not GetPlayer(x) and not AllBool then
  203.             Message("Error Occurred", "Username Invalid", 5)
  204.         end
  205.     end
Advertisement
Add Comment
Please, Sign In to add comment