Need to open a gui using a proximityprompt, close it using a textbutton.
Essentially, i can open the gui with the proximityprompt, but after closing it using the close button, i cannot open it.
I cant really figure out much but to ask since I am far from a programmer, and do not know whats wrong. I would assume its just something making the game think that the close button is held rather than pushed.
Open script
local gui = game.workspace.ToolShopPart.ProximityPrompt
local shop = script.Parent.ToolShop.Frame
gui.Triggered:Connect(function()
script.Parent.ToolShop.Frame.Visible = true
end)
The closescript is a local script inserted within the textbutton,
The openscript a script that is inserted within startergui, that references a proximityprompt in workspace.
Your opening the gui on the server, but closing it on the client. The client doesn’t change anything on the server. So, when the server is told to make it visible, it doesn’t. This is because on the server, nothing ever changed due to the fact the closing was on the client.