of     1   

excellentAnarchy
#141160487Tuesday, July 22, 2014 1:20 PM GMT

I'm using a local script: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.Parent.MouseButton1Down:connect(function() if game:GetService("GamePassService"):PlayerHasPass(game.Players.LocalPlayer, 167686361) then script.Parent.Parent.Frame.Visible = true else script.Parent.Parent.NoPass.Visible = true wait(4) script.Parent.Parent.NoPass.Visible = false end end) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In-game local output says: Game passes can only be queried by a Script running on a ROBLOX game server.
cntkillme
#141161090Tuesday, July 22, 2014 1:35 PM GMT

You can't check for GamePasses with that method in a local script. Use a remote function and check it on the server. Put a RemoteFunction in ReplicatedStorage and add a script in ServerScriptService with contents of: local remoteFunction = Game:GetService("ReplicatedStorage").RemoteFunction; remoteFunction.onServerInvoke = function(plr) return Game:GetService("GamePassService"):PlayerHasPass(plr, 167686361); end; And from the local script, replace your conditional statement (if game:GetService...) with: if Game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer() then
excellentAnarchy
#141166804Tuesday, July 22, 2014 3:15 PM GMT

That did nothing, it doesn't even do the else part and shows no output
ArbiterOfDeath
#141167148Tuesday, July 22, 2014 3:21 PM GMT

I haven't worked with game passes before, maybe they don't work in testing mode?
excellentAnarchy
#141168522Tuesday, July 22, 2014 3:39 PM GMT

I'm testing it in a normal game not test mode
ArbiterOfDeath
#141169026Tuesday, July 22, 2014 3:46 PM GMT

Put this in the player's playerGui and change the three variables at the top accordingly. local player = script.Parent.Parent local noPass = script.Parent.NoPass local gui = script.Parent.Frame script.Parent.MouseButton1Down:connect(function() if game:GetService("GamePassService"):PlayerHasPass(player, 167686361) then gui.Visible = true else noPass.Visible = true wait(4) noPass.Visible = false end end)
excellentAnarchy
#141172978Tuesday, July 22, 2014 4:36 PM GMT

It doesn't work.
excellentAnarchy
#141173462Tuesday, July 22, 2014 4:42 PM GMT

Thank you, I just put it into the wrong place, and yes that works fine :)

    of     1