It can be interesting to learn about other players. The ProfileCard developer module is a great way to see more information about others within an experience, from badges achieved to the player's favorite games.
Module Usage
Installation
To use the ProfileCard module in an experience:
Make sure the Models sorting is selected, then click the See All button for Categories.
Locate and click the Dev Modules tile.
Locate the Profile Card module and click it, or drag-and-drop it into the 3D view.
In the Explorer window, move the entire ProfileCard model into ServerScriptService. Upon running the experience, the module will distribute itself to various services and begin running.
Views
Profile cards have different views depending on whether you're viewing your own card or another player's card.
When you first spawn into the experience, an icon appears over your character. Clicking the icon opens the profile card view. Once the card is closed, the icon disappears, but you can reopen the card at any time by clicking your character.
When viewing your own card, it appears as it would to another player, except placeholder text will appear for any blank inputs. Additionally, the status string is subject to text filtering, as any free text input should be.
API Reference
Functions
configure
Overrides default configuration options through the following keys/values in the config table. This function should be called from a LocalScript within StarterPlayerScripts.
Key | Description | Default |
---|---|---|
alwaysOnTop | If true, shows locator icons on top of everything, preventing them from being blocked by 3D world objects. | true |
showPersonalIndicator | If true, shows the personal indicator when a player first joins the experience. | true |
showBlur | If true, shows the blurry screen background when a player enters edit mode. | true |
maxClickDistance | Maximum distance from the camera viewpoint a card will appear when a character is clicked, measured in studs. | 100 |
backgroundColor | Background color for the card (Color3). | [228, 255, 255] |
backgroundTransparency | Transparency of the card's backgroundColor. | 0.2 |
isScaled | If true, automatically scales the size of the text to fill the height of the space. | false |
isTruncated | If true, automatically hides the ends of strings that would otherwise be too long for proper viewing. | true |
hasRoundedCorners | If true, the card's corners will be rounded. | false |
cornerRadiusValue | Value of the UICorner corner radius, if hasRoundedCorners is true. | 20 |
hasBorder | If true, shows a border for the card. | false |
borderColor | Color of the card's border (Color3). Only applies if hasBorder is true. | [228, 255, 255] |
borderThickness | Thickness of the card's border, if hasBorder is true. | 3 |
borderTransparency | Transparency of the card's border, if hasBorder is true. | 0 |
borderLineJoinMode | Corner style of the card's border (Enum.LineJoinMode). Only applies if hasBorder is true. | Round |
headerFontSize | Font size for the card's header. | 18 |
headerFontType | Font type for the card's header (Enum.Font). | GothamBlack |
textFontSize | Font size for the card's body text. | 15 |
textFontType | Font type for the card's body text (Enum.Font). | GothamMedium |
LocalScript
local ReplicatedStorage = game:GetService("ReplicatedStorage")local ProfileCard = require(ReplicatedStorage:WaitForChild("ProfileCard"))ProfileCard.configure({alwaysOnTop = true,maxClickDistance = 50,backgroundColor = Color3.fromRGB(0, 0, 0),backgroundTransparency = 0.4})