|
| 15 Dec 2016 12:05 AM |
Is there a way to check who owns a certain game? If so, how would I do that?
Thanks.
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2016 12:07 AM |
local Asset = game:GetService("MarketplaceService"):GetProductInfo(1818) print(Asset.Name.." is owned by "..Asset.Creator.Name)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Dec 2016 12:10 AM |
Wait, how would I get the id of the game that this script would be in (if I had no idea which game had this)?
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2016 12:12 AM |
put the id where the 1818 is
|
|
|
| Report Abuse |
|
|
|
| 15 Dec 2016 12:14 AM |
Ik, but how do I get the game id through a script (if possible)?
I'm basically trying to create a script that tells the game owner that the model they're using is out-of-date and that there is a new version available, along with the prompt to give it to them.
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2016 12:15 AM |
Don't think you can do this.
If you have a model in a game there would be no way to check if it came from free models or if the creator made it.
|
|
|
| Report Abuse |
|
|
|
| 15 Dec 2016 12:18 AM |
I'm just trying to figure out if I can get the place id through a script.
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Dec 2016 12:21 AM |
Alright, thanks.
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 15 Dec 2016 02:30 AM |
game.CreatorId gives you the user ID of the game owner. You can run that through Players' GetNameFromUserIdAsync.
Although ofc. GetProductInfo still works. |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2016 03:33 AM |
Whichever you'd prefer:
function CheckOwner(Player) if Player.UserId == game.CreatorId then return true end end -- Usage if CheckOwner(game.Players.Player1) then -- Do stuff. end
function GetOwner() return game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Creator.Name end -- Usage print(GetOwner())
( ͡• ◡ ͡•) -=[ RAP: 543,043 || DurstAuric; the narb of ROBLOX ]=- ( ͡• ◡ ͡•) |
|
|
| Report Abuse |
|
|