generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Help with loading animations into NPCs?

Previous Thread :: Next Thread 
lineridermasterman is not online. lineridermasterman
Joined: 02 Feb 2008
Total Posts: 100
03 Aug 2016 11:31 AM
I'm having an issue where animations don't make any change on the NPC. The script works if I set it to animate myself, but fails to do so with the NPC.

Here's the script:

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=459527842"
local animController = Instance.new("AnimationController",script.Parent.Parent.Dummy)
local animTrack = animController:LoadAnimation(animation)
animTrack:Play()

No errors show up in the output, and I'm desperately trying to get this to work. Help would be great.

Thanks,
Chris.
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
03 Aug 2016 11:32 AM
Animations require a HumanoidRootPart, do you have a HumanoidRootPart in your NPC?


Lead Developer of Theatric Entertainment
Report Abuse
lineridermasterman is not online. lineridermasterman
Joined: 02 Feb 2008
Total Posts: 100
03 Aug 2016 11:33 AM
Yeah, it does.
Report Abuse
lineridermasterman is not online. lineridermasterman
Joined: 02 Feb 2008
Total Posts: 100
03 Aug 2016 11:37 AM
I'll also include that it IS my animation. I've been looking around trying to figure out the issue but still have come to no avail.
Report Abuse
lineridermasterman is not online. lineridermasterman
Joined: 02 Feb 2008
Total Posts: 100
03 Aug 2016 11:44 AM
Alrighty I finally figured it out.

The issue was, I cannot have a humanoid part in the model along with the RootPart, for some reason that was borking the animation.
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
03 Aug 2016 12:07 PM
Interesting, well good job figuring it out.


Lead Developer of Theatric Entertainment
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image