Basically, I want to connect to the animation to see if it reaches a certain marker, lets say the marker’s name was “Cheese” and I want to “Pause/AdjustSpeed(0)” so:
MyAnimation:GetMarkerReachedSignal("Cheese"):Connect(function()
-- My code/blablabla
end)
I was wondering, would It get disconnected after the animation stops/I Stop() it/ would It cause memory leaks?
Thats quite annoying, what would be the best way to disconnect it? Would it be just to do a normal Disconnect() right after its finished? (The animation is gonna happen multiple times)
Animation connections are still RBXScriptSignals, so they fall under the same rules as any other connection. If the object still exists, then so will the connection. Destroy objects you don’t need anymore and disconnect connections you don’t need.