Teleportation Service: Can I Teleport to a Secondary Place?

Hello Developers!

I am in a tight predicument. I hope you can help me!

                        What I am Trying to Achieve

I am trying to make a teleportation System that when you step on a part you travel to another Place inside of the game.

                          How I have tried to solve my issue

I have looked all through the developer forums and the related topics to mine. I have also looked at things such as Teleport Service and things relating to that. I have also looked on Youtube. However on YouTube when i put in the script it doesn’t work.

                      **Conclusions I Have Thought About**

I have sort of drawn to the conclusion that maybe teleporting to a secondary place is not possible. If so let me know. And if thats the case in your opinion is making numerous games for one game a lot? Thanks

Thank you for everyone who responds to this it means a lot. Thank You.

Have a Blessed Day
@Thenoob2pro_2022

3 Likes

I’m kind of confused with the terminology you’re referring to. By “another place” are you talking about a physical location within a game, or a different game in general?

If you’re trying to teleport a character you would set the characters CFrame (using Character:SetPrimaryPartCFrame) to the desired location. Here’s a link to an in-depth tutorial on the API documentation website.

Otherwise, you would use TeleportService to move players to other games.

2 Likes

I’m trying to make them teleport to a secondary place not the spawn place but another place inside the game. Is that possible

1 Like

Please research before making a topic like this. There are sooooo many topics/tutorials on teleporting. There is even a DevHub articles: Teleporting Between Places

1 Like
local PlaceId = 000000 -- Replace with your PlaceId!
local Part = workspace.Part -- Change to your part location!
local Debounce = false -- Just a debounce!

Part.Touched:Connect(function(Hit)
    if Debounce then return end
    Debounce = true

    local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
    if not Player then return end

    game:GetService("TeleportService"):Teleport(PlaceId, {Player})
end)

This should work! :smile:

See when I try that though it doesn’t work. I don’t know what to do. I don’t know if I’m doing something wrong or not. I’ll try it. Thank you

If you read above you would see Ive stuff and it didn’t work

Did you change the “PlaceId” and “Part” variables to the correct information?

do:


top of ztudio while editting game u want to add othr place to
image
toggle assset ,manager,

go widget then placez
image
image
rightclick anywhere on the widget
click add place
image
right click the new place to edit,

uze @CommanderRanking 'z code and change placeid to
image
watever that getz u (number)

me gave u picture book, underztandnow?

1 Like

Yes Thank You I do that and it doesn’t work maybe it’s a #bug-reports

1 Like

IDK I’ll try thank you so much

1 Like

I did read above, however the solution is almost identical to that of the DevHub article

2 Likes

Thank You see though it hasn’t been working. I’m going to check this out. Thank you. I’m also new. So :grimacing:

1 Like

Also do you suggest putting in an error code or do you think it would work fine