GetMarkerReachedSignal is a signal/method for an AnimationTrack, not animations. You’ll probably have to load your animation and then play it manually. The code below should work for you. I also recommend using the DidLoop event for this if the animation is on a loop
local Animation;
Animation:GetMarkerReachedSignal("LeftFoot"):Connect(function()
--Main code here
end)
local Animation = script.Parent.Humanoid:LoadAnimation(script.Parent.Animate.walk.RunAnim)
Animation:GetMarkerReachedSignal("LeftFoot"):Connect(function()
--Main code here
end)
I thought you were using your own walk animation with an animation event named “LeftFoot”. This will never work because well it doesn’t have that event. Try this:
local AnimationTrack;
Animation.DidLoop:Connect(function()
end)
No. An animator is the instance that handles animations. Should be in every humanoid try using the method :LoadAnimation on it it never disappears and shouldnt be destroyed since that prevents any animation being loaded
I AM using my own walking animation where i added the animation events, and i put this is the npcs animate script under the walk property for the animation.
The thing is you have to play that animation by yourself. Roblox will internally play its own Animation Track and you will have your own when you load yours. These two are not the same so the animation events of roblox’s walk anim track wont fire to you