Can I load animations on NPC in startergui locally?

I just want to know if you can load animations into an NPC that is parented in startergui if not how can I load animations while the NPC parent is in startergui!

Are you referring to a StarterCharacter model?

No, I’m trying to make an animation preview gui but sadly the animation doesn’t play when its parented to replicated storage or in a viewportframe in a screengui. When I parent the NPC into workspace the animation starts working.