Current frame detection

It’s okay i fixed it