Hey all, I want to play an audio loop simultaneously with a while loop but however, it restarts every time the while loop starts again and that’s not what I am trying to achieve, what I want is it plays while the loop is going on, not every time the loop restarts.
if humanoid and victimhead then --if script found humanoid and head, searches for something only players have
while (victimhead.Position - head.Position).magnitude < 5 and humanoid.Health > 0 do
scaredsound:Play()
if anger < 100 then
anger = anger + 1
print(anger)
wait(1)
end
end
scaredsound:Stop()
end