How would I change the gravity for a single or group of NPCs?

Similar to how you can change the gravity of a player locally I want to change the gravity for a single or group of NPCs

Try using BodyVelocity, Force or Position?

Is there no other way to change how fast they fall?

As @RVCDev has stated, using a body force would suffice, (although I haven’t use this for a npc before).

First, create a new, body force instance.

local bodyForce = npc.PrimaryPart:FindFirstChild("BodyForce") or Instance.new("BodyForce")

bodyForce.Force = Vector3.new(0,0,0)
bodyForce.Parent = npc.PrimaryPart

Second, loop through the base parts of the npc. For each, get the mass and multiply it by any number to then append to the current body force’s force, on the y axis.

for i, part in pairs(npc:GetChildren()) do
	if part:IsA("BasePart") then
		bodyForce.Force = bodyForce.Force + Vector3.new(0, part:GetMass() * 80, 0)
	end
end
1 Like