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 can I equip a tool without it appearing in my hand?

Previous Thread :: Next Thread 
ZekeZeth is not online. ZekeZeth
Joined: 23 Jan 2014
Total Posts: 2866
05 Oct 2016 11:13 PM
I have designed one animation to portray the character drawing a sword from his/her back. The animation includes me reaching up around my back and pulling the sword out, however when I start the animation the sword appears in my hands when I haven't even pulled it out. Is there a way to make the sword not appear until the second half of the animation is played?

The animation plays when the tool is Equipped. Is there a way to make the sword not visible when the tool is equipped?


All of honor's wounds are self-inflicted.
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
05 Oct 2016 11:18 PM
You can make the bricks in the model transparent,
wait(time)
then make them visible using transparency

may seem like a hacky solution, and take a couple tries messing w/ timing but I think that would be the easiest way with roblox animations.


Report Abuse
ZekeZeth is not online. ZekeZeth
Joined: 23 Jan 2014
Total Posts: 2866
05 Oct 2016 11:20 PM
yeah, that's what i've done for the time being. it will just be a pain to fine-tune every single script if i wanted to use it for different tools. i just wish there was a solution that could adapt to other cases


All of honor's wounds are self-inflicted.
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
05 Oct 2016 11:24 PM
Yeah, sorry I couldn't think of something better.



Report Abuse
ZekeZeth is not online. ZekeZeth
Joined: 23 Jan 2014
Total Posts: 2866
05 Oct 2016 11:24 PM
all good man, thank you for pitching in!


All of honor's wounds are self-inflicted.
Report Abuse
ScripterJohn13 is not online. ScripterJohn13
Joined: 01 Jan 2010
Total Posts: 5658
05 Oct 2016 11:33 PM
you could use a hopper bin and keep the sword always attached to the player's back... then when hopper bin is selected you can activate the animation and on second half manually change the weld from the player's back to the player's arm... when deactivated put it back as you found it... voila.
Report Abuse
qqtt991 is not online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
06 Oct 2016 12:27 AM
I think you could do some fancy stuff with this event to detect precisely when you want the sword to become visible. You just need to give the keyframe you're looking for a unique name.
KeyframeReached ( string keyframeName )

http://wiki.roblox.com/index.php?title=API:Class/AnimationTrack


Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
06 Oct 2016 12:30 AM
The problem is, the keyframe would change depending on which sword he pulls out, if they're different sizes. *i think*


Report Abuse
qqtt991 is not online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
06 Oct 2016 12:31 AM
If he uses the same animation for all swords, the keyframe will not change. Even if he changes the animation though, all he needs to do is remember to include the named keyframe.


Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
06 Oct 2016 12:32 AM
But depending on the size of the sword, the keyframe that the sword should appear would change, no?

ie smaller swords would appear faster, and longer swords would take longer.

Yours is the best solution presented so far though!


Report Abuse
qqtt991 is not online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
06 Oct 2016 12:34 AM
Well I mean, unless he's pulling some Sephiroth-levels of crazy when it comes to his swords, the difference is unlikely to be significant. It really comes down to experimentation, however.


Report Abuse
ZekeZeth is not online. ZekeZeth
Joined: 23 Jan 2014
Total Posts: 2866
06 Oct 2016 01:10 AM
Thank you for all of the help guys!


All of honor's wounds are self-inflicted.
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