#How do you make it where if the first player that joins the server, it would do something
17 messages · Page 1 of 1 (latest)
On room load
Yeah
Alternatively:
get all players -> list get element (0)
Event receiver (Player Joined)
If local player should run:
If element 0 of the all players list = local player, execute
This would hypothetically execute every time, even when joining an empty (but existing) room
An empty instance is closed
and I said hypothetically
I'm just saying they asked for when a player joins and is the first person in the server, which you can also use the 0 element of an all players list to decide that at any point in time instead of just when the room loads.
Or :
Get all player list get index of if index=0
This will activate locally everytime someone joins though
Simple fix is just use list get count on the all players thing and if it’s less or equal to 1 then they’re the first
Wait what, so you don't need player joined if player is local?
I'm confused...