Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Gamepasses won't work? I've tried making multiple gamepasses on different games

I've tried a lot, I've tried everything in the title and any script I've seen that could work. None of them worked, but, I did get a script from roblox wiki (that didnt work yesterday but worked today?) and it prints that I don't have the pass. This is the script

game.Players.PlayerAdded:connect(function(plr)
	if game:GetService("GamePassService"):PlayerHasPass(plr,4449831) then
		print(plr.Name .. " owns the pass")
	else
		print(plr.Name .. " doesn't own the pass")
	end
end)

And yes, I do own the pass.

1 answer

Touched up on a few things, try this!

game.Players.PlayerAdded:Connect(function(plr)
    if game:GetService("GamePassService"):PlayerHasPass(plr, 4449831) then
        print(plr.Name .. " owns the pass")
    else
        print(plr.Name .. " doesn't own the pass")
    end
end)

2 comments

0

Nope :/

0

Where is the script located?

This discussion is preserved as it was. New answers, comments, and votes are closed.