I have only started using them today, and I can't seem to get them to work. Do they only work in the place that they are uploaded to? I keep getting a false return on my Authentication function. I understand the method, it's quite simple actually. I'm just having trouble Authenticating the passes. I'm testing the passes in a game separate to the one I uploaded them to.
passId = 152822032
function isAuthenticated(player)
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end
--[[stuff & variables]]--
--PTS is the localplayer
if PTS.TeamColor ~= BrickColor.new("Bright red")then
PTS.leaderstats.Points.Value = PTS.leaderstats.Points.Value +1
PTS.TestPoints.Value = PTS.TestPoints.Value +1
if isAuthenticated(PTS) then --Aunthenticate function which ALWAYS return false
PTS.leaderstats.Points.Value = PTS.leaderstats.Points.Value +1
PTS.TestPoints.Value = PTS.TestPoints.Value +1
end
--[[more stuff]]--
