Now here is my script (It is supposed to remove the ImageButton and Frame1 which is inside Frame if player doesn't have the gamepass):
id = 382406860 --Gamepass Id
plr = script.Parent.Parent.Parent.Parent
repeat wait() until plr.PlayerGui
if not plr:PlayerHasPass(id) then
script.Parent.Parent.Parent.Frame.Frame1:Destroy()
wait(0.1)
script.Parent:Destroy()
end
I'm not sure what went wrong... Does anyone know and can help me?

4 comments
Grammar, m8?
?
It didn't work again, but there was an output error: 21:47:54.350 - 'MarketPlaceService' is not a valid Service name
OH! Caps problem! MarketplaceService*