From what I know about ProximityPrompt, it does not have a property that could somehow give you the solution to this problem. Again, I am unsure, I recommend reading the post about ProximityPrompt as there may be a solution there: Proximity Prompts | Documentation - Roblox Creator Hub
I want the default Proximity Prompt to be shown when the player approaches the object
When the player presses ‘E’, the Gui must be hidden (but the Proximity Prompt must remain active)
If I set the Enabled property to false, PromptHidden will be executed and that is not right because the prompt is still active. PromptHidden should only be executed when the player presses ‘E’ again (or when he moves away from the object).
In short: how to disable Proximity Prompt Gui after the player presses ‘E’ (and not run PromptHidden)?`
Edit
Nvm, I found out how to disable Proximity Prompt Gui after the player presses ‘E’ (and not run PromptHidden):
Inside ProximityPromptService.PromptTriggered, set game.Players.LocalPlayer.PlayerGui.ProximityPrompts.Prompt.Enabled = false