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

Teleport between places | Documentation - Roblox Creator Hub
Spawn With Connections | Documentation - Roblox Creator Hub

1 Like