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?
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
I’m not very good at GUI but you can try this:
script.Parent.MouseButton1Click:Connect(function(Clicked)
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
end
end)
It is local script (where you showed it I just edited it)
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
or
local Gui = script.Parent.Gui
Can you provide your script please? This is scripting support after all
They provided their script, at the end of the video.