![]() I would highly suggest separating your code across multiple lines as to ensure it remains organized and that certain Instances exist at the time they’re being referenced, preventing any errors from occurring. If this is the case, there would be no need to look through the Players service using a string because you have direct references to the Player Instance. If you only have a string that contains the player’s Username, you can first look through the Players service to check if the player is still in the game – if they are, call :GetUserThumbnailAsync using the UserId property of the player Instance that was found.īased on the code you’ve provided, I’m not sure what “KPlayer” and “LastHit” are referring to, however, I presume that “LastHit” is an ObjectValue that stores a reference to the player that inflicted the final bits of damage to the LocalPlayer and that “KPlayer” does the same thing, except for that player’s Character.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |