How to make a Sound play when E is pressed or hold:

Publicado 2024-03-22
--The script:
--Get the locals
local Part = script.Parent
local Sound = Part.Sound
local Prompt = Part.Prompt
Prompt.Triggered:Connect(function(Player)
Sound:Play(Player)
end)