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
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 12569 |
|
| |
|