generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Check Game Owner?

Previous Thread :: Next Thread 
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
coolandy31 is not online. coolandy31
Joined: 03 Sep 2014
Total Posts: 109
15 Dec 2016 12:07 AM
local Asset = game:GetService("MarketplaceService"):GetProductInfo(1818)
print(Asset.Name.." is owned by "..Asset.Creator.Name)


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
15 Dec 2016 12:09 AM
Thanks.


~MightyDantheman~
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
coolandy31 is not online. coolandy31
Joined: 03 Sep 2014
Total Posts: 109
15 Dec 2016 12:12 AM
put the id where the 1818 is


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
coolandy31 is not online. coolandy31
Joined: 03 Sep 2014
Total Posts: 109
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
coolandy31 is not online. coolandy31
Joined: 03 Sep 2014
Total Posts: 109
15 Dec 2016 12:19 AM
game.PlaceId


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
15 Dec 2016 12:21 AM
Alright, thanks.


~MightyDantheman~
Report Abuse
cntkillme is not online. 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
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image