Hi I'm made a shop GUI. All the buttons work like giving you the item and taking away the points but for some reason the GUI will only open in studio not the published game.
Cheers
This is the code to open and close the Shop.
Button = script.Parent ok = script.Parent.Parent.ok Open = true function OnButtonClick() if Open == true then Button.Text = "Close" ok.Visible = true Open = false elseif Open == false then Button.Text = "Shop" ok.Visible = false Open = true end end script.Parent.MouseButton1Down:connect(OnButtonClick)
I suggest just changing the function to Button.MouseButton1Click:connect(function(). You would also be able to remove the final line at the end using this.