Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I add players to a table by getting them to touch a part, and teleport them to reserved game?

I'm trying to teleport players from the lobby to the main game. I don't know how to get them to touch a part and once they touch it adds them to a table. I want there to be 8 players in the table for the teleport to commence.

I have no idea how to approach this can someone help me?

1 answer

Pseudocode

local players = {}

when someone/something touches the part
    check that the touching part belongs to a player character
        if part is from a player character then
           if there's less than 8 elements in the players table
               insert them into the table

Useful links

This discussion is preserved as it was. New answers, comments, and votes are closed.