Needing help with character hitting object that plays sound but loops if stuck on object (with do once added)

How would I do that? I know the on hit and and the sound 2D part, just a bit unsure on the if function (and how to set one up)

1 Like