I'm trying to make a script where you can set a variable as someone's name then it auto completes it.
Ex:
Variable = "Sim"
Output = SimplyJeremy
I've tried using string.match with this but it usually bugs out and prints multiple players. Can someone please give me a better method without string.match?

1 comment
Isn't it possible that it's outputting multiple players because multiple players match the pattern "Sim.*"?