im entering this script into an animation controller in an npc and it wont work why wont it work?

local animController = Instance.new("AnimationController")
local animTrack = animController:LoadAnimation(animation)
animTrack:Play(337868735)

4 comments

0

pls help i rlly need it

0

You don't type the ID in the parameters of Play... You should say animController.AnimationId = 337868735 before you call "Play()"

0

like this? local animController = Instance.new("AnimationController") local animTrack = animController:LoadAnimation(animation) animController.AnimationId = 337868735 animTrack:Play()

0

ima repost this