Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I get the name of the creator of a place?

I want to get the name of the creator of the place, using game., but I can't find anything other than the CreatorId. I want to know if there is a way of getting the name of the creator, without using HTTP (HTTP is accessing websites, and deriving/adding information to/from them).

Can any help me with this?

3 comments

0

Why not just use the game owner's UserID? game.CreatorId

0

But that would mean using HTTP, which I don't want. Do you read? UserId does not give you a name

0

How is this a bad question? Don't downvote me if your not knowledgable enough in RBLX Lua to answer my question.

1 answer

✓ Accepted answer

You can use InsertService to get the name of a person from their userid by using this neat trick instead of HttpService.

function UsernameFromID(ID)
	local sets = (type(ID) == "number" and game:service("InsertService"):GetUserSets(ID)) or nil
	if sets then
		for i, v in next, sets do
			if v.Name == "My Models" then
				return v.CreatorName
			end
		end
	else error("ID must be a number")
	end
end

print(UsernameFromID(261)) --- Shedletsky

This discussion is preserved as it was. New answers, comments, and votes are closed.