MV Store an actor's TP in a variable?

I don't think you can do that the usual way on RMMV.
Any idea using a script line?
Which actor you wanna store? There is a script call for that.
Code:
$gameVariables.setValue(x, $gameActors.actor(y).tp);
With x and y is the variable ID and actor ID respectively.
It worked, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/store-an-actors-tp-in-a-variable.141156/