Advertisement
Guest User

roblox fling v2 script 2024-2025

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