LynXS_

Untitled

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