How do i teleport all players on a remote event

i am a beginner/intermediate scripter, and ive been looking for a tutorial on youtube on how to teleport ALL the players in the server, however i haven’t found anything.

i believe it has something to do with for in pairs loops but i haven’t learned how to script that yet.
thank you for your help!

game:GetService("TeleportService"):TeleportAsync(placeId, game:GetService("Players"):GetPlayers())
You should probably read documentation before making a topic TeleportService | Documentation - Roblox Creator Hub

1 Like

You’re correct!

In a Script:

[remoteEvent].OnServerEvent:Connect(function(plr)
   for index, player in game:GetService("Players"):GetPlayers() do
      -- [do what you want in here]
   end
end)
2 Likes

sorry about that, but thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.