GUI not working

Hi everyone

I have a problem when making a GUI shop this video will explain:

As you can see something is broken, So can someone explain what is wrong?

I have a tutorial on how to make a shop, see it here:

You can at least take the code in it, it seems to work :man_shrugging:

1 Like

I’m not very good at GUI but you can try this:

  local shop = game.StarterGui.ScreenGui
if shop.Visible == false then
shop.Visible = true

else if
shop.Enabled == false then
shop.Enabled = true
shop.Visible = true

It is local script (where you showed it I just edited it)

  1. Try not to post videos but just post small snipits of your explore tab, and paste your code as text.

Second, Your issues is that you’re modifying the gui in StarterGui, StarterGui is where the gui sits before it gets cloned over. You need to be modifying the Gui in PlayerGui, you can usually get it by:

local Player = game.Players.LocalPlayer
local Gui = Player.PlayerGui.Gui

local Gui = script.Parent.Gui
1 Like

Can you provide your script please? This is scripting support after all

They provided their script, at the end of the video.

Using shop.Visible = not shop.Visible will do the same thing @Military_games1