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 » Scripting Helpers
Home Search
 

Re: Game Pass Checker Not Working

Previous Thread :: Next Thread 
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
18 Jul 2014 02:51 PM
I got this directly from the wiki and added a "not" in the front and changed the id to my game pass' id. It doesn't work. It thinks I don't have the game pass.

This is inside a normal script inside StarterGui.

if not Game:GetService("GamePassService"):PlayerHasPass(game.Players.LocalPlayer, 167020359) then
print("Player doesn't have Jetpack Game Pass.")
script:remove()
end

Why does it think I don't have it if I do?
Report Abuse
ediee544 is not online. ediee544
Joined: 24 Oct 2008
Total Posts: 2175
18 Jul 2014 02:54 PM
I think checking for groups status,badges, gamepasses, and thins a like don't work in solo mode.

Try publishing it and see if it works.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
18 Jul 2014 02:55 PM
It wasn't in solo mode. I saved it and went in the game. Also, what do you mean when you say "publish it"?
Report Abuse
ediee544 is not online. ediee544
Joined: 24 Oct 2008
Total Posts: 2175
18 Jul 2014 02:57 PM
I mean like, put the game on ROBLOX so you and I can visit, you know, "Publish to ROBLOX"


My group checker in my games doesn't work solo, but it works just fine multiplayer.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
18 Jul 2014 02:58 PM
I tested it in multiplayer using Developer Console. It's not printing that I don't have it.
Report Abuse
ediee544 is not online. ediee544
Joined: 24 Oct 2008
Total Posts: 2175
18 Jul 2014 03:00 PM
if not Game:GetService("GamePassService"):PlayerHasPass(game.Players.LocalPlayer, 167020359)

can you remove the 'not' and see what happens? Just curious.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
18 Jul 2014 03:03 PM
Not a valid player, line 3
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
18 Jul 2014 03:06 PM
I fixed it. I was trying to find a LocalPlayer using a server script.
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
18 Jul 2014 03:07 PM
when using localplayer

it has to be in a LocalScript
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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