Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

BodyVelocity failing to make part move?

Asked by 7 years ago

So, I always have this problem with BodyVelocity and I thought this time would be different, but no, it is not. My problem is that BodyVelocity never seems to actually do anything to the brick, can anyone help?

function shootBall(character, spot, net)
    local ball = character["V2"]
    ball.Parent = workspace

    local BV = Instance.new("BodyVelocity", ball)
    BV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
    BV.P = 2000
    BV.Velocity = Vector3.new((spot * 4), ((ball.Handle.Position - net.Middle.Position).magnitude + game.Workspace.Gravity * ball.Handle:GetMass()), 0)

    for i, v in pairs (script.Parent.ImageLabel["Bar Frames"]:GetChildren()) do
        if v.Name == "ShootingFrame" then
            v:Destroy()
        end
    end
end

All the arguments and parameters are met, it just doesn't do anything...

0
Make sure the that the part isn't anchored. Valatos 166 — 7y
0
It isn't xXLegendarySoldierXx 129 — 7y

Answer this question