PlayerUtils
Functions
formatName
Human-readable version of a player name. If the player's name is the same as the display name, then returns that player's name. Otherwise returns a formatted name with the player's name like this "oot (@martxn)" which lets you know the username and the display name.
Note this is not localized, although most languages should be ok. Great for output for dev logs and command services which are less picky.
formatDisplayName
PlayerUtils.
formatDisplayName
(
name:
string
,
displayName:
string
) →
string
--
Formatted name
Human-readable version of a player name. If the player's name is the same as the display name, then returns that player's name. Otherwise returns a formatted name with the player's name like this "oot (@martxn)" which lets you know the username and the display name.
Note this is not localized, although most languages should be ok. Great for output for dev logs and command services which are less picky.
getDefaultNameColor
Retrieves the display name color for a given player (for the Roblox chat)
promiseLoadCharacter
Calls :LoadCharacter() in a promise
promiseLoadCharacterWithHumanoidDescription
PlayerUtils.
promiseLoadCharacterWithHumanoidDescription
(
humanoidDescription:
HumanoidDescription
) →
Promise
<
Model
>
Calls :LoadCharacterWithHumanoidDescription() in a promise