Anchoring a part once it stops moving

hello! i’m trying to achieve a block of code that will anchor a part once it’s completely stopped moving. i have the parts drop from a spawner to the bottom, but once they settle i want it to be anchored. is there a simply way of doing this? i’m very new to scripting but i would assume it has something to do with velocity or a similar property.

Perhaps the simple way to do this would be to observe the part as it drops, estimate how long it takes to settle, then just use a task.wait for the estimated duration before anchoring the part.

Try having a loop for all parts to check their velocity until it settles to 0,0,0.