Wrong code sample for the GetNameFromUserIdAsync api?

Issue Description

The page explains how to use the GetNameFromUserIdAsync api and the code sample demonstrates how to change the character’s CameraMode to third person?

Issue Area: Documentation Content
Page URL: Players:GetNameFromUserIdAsync

4 Likes

It is also incorrect on the new documentation website: Players | Roblox Creator Documentation

Haha, that is quite amusing.

Imagine you are trying to work out how to use GetNameFromUserIdAsync and suddenly you are manipulating the camera.

4 Likes

Thanks for bringing this up, we filed a ticket to our internal database and the team will look into it.

4 Likes

@Racemodex1 thanks for this report, the code samples should now be updated. One example provided is for simple usage, while another uses a cache to prevent future repeated lookups.

If you notice any other incorrect code samples, please report them to Documentation Issues, thanks again!

2 Likes