I have a GUI that is supposed to be on a player’s screen if they own a gamepass.
It does work but if the player dies the gamepass does not come back. Here’s the script:
local mps = game:GetService("MarketplaceService")
local vip = 15093132
if mps:UserOwnsGamePassAsync(plr.UserId, vip) then
script.Particle:Clone().Parent = plr.PlayerGui