Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago
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

Log in to vote
2
Answered by
oSyM8V3N 429 Moderation Voter
3 years ago

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

0
Woweee :o DiamondComplex 285 — 3y
Ad

Answer this question