How do I find the owner of the place created with AssetService?

  1. What do you want to achieve? I want to find who owns a specific place that was created using the AssetService in a script.

  2. What is the issue? PrivateServerOwnerId returns 0, and the CreatorId is my group.

  3. What solutions have you tried so far? None so far.

Pretty self explanatory, I can’t find the owner of an AssetService created place.
I use CreatePlaceInPlayerInventoryAsync then I teleport the player there.
edit I’m trying to give them admin, but I cannot because the scripts don’t recognize the place owner as a creator.

I’m confused? What this is supposed to be?

In the place created by AssetService, I need to find who created the place.

How are you creating it in their inventory if you don’t know who it is?

It’s this.

2 Likes

Hm… What exactly are you making? You can create a place for someone using AssetService? i didn’t really know that? That’s a bit odd? Is it deprecated?
And game.CreatorId doesn’t really work when the game.CreatorType is a group. Then you have to use group service I think that’s the name… So.

Yes and you need to specify the player in order to create it? So how do you not know the player?

1 Like

PrivateServerOwnerId are only for VIP Server especifically.
And game.CreatorId needs to be checked in the created place.

The player isn’t specified when I am in their place. I’m trying to give them admin, i’ll clairify that more

You could create a DataStore, the keys being the placeID and values the respective owner’s userIDs.

Ex:

local data = {
    12390128312 = "K_reex", -- replace name with the player's ID
    50980394614 = "6cv3"
}

This would work if the created place is in the original game’s universe; I’m not sure if that’s how it works though.

Good idea, I’m not so good with data stores but i’ll try that when I get on my computer.

1 Like

Hm quick question. Should you be saving their userIds in the table like that? And no that solution woundt work because data stores are NOT cross game.

I’m not sure. I don’t think it would work since, even though I don’t understand your idea, data stores in Roblox aren’t cross game.

It is, however, cross-place. If the place is part of the same universe the data store can be accessed.

If not, another solution could be utilizing TeleportData. Send a bool whether or not the player is the place’s creator when you teleport them into the game.

Yes, but wouldn’t this create another game in the player’s inventory? It doesn’t seem right.

Why not use MarketplaceService on the place? Specifically GetProductInfo - you should be able to find the creator of the place by entering the new place as the product ID

I’m only assuming AssetService marks the player who has it in their inventory as the creator - if it doesn’t then this method would not work

1 Like

thanks for the idea, I remember a similar thing like that with audios and their name. i’ll try it later.