How do i pick a map then teleport to one singular subplace that's using that map or start a server with that

  1. What do you want to achieve?
    I’m making a map selection screen and I want the player to be able to pick a map then teleport to one singular subplace that’s using that map or start a server with that, how would I do that?

  2. What is the issue?
    I don’t know where to start

  3. What solutions have you tried so far?
    the “solutions” i’ve found haven’t made me understand it.

1 Like

if you help me with my code i help you
How can you end a Stepped Function if an if statement returns false? - #3 by SkiuulLPcz

1 Like

Man i don’t know i’m not the best programmer hence why i’m asking for help

1 Like

ok try to use roblox documentation on how to use TeleportService

1 Like

I know how to use teleport service, The problem is I don’t wanna make a subplace for each map, I want it to be one place which just loads the map a player wants to play

1 Like

Put all your maps in subplace’s ServerStorage, in the teleport async pass on the map name, then load the map using the map name you have passed.

1 Like

But how would i make sure that the player gets into a server with their selected map?

1 Like

In the teleport async function, add a parameter called “Map”, the value will be stored as a string as to what the player chose, then in the other server, clone the map with the selected map string and boom!

1 Like

Yea but if you get teleported in to a already running server it wouldn’t work?
I’m sorry i’m very slow.

1 Like

it would work. try it with a test place.

1 Like

How would it work? say you chose “Grass” and then you get teleported into a running server that someone is playing that has the map “Sand” then it wouldn’t work?

1 Like

Yea i tried it and it didn’t work. I need a way for it to only teleport a player to a server that is currently playing that map.