The code I have is supposed to teleport every single player to one location. No matter what I do, it only picks up the first player that joined the game. I've been at this for hours, looked at several youtube tutorials as well.
This is a snippet of the code:
for _, plr in pairs(game.Players:GetChildren()) do
local char = plr.Character
local xOffset = math.random(-10,10)
local zOffset = math.random(-10, 10)
plr.Team = game.Teams.Playing
char.HumanoidRootPart.CFrame = Base.CFrame
wait()
beginningEvents()
end
If you might know what the problem is, I would appreciate any help.
