Page 1 of 1

how to teleport from one layer to another?

Posted: Sat Aug 17, 2019 2:53 pm
by llVIU
Hello, in map editor you have multiple layers, nauvis is the normal layer. Some scenarios have other layers, used as undergorund. I got a map where you spawn normally on the custom layer, I made a multiplayer game and my friends are stuck on the nauvis layer. I know the command /c game.player.teleport({X, Y}) but I don't know how to move someone to my layer... anyone knows?

I also don't understand why placing the player spawn object doesn't do anything. I try to set it, but it does nothing, the player always spawns in the same exact layer and location.

Re: how to teleport from one layer to another?

Posted: Sat Aug 17, 2019 3:33 pm
by eradicator

Code: Select all

/c
local p = game.player
game.players['yourfriendsname].teleport({p.position.x+2,p.position.y},p.surface)
If you spawned the player port in the map editor maybe it has the wrong force ("team")?