Question on body positions

Hello, if I create a body position, parent it to a npc, and set the body position’s position to a moving player, will I update the body position to follow the player? If not, how do I replicate the effect?

1 Like

this is similar to something ive done recently. May I see the script

1 Like

You should actually use an AlignPosition instead of a BodyPosition as BodyPosition is deprecated, but you probably shouldn’t even be using physics to move NPCs with Humanoids and instead use Pathfinding.

1 Like

I do need to, as I need to implement flying.

What about something like this:

local velocity = Vector3.new(0,1,1.3)
local player = game.Players:WaitForChild('VonickTW')
while wait(0.001) do
	local VectorPos = player.Character.HumanoidRootPart.Position
	VectorPos = VectorPos + (Vector3.new(0,0.2,1) * velocity)
	-- ACCELORATION --
	velocity = velocity * velocity
	print(VectorPos)
end

even though it wont update the player position. Its a good base

1 Like

So… i have to update the position every frame?

you could, unless you want to try tweening the position
As Shown On Here