I have a custom npc model which i animated using a server script. The animation works in the studio but when i play the actualy game it doesn't work?


--//Walk Animation
local walkAnimation = Instance.new('Animation')
walkAnimation.AnimationId = "rbxassetid://2697966973"
local load = myHum:LoadAnimation(walkAnimation)

load:Play()

This is my simple code that i placed inside a server script which is inside the model.

5 comments

0

Okay, if it's a group game, is the animation in group creations and if it's your own place is it in your creations?

0

Your hum can't load the animation, put a hum inside of the npc and load it there, also I believe only localscripts can run animations?

0

There is a humanoid inside the npc

0

And yes it's in team create and i created it but that won't affect the animation when people play the actual game.

0

Interesting