How to teleport a player to another "place" or world when touched a part

so im new to this place or world stuffs and my question is, how do i teleport a player to another “place” not location in the same place btw, i mean new world something like thatwhen it touched a part?

14 Likes

You can use TeleportService to teleport players to another game. And you can use CFrames to teleport players to a certain part using HumanoidRootPart when a part is touched.

1 Like

You can do this easily using teleportation service, make sure to have it enabled in the game settings though!

local part = script.Parent

part.Touched:Connect(function()
game:GetService('TeleportService'):Teleport(placecode here)
end)
35 Likes

ok thank u so much for the help!!

5 Likes

how do i turn on teleportation service?

2 Likes

You have to go on Game Settings, then on Security and turn on Third Party Teleports, else you will get an error notification from roblox that the teleport failed.

4 Likes

mark it as the solution if it had worked!

3 Likes

Sorry for bumping, but how do I make them teleport to a specific spawn on the new place/game?

5 Likes