Part that makes you levitate

I want to make a ufo that sucks you in but if you exit the beam it will stop and you would have to move to avoid getting exited

(basically, you enter beam, it levitates you, you exit, it no levitate you)

IM NOT ASKING FOR A SCRIPT, IM JUST ASKING FOR HOW I COULD CODE IT

professionally drawn example:

image

you can use bodypositions (deprecated) or the new alignpositions

I’ll give it a try tomorrow, thanks