I am working on a home store, and I want to open a buy/try GUI by changing its visibility, but it doesn't work for me. It only works if I open the GUI manually from the explorer while in-game.
p = game.Players.LocalPlayer
Frame = p.PlayerGui.BuyGUI.Frame
script.Parent.ClickDetector.MouseClick:Connect(function()
Frame.Visible = true
end)

9 comments
Hmm, it doesn't work for me. I think it's because the gui is in workspace, and not in the StarterGui. So it won't get in the PlayerGui.
Yes
make sure the frame is visible first
The script it self does not make the frame visible it puts the ui in playergui when the frame is visible, and when you click the brick again it gets destroyed.
Oh yeah sorry I was just dumb and made a mistake. I got it to work now, thank you so much! But do you know how do locate a model in workspace that doesn't have a name? Or at least just disable the display name of a Humanoid.
i don't
Wait I do
I figured it out now, so don't worry :)
k