Alternative to game.CreatorId?

For a studio plugin I am making, I need to get the Username of the game’s creator. I would normally use game.CreatorId, but this won’t work in studio.

I’ve tried using marketplaceservice:GetProductInfo(game.GameId).Creator.Name but it always returns the wrong player.

Is there any way I can get the game creator’s Username/UserId without using game.CreatorId?

Why not just use Players:GetNameFromUserIdAsync()?

local players = game:GetService("Players")

1 Like

What you were looking for was MarketplaceService:GetProductInfo(game.PlaceId), however, @gillern’s response to this best suits your case.

as I said in the topic, this won’t work because game.CreatorId always returns 0 in roblox studio. Doing this throws the error along the lines of HTTP Error 400 bad request

what do you mean? it works in Studio


> ran in the command bar

It will work if the game is published (works for private and public both) otherwise technically the game has no creator on Roblox, so it would return 0 or an error


That’s so strange, it wasn’t working for me no matter what I changed. Is your studio game published? Are you running that code on the server during a playtest?