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
 

PlayerOwnsAsset/PlayerHasBadge

Previous Thread :: Next Thread 
MomentInTime is not online. MomentInTime
Joined: 16 Jul 2015
Total Posts: 6226
11 Aug 2015 09:33 PM
Is there any way to tell if a player has an ID if the player is not in the game? PlayerOwnsAsset requires a player object, and PlayerHasBadge doesn't work if the player isn't in the server.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
11 Aug 2015 09:40 PM
http://wiki.roblox.com/index.php?title=API:Class/BadgeService/UserHasBadge
Report Abuse
MomentInTime is not online. MomentInTime
Joined: 16 Jul 2015
Total Posts: 6226
11 Aug 2015 09:47 PM
@nQ
That's what I meant. It doesn't fire correctly unless the player's ID it is referring to is in the server.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
11 Aug 2015 09:49 PM
ye, i don't think there is a method created by roblox yet for this, but i could be wrong
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
11 Aug 2015 09:59 PM
What do you mean it doesn't "fire"? You have to call it with the userId and badgeId of the player.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
11 Aug 2015 10:00 PM
OP wants to be able to check if they own the badge even if the player isn't in game

not sure if you can do that yet, correct me if i'm wrong though
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
11 Aug 2015 10:05 PM
yes, you can i just said

you call it with the userId of the player that you want to check
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
11 Aug 2015 10:08 PM
OP said you can't if the provided player with the userId isn't in the server but ok

i may test this out later
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