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
There's no need for a while loop in this case. You can just set the Local Player using a LocalScript.
gamepassid=157704758 player = game.Players.LocalPlayer if game:GetService("GamePassService"):PlayerHasPass(player,gamepassid) then script.Parent.Visible = true else script.Parent.Visible = false end