local TeleportService = game:GetService("TeleportService")
local Place = 4506512824
local RSID = TeleportService:ReserveServer(Place)
local players = game:GetService("Players")
script.Parent.MouseButton1Click:connect(function()
game:GetService("TeleportService"):TeleportToPrivateServer(Place,RSID,{players})
end)
This script would be teleporting players with the click of a button, but there's apparently a problem with something. I went into a live game to test, and in the console it says: "TeleportService::TeleportToPrivateServer must be passed an array of players." I'm not sure what that is, or how I can fix it. This specific script is supposed to teleport just the one who clicked it, but right now it would teleport everyone. Can someone help me with this, or tell me what I'm doing wrong, and how to teleport just the one player? (btw thisis in a script, not a local)

1 comment
I think :TeleportToPrivateServer() is only used in scripts and not localscripts