Is there a way to ''force'' players to sit in different seats?

Hi there. I am currently making a ride (theme park attraction) and am curious if there is a way to force multiple players to sit in different seats, almost like teleporting them to a seat instantly. The seats are right next to each other, and there is a considerable amount of them. What would be the best way to do this without sending all of the players to the same seat? Thank you very much, and be safe.


(The ride seats!)

2 Likes

I would probably put all of the seats in a table, and loop through each of them, assigning a different player from a table of unseated players to each one, removing each player from the unseated table as you go.

Here is also the function that can be used for force sitting:

3 Likes

I can think of two ways

First is like what @ExcessEnergy mentioned, and second, you can create a BoolValue inside each seat to indicate whether players are sitting on it

Thank you for the reponse! I appreciate it.

I’ll give this a shot - thank you, and be safe.

There really isn’t a reason for a BoolValue when Seats have their own built in property .Occupant, which will be nil if the seat isn’t taken, but this concept could definitely help in making the script.

Oh yea I forgot about Seat.Occupant. So basically loop check (i say with repeat) the seats until you find one that does not have an occupant, and force them to sit.

2 Likes