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

playing animation in npc wont work? help

Asked by 8 years ago

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)
0
pls help i rlly need it smashfighter2 0 — 8y
0
You don't type the ID in the parameters of Play... You should say animController.AnimationId = 337868735 before you call "Play()" fishguy100 135 — 8y
0
like this? local animController = Instance.new("AnimationController") local animTrack = animController:LoadAnimation(animation) animController.AnimationId = 337868735 animTrack:Play() smashfighter2 0 — 8y
0
ima repost this smashfighter2 0 — 8y

Answer this question