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
 

How to make a tool unequippable?

Previous Thread :: Next Thread 
Haydenfire098 is not online. Haydenfire098
Joined: 14 Jul 2011
Total Posts: 810
10 Jul 2017 02:54 PM
I need to know how to make a tool unequippable for an attack animation so it doesn't get all messed up.
Report Abuse
Rakonus is not online. Rakonus
Joined: 19 Dec 2014
Total Posts: 1004
10 Jul 2017 02:56 PM
Why not just make it so that the animation stops if the player unequips?


Rakonus#5327
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
10 Jul 2017 02:56 PM
One hacky way to do this is to set the tool's ManualActivationOnly property to 'true'. When that property is set, the tool can only be equipped by explicitly invoking the "Activate" method. And so, by proxy, your tool will be unequippable.


Example:

someTool.ManualActivationOnly = true
Report Abuse
Haydenfire098 is not online. Haydenfire098
Joined: 14 Jul 2011
Total Posts: 810
10 Jul 2017 03:00 PM
Sorry Im an idiot. I meant Not unequippable, so like someone can't unequip the tool while it's being used.
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
10 Jul 2017 03:46 PM
Same thing then, but toggle the property when the tool is activated.
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