Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I teleport all players in the server to another place?

I am trying to make a game which players in the lobby can click a 'start' button to teleport to 'queue'. If there are more then 60 players in queue then all players in queue will be teleported to 'gameplay'. The first part is easy for me but the problem is the second part. How should i teleport a group of players and players from other queues won't join the same 'gameplay' server?

3 answers

You will have to use Admin for that

2 comments

0

Great and simple answer lol, but it isn't automated so it won't work when the server have no admin

0

you will have to somehow get the teleport command from the admin and somehow script it do to that

You should use ipairs, an advanced loop, which checks through all the players and send them to a place.

for i, v in ipairs(queueplayers) do
	v.HumanoidRootPart.Position.CFrame = Vector3.new(0,0,0).CFrame
end

1 comment

0

Sorry I should have make myself clear. The ‘lobby’, ‘queue’ and ‘gameplay’ are places which you can teleport through them using TeleportService. But I have no idea how I should teleport all players to a server using teleport service

if u want to change that peoples go to an another game / place then try this

`` local teleport = game:GetService("TeleportService") local placeid = 1234566789 local player = game.Players.LocalPlayer

teleport:Teleport(placeid,player)

``

im not sure in wich script u have to use it

set by placeid the placeid of the game

set third party teleports on dont know how to do? follow me

go to : game setting > security > allow thirs party sales > set it on

i hope it work

This discussion is preserved as it was. New answers, comments, and votes are closed.