GUI frame never shown by clicking the text button

Hello fellow devs!

Now I am developing the following experience:
Samurai Era Wonderland

This experience has many places to go and so I have added Teleport button on the righthand side so that a player can open/close the menu frame shown below by clicking or tapping.

For that I created the local script and scripted as follows:

However, when I test play, the menu never open by clicking the button.
And no error is shown on the Output Screen.

I will appreciate if someone help me.

1 Like

How are you defining teleportMenuFrame?

1 Like

Thank u for ur quick replay.
I defined it as follows:

The issue is related to how you defined the variable, as suspected.
The version you are modifying the visibility of is StarterGUI, however you should be accessing PlayerGui instead!

Just replace StarterGui with game.Players.LocalPlayer.PlayerGui, or using your existing variables, player.PlayerGui

2 Likes

Thank u so much for ur help!
I could solve the problem.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.