Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The animation for my model only plays in the studio?

Asked by
Sorukan 240 Moderation Voter
5 years ago

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.

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? TypicallyPacific 61 — 5y
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? Ziffixture 6913 — 5y
0
There is a humanoid inside the npc Sorukan 240 — 5y
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. Sorukan 240 — 5y
0
Interesting Ziffixture 6913 — 5y

Answer this question