Hey guys. So, I'm not at all new to gamepasses, but for whatever reason it may be, the game claims I do not own the gamepass I created myself (and the page says I own it aswell!)
I made a print to show me if I have it or not, and when playing the game, it prints the "doesnt own", even though, very clearly, I do own it.
Is this a scripting error?
id = mypassidwenthere
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
if game:GetService("GamePassService"):PlayerHasPass(plr, id) then
local tool = script:FindFirstChild("Spear")
tool:Clone().Parent = plr.Backpack
tool:Clone().Parent = plr.StarterGear
print("Given")
else
print("doesnt own")
end
end)

4 comments
"mypaddidwentthere" is not a valid pass ID. Also https://twitter.com/RbxDevTips/status/430195544628006912
That wasn't the actual ID haha! My bad, I didn't explain that properly. That was for privacy purposes. I'll check the link out, thanks
Odd, even when publishing and testing it in the player client it still claims I do not own the pass.
Doesn't work if PlayerHasPass is called in LocalScript or in Studio