Cloudy API Documentation
  • SETUP
    • Introduction
    • Setting Up Your Project
    • Update Log
    • Cloudy API Tutorial
    • Credits
  • FUNCTIONS
    • AutoInject
    • Inject
    • Execute
    • GetClientsList
    • RegisterExecutor
    • IsInjected
    • AutoSetup
    • disableSecurity
    • isRobloxOpen
    • CheckRobloxVersion
    • GetUsername
    • killRoblox
    • AskAi
    • Cleanres
    • SetDiscordRpc
    • IsAutoInjectEnabled
  • credits
  • GetUserIdFromUsername
  • GetAvatar
  • SetScriptJS
  • AddTabJS
  • GetDiscordUsername
  • cPlaceId
  • cPlaceName
  • cPlaceImage
  • CHAT FUNCTIONS
    • ConnectToServer
    • ReceiveMessages
    • SendMessage
    • Disconnect
    • OnMessageReceived
    • OnError
    • Messages
Powered by GitBook
On this page

GetUserIdFromUsername

Retrieves a Roblox user's ID by their username using Roblox's API. Returns the user ID as a string if found, otherwise returns null.

Usage:

Api.misc.GetUserIdFromUsername(string username);

Example:

string userId = Api.misc.GetUserIdFromUsername("ArcaneDevz"); // Gets the Roblox user ID for username "ArcaneDevz"
Console.WriteLine(userId != null ? $"User ID: {userId}" : "User not found");
PreviouscreditsNextGetAvatar

Last updated 1 month ago