Currently I am using AlignOrientation and AlignPosition to make a part reach a different position and rotation. My issue is that I was wondering what the best way to check when it is completed. I was thinking maybe checking if the Part’s CFrame matched the Attachment1’s CFrame, but…
It seems that when the alignposition reaches it’s destination, it’s < 0.01 off from what you want
I ended up making a loop and checking when the Part’s position was < 0.01 studs from the goal position. So far this is the only way I figured out to do this.
Confused, a Completed event doesn’t exist under any of these. Are you trying to make one? It’d help to have consistency between your thread’s title and the thread’s content. I almost missed your actual intention while skimming.
In either case, what you’re probably seeking here is a wrapper or custom event. For example, you can create a wrapper class that creates these instances but it also has some functions on the backend to be used. Internally, regardless of your method, you’ll want to have a BindableEvent handy.
Your BindableEvent can serve as the Completed signal. Therefore, you can fire off the event when it reaches a certain goal and all your code has to do is connect a function to the BindableEvent to be ran when its fired. Essentially, the same as what you’re doing right now, but in a more manageable fashion.
tl;dr Look to BindableEvents, they’ll help you with the workflow you’ve resolved to work with.