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 » Scripting Helpers
Home Search
 

Re: How to use an animation?

Previous Thread :: Next Thread 
skyarex is not online. skyarex
Joined: 21 Mar 2010
Total Posts: 12989
08 Dec 2013 07:33 AM
I just made an animation that is intended to play right after I equip a weapon. But I don't know how to use the animation. I have saved it. Help?

"Don't Panic"- HHGTTG
Report Abuse
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
08 Dec 2013 08:07 AM
Firstly, the animations are hashed. Cut/pasting them to a different place will wipe the hash, thus the animation becomes useless.

humanoid:LoadAnimation(animHere):Play()
Report Abuse
hinmanthunderboy is not online. hinmanthunderboy
Joined: 10 Jan 2010
Total Posts: 225
08 Dec 2013 08:11 AM
@Unsub

Do you use the Animation object that ROBLOX provides and what do you do with the StringValue?
Report Abuse
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
08 Dec 2013 08:12 AM
The StringValue from what I gathered so far is completely useless, use the Animation instance.
Report Abuse
hinmanthunderboy is not online. hinmanthunderboy
Joined: 10 Jan 2010
Total Posts: 225
08 Dec 2013 08:14 AM
And how what would the function be?


(Sorry for sounding neewbish :P; I do GUI scripting & animations)
Report Abuse
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
08 Dec 2013 08:20 AM
well, uhm:

function runAnim(hum,anim)
hum:LoadAnimation(anim):Play()
end

local humanoid=workspace.Player1.Humanoid
local animation=humanoid.Parent.Animation1

runAnim(humanoid,animation)
Report Abuse
skyarex is not online. skyarex
Joined: 21 Mar 2010
Total Posts: 12989
08 Dec 2013 01:44 PM
What does hashed mean?

"Don't Panic"- HHGTTG
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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