Public account profile for a player on the Core platform.
|Property Name||Return Type||Description||Tags|
| || ||The ID of the player.||Read-Only|
| || ||The name of the player. This field does not reflect changes that may have been made to the ||Read-Only|
| || ||A description of the player, provided by the player in the About section of their profile.||Read-Only|
This client script example fetches the profile of the game's creator and uses information from it to print a welcome message into the chat window.
local GAME_NAME = "Example Simulator" local CREATOR_ID = "c19fdb85adf94580b1f926764560682e" local player = Game.GetLocalPlayer() local creatorProfile = CorePlatform.GetPlayerProfile(CREATOR_ID) if CREATOR_ID ~= creatorProfile.id then error("Received the wrong profile, for some reason.") end Chat.LocalMessage("Hi " .. player.name .. "!") Chat.LocalMessage("welcome to " .. GAME_NAME) Chat.LocalMessage("by " .. creatorProfile.name) Chat.LocalMessage(creatorProfile.description)
Dernière mise à jour: December 21, 2021