How to get a user's name by a set Id? (read for info)

Hello!

While developping my game, I needed to add credits. And basically to avoid if I change my username to have to go in and change everything (and waste time). I decided I should try to get my userid and then get my username.

So this is what I am trying to do:

local OwnerID = 484327688 --This is my ID
local OwnerName = --Now we get the name from the Id

script.Parent.Text = "Scripting: "..OwnerName

So basically what the Text should be is: Scripting: 16Thunderstorm

So yeah, it’s a pretty quick question that I had difficulty finding an answer to.

this

3 Likes