How do i get a brick to follow me without delaying its movement

Hi all, I have tried using bodypositions to make a brick follow me but it lags behind a bit, I have tried changing some of the values but I couldn’t get it to work out for me as there needs to be some dampening.
I have tried using Constraints but they don’t allow for animations. Does anybody know the best way to keep a brick following me without lagging behind.

One solution would be to use a weld. Note that a weld is not the same as a WeldConstraint, which is what I assumed you tried to use initially. I am not 100% sure that the weld won’t affect your animations, but it’s worth a shot. The following article details how you can implement the weld object in your function. I personally suggest you apply the weld through a script.

If you’re using a Script (server-side) to update the BodyPosition.Position, remember that the server’s idea of the player’s location lags behind the actual location on the user’s client. You should set the network owner of the part to the respective client and make a LocalScript update the BodyPosition.Position.

That would take care of latency. The rest is how frequently the Position property is updated (ideally on on RunService.Stepped), and the dampening of the object (D property).

2 Likes

This is true; however, even with BodyPosition, the part will lag behind due to the nature of how BodyPosition functions.

I will give welds a go and see if they work with animations

The only problem with welds is I want the orientation of the part to be independent of the character.

i’ll just use bodyposition with network set as player works fine.

1 Like

It sounds like an AlignPosition might serve your use case better than a BodyPosition. Unlike a weld, it won’t apply forces to the position it’s trying to align to, plus it works in a similar way.

Thats what I tried initially but I didnt like the way it worked.