How do I make GetMarkerReachedSignal listen for any Marker?

Just wondering if it’s possible to use one connection to listen out for any marker.

PlayAttack:GetMarkerReachedSignal(""):Connect(function(MarkerName)
  if MarkerName == "Damager" then
    print("1a")
  end
  if MarkerName == "Boost" then
    print("1b")
  end
end)
PlayAttack:GetMarkerReachedSignal(""):Connect(function(MarkerName)
  if MarkerName == "Damager" then
    print("1a")
  elseif MarkerName == "Boost" then
    print("1b")
  end
end)
1 Like

Yeah, I figured it out now I was on the wrong track thanks

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.