Proximity Prompt works only once when Triggered

Basically, proximity prompt works really perfect and opens the gui but the next time it does not open.

The script i wrote:

local prox = script.Parent.Parent.ProximityPrompt
prox.Triggered:Connect(function(plr)
         plr.PlayerGui.MainUI.TransferUI.Visible = true
      end)

This is the only the issue above, how do i fix it?

How are you closing the ui?

?

The UI includes a close button that closes, that is it and then proximity refuses to open

is the proximity using a server script?

and what type of script is the close script?

Yes, to transfer balance to player, local script

Then you would need to close it on the server too

3 Likes

Okay, I am going to see if that works!

1 Like

Thank you! it worked from server-side!