I just want to know how i can teleport all players in the game to a position, i know the way to do it is with a for loop, but how exactly do i do it?
I’m a bit new to using the for loop
I just want to know how i can teleport all players in the game to a position, i know the way to do it is with a for loop, but how exactly do i do it?
I’m a bit new to using the for loop
this is how you loop thro the players
local plrs = game.Players:GetChildren()
for i = 1,#plrs do
--use plrs[i] to get the current player
end
or you could just do
for k, v in pairs(game.Players:GetPlayers()) do
--"v" is the player
end