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
 

Need Help with Animations

Previous Thread :: Next Thread 
rookie423 is not online. rookie423
Joined: 27 Apr 2011
Total Posts: 3398
12 Jun 2017 08:44 PM
I made a custom animation (guitar strumming) and I want it to play for an NPC. How do I do that?
Report Abuse
EpicDober is not online. EpicDober
Joined: 29 May 2017
Total Posts: 288
12 Jun 2017 08:47 PM
I am gud at animating C:


Lizards Are Cool
Report Abuse
PoptartNoahh is not online. PoptartNoahh
Joined: 06 Jul 2015
Total Posts: 11063
12 Jun 2017 08:47 PM
make sure theyre not anchored and stuff #################################################
Report Abuse
rookie423 is not online. rookie423
Joined: 27 Apr 2011
Total Posts: 3398
12 Jun 2017 08:50 PM
None of this is helping. The animation is currently resting in a model called AnimSaves in the NPC itself. How do I take the animation saved in there and put it as the idle animation?
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
12 Jun 2017 08:51 PM
u cant use the anim save, that is only used in the animation player to load saved animations u need to export it, make a new animation with its animation id set to the ### of the exported animation then u need to call LoadAnimation on the humanoid of the npc to load the animation, and then play the loaded animation
Report Abuse
rookie423 is not online. rookie423
Joined: 27 Apr 2011
Total Posts: 3398
12 Jun 2017 09:00 PM
I need a Scripting-For-Dummies version of that with step-by-step xD
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
12 Jun 2017 09:02 PM
export

make an animation with the id of exported animation

load animation

play loaded animation

and there is also a wiki article on this literally just google 'Animations site:wiki.roblox.c00m' --replace with what its supposed to be lol
Report Abuse
EpicDober is not online. EpicDober
Joined: 29 May 2017
Total Posts: 288
12 Jun 2017 09:02 PM
for robux i'll make you one :P


Lizards Are Cool
Report Abuse
rookie423 is not online. rookie423
Joined: 27 Apr 2011
Total Posts: 3398
12 Jun 2017 09:08 PM
I'm broke on ROBUX and I'm not in need to buy one. I just need to be able to set mine up on an NPC to run by default. I think I got it, I'll leave a crash report down here if anything goes wrong.

Crash report:
1. Created object "Animation" and put it into the Model which is the NPC and added the animation ID of the exported animation
2. Pressed "Play" to test it out
3. Still frozen.

I have to be forgetting something so simple because I'm being stupid.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
12 Jun 2017 09:09 PM
'load animation

play loaded animation'
.-.
if u even read the wiki article u would find out urself
take some time to read it plz
Report Abuse
rookie423 is not online. rookie423
Joined: 27 Apr 2011
Total Posts: 3398
12 Jun 2017 09:23 PM
Right now I got a Local Script in the model of the NPC and have this written in it:

local animTrack = Humanoid:LoadAnimation(GuitarStrumming)
animTrack:Play()

Trying to figure out the rest of the prompts on the wiki still.

Report Abuse
rookie423 is not online. rookie423
Joined: 27 Apr 2011
Total Posts: 3398
12 Jun 2017 09:51 PM
Never mind. I found an easier source for animation the NPC. Now it works! I'm very proud that I actually figured something out today! :D
Report Abuse
AaronHyperCubed is not online. AaronHyperCubed
Joined: 07 Jan 2012
Total Posts: 1400
12 Jun 2017 10:01 PM
#local animation = Instance.new("Animation") #animation.AnimationId = ########################################## # #local animTrack = Humanoid:LoadAnimation(animation) #animTrack:Play() Source: ################################################# Import { AaronHyperCubed } from 'roblox-users';
Report Abuse
AaronHyperCubed is not online. AaronHyperCubed
Joined: 07 Jan 2012
Total Posts: 1400
12 Jun 2017 10:02 PM
Let me try that again

local animation = Instance.new("Animation")
animation.AnimationId = "(AnimationURL)"

local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()

Found on the roblox wiki animations page.


Import { AaronHyperCubed } from 'roblox-users';
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