#how to make it so it shows every player display name on a text in a room

1 messages · Page 1 of 1 (latest)

primal mica
#

Pls help

iron venture
#

If you don’t care about brackets and commas

#

Get all players > to string

#

If you do it’s more complicated

jaunty mural
primal mica
#

The 2nd one that has
A
B
C

jaunty mural
# primal mica The 2nd one that has A B C

First, lets create a String Variable and rename it to PlayerNames

When we start, lets set PlayerNames to a blank string
After, we are going to run a For Each on Get All Players

On "Loop", check if PlayerNames is equal to a blank string
If PlayerNames is equal to a blank string, we are going to set it to "Item" converted to a string using To String
If PlayerNames is not equal to a blank string, we are going to set it to itself concatted with "Item" converted to a string using To String, with a separator of a new line

On "Done", PlayerNames will contain every players name assorted vertically (You can even turn this into a list with String Split if you wanted)


You can optimize this by instead of using If and Equals, using Value String Switch with a Default input and a blank input (If match is blank, use first value, else use second value)

primal mica
jaunty mural
#

what does the word "blank" mean

primal mica
#

Empty?

jaunty mural
#

yeah

primal mica
#

Empty string on PlayersNames

#

?

neat loom
#

""

#

Quote nothing Quote == empty string or blank string. Basically a string with nothing in it.

primal mica
neat loom
#

Either of the 2 string outputs, as inputs to Set Text.

#

You have to send power to the Exec to get it to process whatever thing you have connected to Player List. You can grab by role, or all players, or "people in trigger volume", etc.

loud basin
#

It's not that hard to read if you don't understand it read it a couple of times

#

Also if you can't figure simple text out learn more cv2 before asking

neat loom
rancid prawn
#

Get a to string a get all players a text and a event receiver on update 30hz connect get all players to the white port on the to string connect the purple port on the to string to the other purple port on the text and put the set text to the event receiver