TopBar+ Confusion Help

I don’t know if I’m doing anything right or wrong here, I have little to no scripting experience. :sweat_smile:
It’s also been a while since posting on the forums, hi!

So after finally realizing how simple TopBar+ is to use, I came into an “issue”. :sob:

What this is meant to do is when clicked to open the UI, and close it. Howeverrrrr, it is not working in-game.

@ForeverHD AAAA

I don’t really get it as this is what I’m supposed to do?

I came so close… :sleepy:

Any help is appreciated.

Replace shopframe by
The screengui where your frame is

1 Like

Just tried that. It’s underlined in orange and does not work…
Thanks for the help tho

Where is the script located? Show me in a screenshot

You never defined ShopFrame as a variable.
You might want to look into that first.


You might want to learn how to variables before posting on the devforum for scripting help.

I’ve done everything as listed here: Introduction - TopbarPlus
(this is the only issue)

Ive only followed the instructions as listed on Nanoblox’s GitHub.

Then add this:

local ShopFrame = Player:WaitForChild('PlayerGui'):WaitForChild('GamePassShop'):WaitForChild('ShopFrame')

Not working… :sweat_smile:
I appreciate the help tho

Elaborate. Don’t just say “not working”, I can obviously help you, but in this case I’m assuming Player is nil because you never defined that either, so here you go:

local Player = game:GetService('Players').LocalPlayer
local ShopFrame = Player:WaitForChild('PlayerGui'):WaitForChild('GamePassShop'):WaitForChild('ShopFrame')
1 Like

Like this, or without the rest underneath?

hang on…

1 Like

Looks good, just rename ShopGui with ShopFrame.


THANK YOU! I just realized that too!

1 Like

You’re welcome!
(char limit …)

1 Like