Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Getting the owner of a place

Asked by 10 years ago

Is there a way to get name of the owner of a place given the place? (MarketplaceService and AssetService return nil or Not Found.)

0
They should not return nil or Not Found - if they do you are doing something wrong. jobro13 980 — 10y

1 answer

Log in to vote
3
Answered by
jobro13 980 Moderation Voter
10 years ago

Yes, via a method I consider quite hackish:

local market = game:GetService("MarketplaceService")
local placeid = 137913728 -- same id
local ProductInfo = market:GetProductInfo(placeid)
if ProductInfo then
    print(ProductInfo.Creator.Name)
end

Also worth nothing: ProductInfo.Creator.Id returns the user id of that name.

You can use this on any place - also places which is not the running place. Just fill in the place id.

0
Ok, ill test this at home, will be a few hours. FromLegoUniverse 264 — 10y
0
This isn't hackish at all... you're getting the info on an asset. How is that hackish? TheLuaWeaver 301 — 10y
0
I disagree. Marketplace service is intended to be used on catalog items, not places. I consider that hackish. jobro13 980 — 10y
Ad

Answer this question