Hey guys! How are you doing? I hope you do very very well!
Being direct, I made a system where you vote for a single player, but I got a problem, and If a player is dead (a phantom ) then the console chooses another player randomly. But It doesn’t work as I expected,
because it returns a blank value
The problem is that “ChosenPlayerName” keeps in blank even after the “for i, v in pairs() loop”
And when I try to save that Name to a StringValue in the ReplicatedStorage It gives me a blank value because ChosenPlayerName’s Value is nothing, and If I try changing “ChosenPlayerName” to “ChooseAnotherPlayer” then It will give me an error because “ChooseAnotherPlayer” is an instance and not a String Value.
I will appreciate a lot but A LOT of your help and yourself If you can give me a hand with this, even if it’s the smallest one, try giving the smallest Information that may fix this, if you have some question, don’t mind writing it on the comments, thanks for everything and have a nice day! byee!