Player teleport to map?

Hi How can I do that the players teleport to the map ??

1 Like

not tested

local MapLocations = {
	["Spawn"] = Vector3.new(0, 16, 0)
}

local function TeleportCharacter(LocationName, Player)
	Player.Character:PivotTo(CFrame.new() * Vector3.new(MapLocations[LocationName]))
end
1 Like

Teleporting Between Places | Roblox Creator Documentation
Spawn With Friends | Roblox Creator Documentation

1 Like