|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 06 Jun 2016 12:59 PM |
| why are you using the BadgeService for gamepasses |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|