1 | game.workspace.Part.ProximityPrompt:Connect( function (player) |
2 | print ( "you held E" ) |
3 | 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
1 | workspace.Part.ProximityPrompt.Triggered:Connect( function (var) |
2 | print ( "triggered!" ) |
3 | 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