Advertisement
ProScripter29

OP Fling Tool

Dec 12th, 2022 (edited)
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.55 KB | Gaming | 0 0
  1. -- Created by HappyH0lidays2021
  2.  
  3. -- Very Cool Fling Script :D
  4.  
  5. local Player = game.Players.LocalPlayer
  6.  
  7. local Tool
  8.  
  9. local function CreateTool()
  10.     Tool = Instance.new("Tool", Player.Backpack)
  11.     Tool.Name = "Flinger"
  12.     Tool.RequiresHandle = false
  13.     Tool.Equipped:Connect(function(Mouse)
  14.         Tool.Activated:Connect(function()
  15.             if Player.Character:FindFirstChild("HumanoidRootPart") then -- Check if player is alive
  16.                 local Target = Mouse.Target
  17.                 if (Target ~= nil) then
  18.                     if (Target.Parent:FindFirstChild("HumanoidRootPart")) then
  19.                         -- Create the BodyThrust
  20.                         local Thrust = Instance.new("BodyThrust", Player.Character:FindFirstChild("HumanoidRootPart"))
  21.                         Thrust.Name = "spinnything"
  22.                         Thrust.Force = Vector3.new(3000,0,0)
  23.                         Thrust.Location = Vector3.new(0,0,3000)
  24.                         -- Remove the Tool
  25.                         Tool:Destroy()
  26.                         Tool = nil
  27.                         -- Attach to the victim
  28.                         task.spawn(function()
  29.                             while (Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil) and (Player.Character.Humanoid.Health > 0) do
  30.                                 Player.Character:FindFirstChild("HumanoidRootPart").CFrame = Target.Parent:FindFirstChild("HumanoidRootPart").CFrame
  31.                                 task.wait()
  32.                             end
  33.                         end)
  34.                         task.spawn(function()
  35.                             while task.wait() do
  36.                                 if Target.Parent:FindFirstChild("Humanoid").Health < 1 then
  37.                                     Player.Character.Humanoid.Health = 0
  38.                                 end
  39.                             end
  40.                         end)
  41.                     end
  42.                 end
  43.             end
  44.         end)
  45.     end)
  46. end
  47.  
  48. local function Main()
  49.     CreateTool()
  50.     Player.CharacterAdded:Connect(CreateTool)
  51. end
  52.  
  53. task.spawn(Main)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement