Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
7777ert 49
3 years ago

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

Log in to vote
0
Answered by 3 years ago

When answering, if your answer does not fully solve the question, it should be written as a comment to the question instead of as an answer.

You will have to use Admin for that

0
Great and simple answer lol, but it isn't automated so it won't work when the server have no admin Xapelize 2658 — 3y
0
you will have to somehow get the teleport command from the admin and somehow script it do to that AIRBORNENicuYT 20 — 3y
Ad
Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago

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
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 7777ert 49 — 3y
Log in to vote
0
Answered by 3 years ago

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

Answer this question