(See the best response by Deathguard.)

Problem description:

can someone make me a sample code
for moving between areas you know like going to and from rooms and stuff
Best response
You'll be wanting to look at the reference to figure this one out; I'd recommend taking a look at locate() and the x, y and z vars of a mob.

You can either have a tile manually set the XYZ of a mob which enters the tile, if you're moving them somewhere static, or use locate() to get the X/Y/Z of a target object and send the "user" there.