Print(randomUser(617197)) - jaredvaldez4 (Terminated)Īnd if the OP wanted to avoid loading Characters of terminated users, from my understanding & based on previous research I’ve done, the most reliable way to determine if a user is terminated is by utilizing Roblox’s Users Api (more specifically, the /v1/users/ endpoint) and checking if the isBanned bool returns true or not. Print(randomUser(7936)) - miked (Terminated) Print(randomUser(4)) - Unable to retrieve username (One of the earliest accounts) Local success, res = pcall(GetNameFromUserIdAsync, Players, UserId) Local GetNameFromUserIdAsync = Players.GetNameFromUserIdAsync For example: local Players = game:GetService("Players") The script i want to use this in is in the workspace and is a normal script. I’m fairly sure that :GetNameFromUserIdAsync() works in most cases, even if the user is terminated (with the exceptions for accounts that were closed due to GDPR requests along with some of the earliest accounts, such as those with UserIds of 4, 5, 7, etc.). Is there another way to get the Humanoid rather than using a touched event, playeradded event ect I’m struggling to get the humanoid as i cant really use a player event in this occasion unless i can somehow use the playeradded event for an event in game. Since there are a lot of banned accounts, you would have to generate it again until it’s a valid account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |