Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I am having some trouble with the new proximity prompt, its very simple?

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

1 answer

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

1 comment

0

Woweee :o

This discussion is preserved as it was. New answers, comments, and votes are closed.