How to make a remotely controlled account?

So there used to be a Roblox game, where players could remotely control an account, like making it join games, and interacting with those games. I was wondering, how do I make the same thing?
I think it’s a really interesting concept, and could teach me a lot about programming OUTSIDE of roblox.

If someone knows a post related to this, or has a solution, please reply!

Roblox doesn’t officially support remotely controlling accounts… doing so may violate their Terms of Service. For learning, simulate control using bots via external scripting but never use real accounts or credentials

I mean for your account sure. But as for as i now Python would be for friend as its easy and you can do remote and controls from there through a data set of Inputs. (W,A,S,D,SPACE)