gamepassid=157704758
local player = Player.Character
while true do
if game:GetService("GamePassService"):PlayerHasPass(player,gamepassid)then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
end
i'm trying to make it if you have the gamepass then it appears or if you don't it disapears

1 comment
Line 2. That line doesn't tell the script where the Character is. Is this a restricted door? If so add a ontouched function and make hit.Parent the character.