Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Can anyone explain to me why this is not working?

Asked by 10 years ago
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

0
We will need a little bit more information, do you have any errors? ultimate055 150 — 10y

1 answer

Log in to vote
2
Answered by 10 years ago

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.

Ad

Answer this question