I need help with my Proximity Prompt?!

Hi Developers! How are you all today? I have a bug, and nothing is showing in the output? So I’m using the Proximity Prompt, and it works bringing up my GUI, but when I close the GUI, and try and re-use the Prompt, it won’t work. The E to Teleport seems to be a 1 time use, has anyone got the solution to this problem?

Here’s the script!

local GUI = game.Workspace.TouchTPOutsideLobby.ProximityPrompt

local TP = script.Parent.OustsideLobbyTPMain.OutsideLobbyTP

GUI.Triggered:Connect(function()

TP.Visible = true

end)

Thank you all!

its because the proximityprompt script is changing the Visible property from the server and the close button is only changing it for your client,
make the close button in the GUI fire a remote event to a Server Script which changes the Visible property of the GUI to false

1 Like

Thanks for your reply! I will try that later and tell you how It went.