local player = game.Players:GetChildren()[1]
local character = game.Workspace:WaitForChild(player.Name)
local humanoid = character:WaitForChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://437855404"
local animTrack = humanoid:LoadAnimation(anim)
animTrack:GetKeyframeReachedSignal("FootStep"):Connect(function(value)
print(value)
end)
animTrack:Play()
Uses GetKeyframeReachedSignal, which doesn’t exist (not to mention, it isn’t what the article is about).
As you can see in the blue highlighted portion, the event it calls is for GetKeyframeReachedSignal when it should be GetKeyframeMarkerSignal. I’ve tried both in studio to be sure and only the Marker event works.
Hey guys, sorry this got buried and ignored. I’ve went ahead and updated the code sample, which should be visible soon. You can check out this post for the updated code sample and a link to an example model which should answer your questions: