you should write some code to move the player with the elevator yourself or make the elevator the parent of the character when it should move with the elevator.
if you told that what you used for the character, it would be easier to answer. character controler? rigidbody?