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: How to fire an animation?

Previous Thread :: Next Thread 
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
01 Jul 2015 06:57 PM
I want this animation (http://www.roblox.com/Vault-item?id=264743362) to play ONLY when you jump next to a specific Item. (like a barrier, or small wall) how would I do this?

-Despawned

Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
01 Jul 2015 06:58 PM
Bump
Report Abuse
magicalandre13 is not online. magicalandre13
Joined: 21 Jan 2011
Total Posts: 5327
01 Jul 2015 06:58 PM
Here:

http://wiki.roblox.com/index.php?title=Animations

In the future, do not come to us right away(you uploaded the animation 3 minutes ago)

Do some research.
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
01 Jul 2015 07:02 PM
@magic I dont see anywhere that explains how to do what I described, it mainly talked about how to put it into a player or NPC.


-[Despawned]-
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
01 Jul 2015 07:12 PM
bump2


Report Abuse
Scripterity is not online. Scripterity
Joined: 30 Mar 2014
Total Posts: 677
01 Jul 2015 07:14 PM
if (Char.Torso.Position-Part.Position).magnitude < 5 and Char.Humanoid.Jump == true then
--Scripting stuffz here
--Set Char as the character, and Part as the Part you want to see if they are jumping near it.
end
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
01 Jul 2015 07:16 PM
@script I don't see how that would make an animation play.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Jul 2015 07:21 PM
local humanoid = path to the player's humanoid
local animation = path to the animation instance, should be a descendant of the character, but doesn't have to directly be a descendant (can be inside of a tool)

local animationTrack = humanoid:LoadAnimation(animation)

animationTrack:Play()

http://wiki.roblox.com/index.php?title=API:Class/Humanoid/LoadAnimation
http://wiki.roblox.com/index.php?title=API:Class/Animation
http://wiki.roblox.com/index.php?title=API:Class/AnimationTrack
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
01 Jul 2015 07:38 PM
huh?
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