Clxzed
(Clxzed)
March 27, 2024, 5:48pm
#1
Hey Forum, currently I’m working on a queue system and I have everything down except for the teleport.
Here’s an example of what I’m trying to do:
local players = {"Clxzed", "Roblox"}
t_TPService:TeleportToPrivateServer(1, accessCode, PLAYERSGOHERE nil, nil, script.LoadingScreen)
I’ve tried using GetChildren, but it didn’t work, and FindFirstChild doesn’t work for a multiplayer game.
Ready2XD
(Ready)
March 27, 2024, 6:00pm
#2
I’m pretty sure you need a table of the players objects , not strings.
Clxzed
(Clxzed)
March 27, 2024, 6:03pm
#3
Okay, so say I do have a table of Playermodels, how to I teleport them?
EDIT: Fixed my terms
9_1kai
(legion)
March 27, 2024, 6:11pm
#4
you could try using ipairs for that:
local players = {"Clxzed"}
for x, i in ipairs(players) do
t_TPService:TeleportToPrivateServer(1, accessCode, game.Players[i] nil, nil, script.LoadingScreen)
end
maybe this is what you’re looking for?
1 Like
Clxzed
(Clxzed)
March 27, 2024, 6:34pm
#5
It can’t be an Instance, it has to be a string.
9_1kai
(legion)
March 27, 2024, 6:36pm
#6
have you tried to code yet, or you’re assuming?
since the code what i sent basically finds the player’s based on the names given in the table
Clxzed
(Clxzed)
March 27, 2024, 6:37pm
#7
The table gets the player Instance, adjusted to what @Ready2XD said.
9_1kai
(legion)
March 27, 2024, 6:39pm
#8
try finding the players by their names in the models and then try to teleport them by modifying my code maybe?
1 Like
Clxzed
(Clxzed)
April 22, 2024, 7:45pm
#9
SOLUTION: TeleportPartyAsync is a better option, please use TeleportPartyAsync.
TeleportService | Documentation - Roblox Creator Hub
system
(system)
Closed
May 6, 2024, 7:45pm
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.