|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 18 Jul 2014 03:03 PM |
| Not a valid player, line 3 |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 03:06 PM |
| I fixed it. I was trying to find a LocalPlayer using a server script. |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 03:07 PM |
when using localplayer
it has to be in a LocalScript |
|
|
| Report Abuse |
|
|