How can I orient a player relative to a part

THANK YOU, Trying this right now

I forgot to say that this script only changes the Y axis, which means that if, for example, the portal is on the floor, you would need to change the X axis, I think this is solved by making a separate function that does exactly the same thing but with the axis X

I have no clue how I would go about doing this, could you please provide some guidance on how this would work?

also, I have to edit this code, doesn’t a remoteevent not have parameters, only remote functions?

Before trying my scripts on your portals, try them first in 2 simple parts

The only thing you need is the “OrientationRelative” function, this function is responsible for calculating the orientation, everything else that my scripts have is simply so that it will work well by simply touching the portal, but of course, in the function arguments You must pass 2 parts, and a number that is Y axis

I can’t tell you for sure, I only use remote event, I have never worked with remote functions