#How to get all players in the room except one

8 messages · Page 1 of 1 (latest)

wise crest
#

Edit: On trigger pressed, send a custom event to Others

On event received, set position of local player

elfin solar
wise crest
#

How so?

oak pollen
#

You could just set the event to send to “Other”

wise crest
elfin solar
#

Alright, so, define a custom event NonLocalPlayerList, containing a List<Player>

Send the event to local with the list containing Get All Players
Now, after sending the event, find the local players index in the list using List Get First Index Of
Remove that index via List Remove At

After typing this, I realize they want to use For Each for a non-local circuit
Yeah no, just send an event to Others that tells the local player to teleport to a given location

wraith relic
#

get all players > list remove (The trigger holder) > do next

elfin solar