Advertisement
Tigron1901

fling

Mar 31st, 2024 (edited)
1,102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.55 KB | None | 0 0
  1. coroutine.resume(coroutine.create(function()
  2.    
  3. local lp = game:FindService("Players").LocalPlayer
  4. lp.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  5. _G.Fling = true
  6. local function gplr(String)
  7.     local Found = {}
  8.     local strl = String:lower()
  9.     if strl == "all" then
  10.         for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  11.             table.insert(Found,v)
  12.         end
  13.     elseif strl == "others" then
  14.         for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  15.             if v.Name ~= lp.Name then
  16.                 table.insert(Found,v)
  17.             end
  18.         end
  19.     elseif strl == "me" then
  20.         for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  21.             if v.Name == lp.Name then
  22.                 table.insert(Found,v)
  23.             end
  24.         end
  25.     else
  26.         for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  27.             if v.Name:lower():sub(1, #String) == String:lower() then
  28.                 table.insert(Found,v)
  29.             end
  30.         end
  31.     end
  32.     return Found
  33. end
  34.  
  35. local function notif(str,dur)
  36.     print(str)
  37. end
  38.  
  39.     local Target = gplr(_G.target)
  40.     if Target[1] then
  41.         Target = Target[1]
  42.        
  43.         local Thrust = Instance.new('BodyThrust', lp.Character.HumanoidRootPart)
  44.         Thrust.Force = Vector3.new(9999,9999,9999)
  45.         repeat
  46.             lp.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  47.             Thrust.Location = Target.Character.HumanoidRootPart.Position
  48.             game:FindService("RunService").Heartbeat:wait()
  49.         until _G.Fling == false or not Target.Character:FindFirstChild("Head")
  50.         lp.Character.Humanoid.Health = 0
  51.     else
  52.         notif("Invalid player")
  53.     end
  54.  
  55. --//fsddfsdf
  56.  
  57. end))
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement