Humanoid:GetPlayingAnimationTracks example is incorrectly documented

The example in Humanoid:GetPlayingAnimationTracks is incorrectly documented
Link to the page: Humanoid | Documentation - Roblox Creator Hub

The example in the page:
local animationTracks = {}
local track = humanoid:LoadTrack(animation)
table.insert(animationTracks, track)

Includes Humanoid:LoadTrack, which doesn’t exist and should be replaced with Humanoid:LoadAnimation

6 Likes

I was looking through GetPlayingAnimationTracks after getting the link to reply to a question and I noticed that this mistake still exists. Would be nice to have this fixed as animation work has become significantly more prevalent nowadays.

1 Like

Updated the code sample. Thank you for pointing it out and @colbert2677 for the bump.

1 Like

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