Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by HappyH0lidays2021
- -- Works best with R6 games
- local Player = game.Players.LocalPlayer
- local Gui = game:GetService("StarterGui")
- local Tool
- local function Load()
- task.spawn(function()
- Tool = Instance.new("Tool", Player.Backpack)
- Tool.Name = "Fling"
- Tool.RequiresHandle = false -- No handle
- Tool.ToolTip = "very funny fling tool (click/tap on a victim to fling em)"
- Tool.Equipped:Connect(function(Mouse)
- Tool.Activated:Connect(function()
- if Mouse.Target ~= nil then -- Mouse is not clicking on the sky
- if Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") then -- Must be an NPC or Player
- local LastPos = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart").CFrame
- local BodyThrust = Instance.new("BodyThrust", Player.Character.UpperTorso) -- Funny flinger
- BodyThrust.Force = Vector3.new(20000, 0, 0)
- BodyThrust.Location = Vector3.new(0,0, 20000)
- local Root = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart")
- task.spawn(function()
- task.wait(0.3)
- Player.Character.Humanoid.Health = 0 -- Kill the Player
- game.Players.RespawnTime = 0
- end)
- while Root do
- Player.Character.HumanoidRootPart.CFrame = Root.CFrame
- task.wait()
- end
- end
- end
- end)
- end)
- end)
- end
- local Main = function()
- while task.wait() do
- if (Tool == nil) and (Player.Character) and Player.Character.Humanoid.Health > 0 then
- Load()
- print("fling tool given to "..Player.Name)
- end
- end
- end
- task.wait() -- Wait until everything loads
- Main() -- Run the script :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement