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

Can anyone explain to me why this is not working?

gamepassid=163752053
player = game.Players.LocalPlayer
if game:GetService("GamePassService"):PlayerHasPass(player,gamepassid) then
script.Parent.Visible = true
else
script.Parent.Visible = false
end

when i join the game the gui just disappears and doesn't reconized the player if he/she has the gamepass

1 comment

0

We will need a little bit more information, do you have any errors?

1 answer

Since I can't comment, I will post it here. If something does not work, please tell us how it does not work, and if there are any errors, please post your output here also. And can you say if it is in a Script or a LocalScript also, because PlayerHasPass will not work in LocalScripts.

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