This is really confusing as I only need it to play Once, but whenever I collide, it replays the sound.
Here's What I have so far:
local Sound = script.Parent.Sound
local Set = false
function onTouched(hit)
if Set == false then
Sound:Play()
elseif Set == true then
Sound:Stop()
wait(3)
Sound:Stop()
Set = true
Help is Greatly appreciated.

1 comment
-1 for not explaining your solution.