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
[remoteEvent].OnServerEvent:Connect(function(plr)
for index, player in game:GetService("Players"):GetPlayers() do
-- [do what you want in here]
end
end)