GUI won't enable after 1 use

Hello devforum community! Today is the second day of the release for my game Fort Jackson.

There is a feature called bus stops [The devforum helped me fix issues with it!] and for some reason, once you exit the UI it doesn’t work again?

CODE

Bus Stop Interaction Code:

script.Parent.ProximityPrompt.Triggered:Connect(function(player)

player.PlayerGui["Bus stop"].Enabled = true

end)

Bus Stop Close UI Code:
script.Parent.MouseButton1Click:Connect(function()

script.Parent.Parent.Parent.Enabled = false

end)

IMAGES
image

image

Totally stupid and probably not the issue; But instead of using a local script in the close button use a server script so that the server knows its not enabled aswell.

Or vise versa

I believe this is because you’re closing the UI with a LocalScript but opening it with Server Script. When you close it, the server won’t know it’s actually closed. Therefore, the Enabled value won’t actually change to true on the server as it thinks it’s still true.

I’d recommend either making the .MouseButton1Click to close this on the server as well, or alternatively convert the server script to a local script.