In the game I am currently working on, you can use a feature known as Quickstart. It lets you pick the dungeon, and difficulty, and when you do that, it teleports you instantly.I'm not sure what the best way to do this is, and I'm starting to just give up at this point. I have a script, but it says something about players needing to be an array of players, no idea what that means. If someone can help, please do. Here's my current script (not a localscript).
local TeleportService = game:GetService("TeleportService")
local Place = 4506512824
local RSID = TeleportService:ReserveServer(Place)
local players = game.Players:GetPlayers()
local player = players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game:GetService("TeleportService"):TeleportToPrivateServer(Place,RSID,{player})
end)
I dont think this is the right way to go with this, if someone could help, I would appreciate it.If its too much to explain in an answer, dm me on discord at aaw#6447. Thanks!

15 comments
I'll edit it if you ask me to.
Yeah, still not sure.
Just not sure how I'd not use LocalPlayer. I'm confused. About the error and the whole serverscript thing.
Updating post.
How does it know which player to tp though?
When you fire a RemoteEvent, the first argument it gives back is always the player that fired it.
Other question, can it store multiple players for multiplayer?
Or would I need a bool inside them then have it go through each one and tp individulally or something?
Or would I need a bool inside them then have it go through each one and tp individulally or something?
And yet again, do I have to use Instance.new?
Not individually. Just group them all into one table and then replace {player} with that table.
And yes, if you wanted to make it easy, you could just make a bool. But there's prob another way to make it much easier.
It worked, but, it reverted theplace to what it used to be
We're creating a new server every time. If you wanted to save the dungeon, you'll need to use DataStore.
Nevermind, I just forgot to publish the dungeon, it's all good!