So I’m making a ban script focused on banning players using their UserId so they can’t get out of a ban by changing their name. So I have a list in ServerStorage filled with UserId’s as the names of the string values but I want to try make it so as the Value of the string values I want to have their name there. If anyone can help me, thanks.
This will get their name and then set the value to that
Name = Players:GetNameFromUserIdAsync(id)
List[id].Value = Name
edit: i also recommend putting it in a pcall, as it can error sometimes.
1 Like