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
 

Tool not equipped yet still able to activate?

Previous Thread :: Next Thread 
DecimaPrism is online. DecimaPrism
Joined: 28 Aug 2014
Total Posts: 95
23 Apr 2016 08:04 PM
my sword Im working on is still able to swing (using an animation) and activate even though I dont have it equipped.

What have I done wrong?
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
23 Apr 2016 08:05 PM
Have a bool which records if its equipped. Then in your swing function check if it's true.



Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
23 Apr 2016 08:05 PM
I thought we already fixed this man... :l



Report Abuse
DecimaPrism is online. DecimaPrism
Joined: 28 Aug 2014
Total Posts: 95
23 Apr 2016 08:29 PM
Nope, thread just dropped to oblivion.
Report Abuse
DecimaPrism is online. DecimaPrism
Joined: 28 Aug 2014
Total Posts: 95
23 Apr 2016 08:30 PM
tool.Equipped:connect(function()
if tool.Active == true then
return
end
tool.Active = true
Idle = Humanoid:LoadAnimation(script.Sword_Ready)
UnsheathSound:play()
Idle:Play()
end)

so like this? Kinda like this? nope?
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