function onTouched(hit)
script.Parent.Ghost:play()
end
script.Parent.Touched:connect(onTouched)
Whenever someone will touch this, it will play the sound or will play 'Ghost'
But the problem is, the song will repeat and repeat if someone keeps jumping and stepping on the brick.
So can you guys help me with this?

3 comments
Will it play only once?
It will be able to be played again once it has finished for the first time, but it will not play multiple times in a row without stopping first. (i.e. it has to be reactivated after it finishes)
yes that is correct.