Help with getting player info

Hello, so recently I have been working on an admin panel to better my scripting skills. I have a player info tab where I want it to show everything in the screenshot as well as the player list on the left. When you click their username on the left, it will come up with their stats, pfp, etc. Can anyone help me out with the scripting?

1 Like

image

For most of this, you would need to make a web request to the Roblox API through a proxy.


Getting the player’s image can be accessed from the Players service. (here)

What would a script example be like? For example, how would I get their account Id?

You can just do

local accountId = player.UserId

But that’s only if they’re in-game. If you want someone’s userid who’s not in-game, you would use this function.

example

local players = game:GetService("Players")

local success, err = pcall(function()
   return players:GetUserIdFromNameAsync("HugeCoolboy2007")
end)

if success then
   print(err) --> prints 107157606
end