Need help with a game pass script

  1. What do you want to achieve?: I want to get this script to work.

  2. What is the issue?: The GUI won’t show up.

  3. What solutions have you tried so far? Looked on the Developer Forum and youtube.

Here is the full script (In a local script)

local player = game.Players.LocalPlayer
local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,19751261)

if ownsGamepass then
	script.Parent.Clue.Visible = true

Can I get a screenshot of where the script is kept in the explorer?

Can you put a print after the if statement? Also is the script in StarterPlayerScripts/StarterGui/StarterPack?

image

What is exactly the error? What are you trying to achieve? Please be more specific.

Its alright I fixed it! No need to worry now

The frame inside was called Clue.

For future reference when making posts make sure we can see the expanded version of where the script is kept with the scripts name visible in the explorer as well as everything parenting it as it makes finding a solution more straightforward.

Also you don’t need to cross out the names of your guis, you cant steal guis just from a name. If you need anything else just put up another post and well be keen to help.

Yea I crossed them out cause I didn’t want people to know what GUIs are in my game.