Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by HappyH0lidays2021
- -- Very Cool Fling Script :D
- local Player = game.Players.LocalPlayer
- local Tool
- local function CreateTool()
- Tool = Instance.new("Tool", Player.Backpack)
- Tool.Name = "Flinger"
- Tool.RequiresHandle = false
- Tool.Equipped:Connect(function(Mouse)
- Tool.Activated:Connect(function()
- if Player.Character:FindFirstChild("HumanoidRootPart") then -- Check if player is alive
- local Target = Mouse.Target
- if (Target ~= nil) then
- if (Target.Parent:FindFirstChild("HumanoidRootPart")) then
- -- Create the BodyThrust
- local Thrust = Instance.new("BodyThrust", Player.Character:FindFirstChild("HumanoidRootPart"))
- Thrust.Name = "spinnything"
- Thrust.Force = Vector3.new(3000,0,0)
- Thrust.Location = Vector3.new(0,0,3000)
- -- Remove the Tool
- Tool:Destroy()
- Tool = nil
- -- Attach to the victim
- task.spawn(function()
- while (Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil) and (Player.Character.Humanoid.Health > 0) do
- Player.Character:FindFirstChild("HumanoidRootPart").CFrame = Target.Parent:FindFirstChild("HumanoidRootPart").CFrame
- task.wait()
- end
- end)
- task.spawn(function()
- while task.wait() do
- if Target.Parent:FindFirstChild("Humanoid").Health < 1 then
- Player.Character.Humanoid.Health = 0
- end
- end
- end)
- end
- end
- end
- end)
- end)
- end
- local function Main()
- CreateTool()
- Player.CharacterAdded:Connect(CreateTool)
- end
- task.spawn(Main)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement