These lines of code work perfectly fine, however it just seems really “messy” and inefficient. I was wondering, if there is a more efficient method to do the same thing?
local LoadedAnim = Animator:LoadAnimation(Anim)
while LoadedAnim.Length == 0 do RunService.Heartbeat:Wait() end
Len = LoadedAnim.Length