game.workspace.Part.ProximityPrompt:Connect(function(player) print("you held E") end)
And the workspace has game->workspace->Part->ProximityPrompt->Script
the error code is
" Connect is not a valid member of ProximityPrompt "Workspace.Part.ProximityPrompt" - Server - Script:1 "
Thanks
In order to trigger a ProximityPrompt, you'll have to do a .Triggered event.
Lastly, it should come out like this
workspace.Part.ProximityPrompt.Triggered:Connect(function(var) print("triggered!") end)
If you scroll down, it'll show you all the cool things you can do with this new feature being rolled out from beta!
Good luck!, hope this helped