local prismaticCon = pusher.PrismaticConstraint
prismaticCon.ServoMaxForce = (pusher:GetMass() + coinPushHandler.Inside:GetMass()) * 10
prismaticCon.TargetPosition = 50
task.wait(prismaticCon.TargetPosition/prismaticCon.Speed)
print("Finished")
I’m currently trying to make a pusher that pushes parts forward similar to a piston by using prismaticConstraints. I’m trying to get calculate the time of arrival of the pusher by dividing the PrismaticConstraint’s TargetPosition by the PrismaticConstraint Speed however it prints Finished a second or two before the object reaches the TargetPosition. What can I do to get the exact time of arrival?
On an unrelated note, is there a better way to make a piston altogether? I previously used TweenService and that allowed me to determine when the object has reached the goal CFrame and then tween back, however, tweening doesn’t account for physics and the objects being pushed would clip into the pusher. Any help is appreciated!
