#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)

brazen nexus
#

How do you make it where if the first player that joins the server, it would do something

wraith rapids
#

On room load

brazen nexus
#

ohhhh

#

i was thinking that

wraith rapids
#

Yeah

crystal steppe
#

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

brazen nexus
#

hm

#

thanks

wraith rapids
#

An empty instance is closed

crystal steppe
#

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.

pine hare
river bolt
#

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

pine hare
#

I'm confused...