Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Unable to open shop GUI after closing?

Asked by 3 years ago
Edited 3 years ago

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

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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?

0
Glad I could help! Krektonix_Youtube 85 — 3y
Ad

Answer this question