How do I make people go to certain places based on the order they join
COMMUNITY QUESTION
How do I make people go to certain places based on the order they join?
1 answer
local PlrsInOrder = {} -- empty table for now
game.Players.PlayerAdded:Connect(function(Player)
table.insert(PlrsInOrder, Player) -- adds player to table
Player.CharacterAdded:Connect(function(Character)
local SpawnPositions = {(0,0,0), (1,1,1), (2,2,2)} -- insert spawn positions
for i, v in ipairs(PlrsInOrder) do
v[i]:MoveTo(SpawnPositions[i]) -- moves characters to coresponding value
end
end)
end)
hopefully this should work, edit events as you please
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
without spawn plates