Hi, I would like to get the owner of the current place. I was wondering if that was possible inside of a Roblox game without using the web API
I have no idea if this is possible, but I believe that they are removing the API that I would need for this, so I was seeing if I could do it in-game
2jammers
(james)
September 4, 2022, 2:46am
#2
Use MarketplaceService:GetProuductInfo()
Example:
local MarketplaceService = game:GetService("MarketplaceService")
local placeInfo = MarketplaceService:GetProductInfo(tonumber(placeId))
local placeId = game.PlaceId
local success, fail = pcall(function()
MarketplaceService:GetProductInfo(tonumber(placeId))
end)
if success then
print(placeInfo.Creator.Name)
end
1 Like
Valkyrop
(JustAGuy)
September 4, 2022, 2:49am
#3
What do you mean?
Do you want the UserId/Name/Displayname/Age of the owner?
Try:
local Owner = game.CreatorId
local Players = Game:GetService("Players")
print(Players:GetPlayerFromUserId(Owner).AccountAge)
avodey
(avocado)
September 4, 2022, 2:49am
#4
You can use game.CreatorId ! If the creator is a group, this is the GroupId. You can check if it’s a group or a player by using game.CreatorType .
1 Like
maaxyyyyyyy
(captaincrunch27)
September 13, 2022, 11:55pm
#5
An alternative solution can be to fetch this endpoint which gives you the creator and excess data about the game