Getting character from a string?

I used a math.random to get a random player then I get player name to save it on a StringValue to use in a local script… I try using game.Players[Num.Value] anyway to get character?

1 Like

To get the character, use .Character.

Code:

game.Players[Num.Value].Character
2 Likes

this actually works Thanks!.. I always guide myself by autocomplete thing lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.