Hi, I need to find out how to transform a table of Players into a Value, but in a very specific way:
There’s 4 Players
I get the table of Players
(Problem) I convert it into a Value (number, in this case 4)
Do other stuff I need
Now, the thing is that I can’t have a random Value, but the Value needs to be the number of Players in the Server, I don’t need a full Script, I only need a vision of how to do that (if you want you can give me a snippet of code)
Thanks in advance!
local FakePlayers:NumberValue? = ServerStorage.Storage.NumberOfPlayers
local PlayersReal = #Players:GetPlayers() -- Number of players
FakePlayers.Value = PlayersReal