Advertisement
MaxproGlitcher

Script Fling By Max

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