How to make a sound play when a proximity prompt is triggered

hey can so can someone help me I want to make a sound play when a proximity prompt is triggered

Please read the documentation and attempt things yourself first before posting. The API reference pages on ProximityPrompt can show you what events exist for proximity prompts. Additionally, I am quite sure that the demo place also has a sound that plays when prompts are triggered which you could reference if you wanted to know how to accomplish this.

3 Likes

put the proximity prompt inside the part and then make a script
Also make sure that you have the beta proximity prompt thing enable
Try this:
local sound = script.Sound
workspace.Part.ProximityPrompt.Triggered:Connect(function(player)
sound:Play()

end)

1 Like
game.Workspace.Part.ProximityPrompt.Triggered:Connect(function(player)
   game.SoundService.insertsoundnamehere:Play()
end)

wherever your part is make sure to change “.Workspace” to where ever it is and that the sound is in SoundService unless you change it

8 Likes