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
 

Badge Service not working?

Previous Thread :: Next Thread 
mario118118 is not online. mario118118
Joined: 05 Jul 2012
Total Posts: 245
06 Jun 2016 12:18 PM
Whenever I join my game through the server, not studio, the output is saying "Badge service is only available in ROBLOX game servers. REALLY?!

What exactly am I doing wrong? Is this just not working at all?

Cheers
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
06 Jun 2016 12:23 PM
What do you mean when you say "through the server"? Are you in Studio pressing "Start Server", or are you actually publishing and then joining your game?
Report Abuse
mario118118 is not online. mario118118
Joined: 05 Jul 2012
Total Posts: 245
06 Jun 2016 12:37 PM
Publishing and joining the game!

I just realised that the gamepasses are not for sale, so. Could this be causing the problem?


mario118118
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
06 Jun 2016 12:59 PM
why are you using the BadgeService for gamepasses
Report Abuse
mario118118 is not online. mario118118
Joined: 05 Jul 2012
Total Posts: 245
06 Jun 2016 01:00 PM
I got it to work - I was calling it from a client sided scrit, not a server one!

ps:

This finds the gamepass!

game:GetService("BadgeService"):UserHasBadge(player.userId,427708635) then


mario118118
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
06 Jun 2016 06:15 PM
I know that it finds the gamepass, but that doesn't mean it should be used. MarketPlaceService is meant for stuff like this, there's no reason to be using a method meant for badges for gamepasses. PlayerOwnsAsset can also even be used in LocalScripts.

http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset
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