Is there a fix for BodyPosition's ReachedTarget event?

The ReachedTarget event is extremely faulty because of the < .1distance needed to trigger it. My part went to this position image and this is the BodyPosition.Position value image
You can see that all of the axis values have a difference of > .1 and the event wont fire. This happens every time, please help

1 Like

You can implement your own ReachedTarget event and change the threshold. Just create a loop and check the distance beteween the target and the object, then if it is within a larger threshold, you call a function.

local function ReachedTarget(pos1, pos2)
    return (pos1 - pos2).Magnitude <= .35
end

...

repeat wait() until ReachedTarget(crescent.Position, pos)

Is this a way I could do that? I feel like this is inefficient but idk how else to do it

1 Like

Yes, that will work fine. Just inline the function contents you created into a loop and then create a OnReached function. Call that after your distance function returns true then break the loop.