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

Help with Animating NPCs?

Asked by 10 years ago

How would I apply ROBLOX's standard animations to an NPC? This is the current script:

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=125750544"--Basic idle animation
animation.Parent = script.Parent

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

Done via a Script, not LocalScript. (I heard to do it like this since it isn't a real player/character?)

2 answers

Log in to vote
0
Answered by 10 years ago

I am not sure but i maby think that you have to change http://www.roblox.com/asset/?id=125750544 to rbxassetid://125750544

Ad
Log in to vote
0
Answered by 10 years ago

When I tried this it froze studio..

Answer this question