How would I make Quickstart work?
Asked by
5 years ago Edited 5 years ago
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).
1 | local TeleportService = game:GetService( "TeleportService" ) |
2 | local Place = 4506512824 |
3 | local RSID = TeleportService:ReserveServer(Place) |
4 | local players = game.Players:GetPlayers() |
5 | local player = players.LocalPlayer |
7 | script.Parent.MouseButton 1 Click:connect( function () |
8 | game:GetService( "TeleportService" ):TeleportToPrivateServer(Place,RSID, { player } ) |
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!