local id = xxxxxxxx
local plr = game.Players.LocalPlayer
local RadioGUI = game.ReplicatedStorage.RadioGUI
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and ido == id then
if not plr.PlayerGui:FindFirstChild(RadioGUI.Name) then
RadioGUI:Clone().Parent = plr.PlayerGui --Clone gui to player
end
end
end)
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players[char.Name].UserId, id) then
if not plr.PlayerGui:FindFirstChild(RadioGUI.Name) then
RadioGUI:Clone().Parent = plr.PlayerGui --Clone gui to player
end
end
end)
end)
where is problem please help me! this is a gamepass script

8 comments
i did it in a gamepass (Resetonrespawn is true)
the problem is with gamepass script not with gui!
lol i wrote the answer wrong
xd
ok i edited my answer
i should do it false?
yes it must be set to false if you don't want it to dissapear after a player's death
k tysm bro it worked :)