VectorForces not working on HumanoidRootPart

I’m tryin to lower the player’s gravity through the server, and not all of them, but vectorforces just do not want to work. Here’s what i’m doing

local Antigrav = 5
function GetMasses()
    local total = 0
    for i,v in pairs(Character:GetDescendants()) do
        if v:IsA("BasePart") then
            total = total + v.Mass
        end
    end
    return total
end
VectorForce.Force = Vector3.new(0,GetMasses() * (workspace.Gravity/Antigrav), 0)

The VectorForce is already created, with the attachment set and the RelativeTo set to World.

It just makes no difference, even testing them side by side with my character and with rigs.

1 Like

According to your code, the function GetMasses() return the total mass of the player’s character, which is always greater than 0. The Y-axis of the VectorForce’s force is total mass multiplied by current gravity divided by anti-gravity value, which is always greater than 0, which is the reason why the VectorForce isn’t applying any visible force since the force’s direction is upward.
Anyway, isn’t changing workspace.Gravity on the client-side a faster method? Since it doesn’t replicate to the server and other clients, though objects controlled by the player’s physics might be affected as well.