#Gamepass only Gui
20 messages · Page 1 of 1 (latest)
are you referring to a gui object?
you could parent a gui from the script’s children to the players gui
I meant not working ops
what do you mean?
oh wait i didnt read it properly
this seems to be the error
i believe this is the updated/correct way to figure out if someone has a gamepass
ok thanks i'll try
local gamepassID = 12345
game.Players.PlayerAdded:Connect(function(player)
player:WaitForDataReady()
local success, hasPass = pcall(function()
return game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, gamepassID)
end)
if success and hasPass then
local playerGui = player:WaitForChild("PlayerGui")
local watchFrame = playerGui:WaitForChild("Watch"):WaitForChild("Frame")
watchFrame.Visible = true
else
local playerGui = player:WaitForChild("PlayerGui")
local watchFrame = playerGui:FindFirstChild("Watch")
if watchFrame then
watchFrame:Destroy()
end
end
end)```
this should work
Sadly it does not
** You are now Level 8! **
Are you sure? it worked for me
** You are now Level 7! **
where did u place the script?
ServerScriptService