Just wrote this into RbxCharacterSounds, in the initializeSoundSystem function:
local function keyFrameReached(frameName)
if frameName == "WalkSound" then
print("lol")
end
end
humanoid.Animator.AnimationPlayed:Connect(function(anim)
anim.KeyframeReached:Connect(keyFrameReached)
end)
This works, but is there any possible memory leaks here?