What do you want to achieve? I want to find who owns a specific place that was created using the AssetService in a script.
What is the issue? PrivateServerOwnerId returns 0, and the CreatorId is my group.
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.
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.
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.
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