Skip to content
RoRoScripts
fling people (need rblx ht) preview
Unknown

fling people (need rblx ht)

Script
Views
18K
Likes
1
Dislikes
0
Added
Script
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local whiteCube = nil

local function createWhiteCube()
    whiteCube = Instance.new("Part")
    whiteCube.Size = Vector3.new(2, 2, 2)
    whiteCube.Color = Color3.fromRGB(255, 255, 255)
    whiteCube.Position = player.Character.Torso.Position + Vector3.new(0, 3, 0)
    whiteCube.CanCollide = true
    whiteCube.Anchored = false
    whiteCube.Parent = game.Workspace

    local bodyVelocity = Instance.new("BodyVelocity")
    bodyVelocity.MaxForce = Vector3.new(10000, 10000, 10000)
    bodyVelocity.Velocity = Vector3.new(0, 50, 0)
    bodyVelocity.Parent = whiteCube
end

local function flingPlayer(targetPlayer)
    if targetPlayer.Character then
        local targetTorso = targetPlayer.Character:FindFirstChild("Torso")
        if targetTorso then
            local bodyVelocity = Instance.new("BodyVelocity")
            bodyVelocity.MaxForce = Vector3.new(10000, 10000, 10000)
            bodyVelocity.Velocity = (targetTorso.Position - whiteCube.Position).unit * 100
            bodyVelocity.Parent = targetTorso
        end
    end
end

createWhiteCube()

mouse.Button1Down:Connect(function()
    local target = mouse.Target
    if target and target.Parent then
        local character = target.Parent
        local targetPlayer = game.Players:GetPlayerFromCharacter(character)
        if targetPlayer and targetPlayer ~= player then
            flingPlayer(targetPlayer)
        end
    end
end)

Features

  • idk