of     1   

Joe11Joe99
#184104099Sunday, February 21, 2016 10:38 PM GMT

because i keep getting something about needing an array of players when im using game.Players:GetPlayers() and the simple game:GetService("TeleportService"):TeleportToPrivateServer(367439562,code,players) so uh what could i be doing wrong thank you
chimmihc
#184105062Sunday, February 21, 2016 10:53 PM GMT

Post the code and output.
Joe11Joe99
#184106709Sunday, February 21, 2016 11:18 PM GMT

@chimmihc will do
Joe11Joe99
#184106906Sunday, February 21, 2016 11:21 PM GMT

input (in server script): local TS = game:GetService("TeleportService") local Players = game:GetService("Players") local code = TS:ReserveServer(367439562) -- Returns a code --local players = Players:GetChildren() -- Get a list of all players local players = {} for i,v in pairs(game.Players:GetChildren()) do table.insert(players,#players+1,v) end game.Workspace.ServerID.Value=code while true do if game.Workspace.GeorgeArrested.Value==true then --script.Parent.notice.TextButton.Visible=true wait(3) --game:GetService("TeleportService"):TeleportToPlaceInstance(367439562) game:GetService("TeleportService"):TeleportToPrivateServer(367439562,code,players) end wait() end output (in server output): TeleportService :: TeleportToPrivateServer must be passed an array of players
Joe11Joe99
#184107868Sunday, February 21, 2016 11:35 PM GMT

bump
128Gigabytes
#184108175Sunday, February 21, 2016 11:40 PM GMT

local players = {} for i,v in pairs(game.Players:GetChildren()) do table.insert(players,#players+1,v) end Replace this with local players = game.Players:getPlayers()
Joe11Joe99
#184108346Sunday, February 21, 2016 11:42 PM GMT

ok i found the problem the 'array' can only have 1 player in it @128 i already did that
128Gigabytes
#184108420Sunday, February 21, 2016 11:43 PM GMT

Well you only getPlayers() once so it never updates the table if someone joins or leaves.
128Gigabytes
#184108896Sunday, February 21, 2016 11:50 PM GMT

Is this your whole script?

    of     1