Method of Player
player:teleport
Yaw and pitch left out keep the way they face.
player:teleport(pos: Vec3, rotation: BodyRotation?)
Parameters
posVec3rotationBodyRotationUsed in
player:teleport(world.spawn_point)Guide: Your first packnot need to repeat its coordinates in the script. `player:teleport` movesGuide: Your first packplayer:teleport(world.spawn_point)Your first pack`/spawn`, `player:teleport(world.spawn_point)` returns them to the pointYour first packplayer:teleport(pos, { yaw = 0, pitch = 0 }) -- a rotation; an angle left out keeps the way they facePlayerscommands.add("spawn", function(player) player:teleport(SPAWN) end, { aliases = { "hub" } })Commands- `player:push` and a movement effect (`speed`, `jump_boost`, `levitation`, `slow_falling`, `dolphins_grace`) exempt the player while they last. `player:teleport` is always allowed.Room rules