Let's just say I have someone's UID (user id). How could I use that UID to get their username?
Call game.Players:GetNameFromUserIdAsync() to do this. Remember, that since this is a remote call, it will yield and can error. This means that you need to wrap this invocation in a pcall() to ensure that it doesn't error, and never assume that it will be successful.