Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Unable to open shop GUI after closing?

I found this script on devfourms and decided to use it to open a GUI with a proximityprompt. I can open the GUI at first but after I close it, I couldn't

Edit: I forgot to mention, this is a local script in StarterGUI

local shop = script.Parent
local button = shop.Background.ImageButton

local prompt = workspace.krxtenaa.PromptPart.ProximityPrompt

prompt.Triggered:Connect(function()
	shop.Enabled = true
end)

button.Activated:Connect(function()
	shop.Enabled = false
end)

1 answer

✓ Accepted answer

Maybe just put ifs? Like if shop.Enabled = true then shop.Enabled = false, could help?

Or maybe the proximity is de-enabling so you can't do it again? What does your output say?

1 comment

0

Glad I could help!

This discussion is preserved as it was. New answers, comments, and votes are closed.