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: URGENT GOTTA GET OFF IN A FEW MINUTES

Previous Thread :: Next Thread 
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
22 May 2017 11:53 PM
how do I make it stop the sword animation after the player unequips the sword?


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
TakeALookInTheMirror is not online. TakeALookInTheMirror
Joined: 25 Dec 2011
Total Posts: 16463
22 May 2017 11:54 PM
"the sword"

what sword




Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
22 May 2017 11:55 PM
CanAttack = true
CanDamage = true

script.Parent.Activated:connect(function()
local AnimationActivated = script.Parent.Parent:FindFirstChild("Humanoid"):LoadAnimation(script.Activated)
if CanAttack == true then
CanAttack = false
AnimationActivated:Play()
wait(1)
AnimationActivated:Stop()
CanAttack = true
CanDamage = true
end

end)

script.Parent.Equipped:connect(function()

end)

script.Parent.Handle.Touched:connect(function(hit)
if CanDamage == true then
CanDamage = false
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:TakeDamage(10)
end
end
end)


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
22 May 2017 11:56 PM
Make variable outside equip/unequip events - set variable inside equip event to animtrack. Play `Stop` function on variable in unequip event.


Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
22 May 2017 11:59 PM
what


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:00 AM
come on :/


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
TakeALookInTheMirror is not online. TakeALookInTheMirror
Joined: 25 Dec 2011
Total Posts: 16463
23 May 2017 12:02 AM
can't explain easier than what Goul said


Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:04 AM
i am not that good its really advanced what he said


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:09 AM
come on guys i gotta hurry
this subforum is so dead


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
TakeALookInTheMirror is not online. TakeALookInTheMirror
Joined: 25 Dec 2011
Total Posts: 16463
23 May 2017 12:10 AM
that isn't really advanced, read this if you don't understand how animations work:

wiki.roblox.com/index.php?title=Animations#Using_Animation_in_Games
wiki.roblox.com/index.php?title=API:Class/AnimationTrack


Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:11 AM
make what kind of variable


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:16 AM
error

CanAttack = true
CanDamage = true
v = animationtrack
script.Parent.Activated:connect(function()
local AnimationActivated = script.Parent.Parent:FindFirstChild("Humanoid"):LoadAnimation(script.Activated)
if CanAttack == true then
CanAttack = false
AnimationActivated:Play()
wait(1)
AnimationActivated:Stop()
CanAttack = true
CanDamage = true
end

end)

script.Parent.Equipped:connect(function()
v = animationtrack
end)

script.Parent.Handle.Touched:connect(function(hit)
if CanDamage == true then
CanDamage = false
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:TakeDamage(10)
end
end
end)


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:19 AM
a


R$0 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:20 AM
b


R$0 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:20 AM
c


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:20 AM
d


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:21 AM
e


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:21 AM
f


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:21 AM
g


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
Baseness is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
23 May 2017 12:21 AM
you bumped your thread 5 times within a minute

that is called spam




Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:21 AM
h


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:22 AM
nobody is active on this forum


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
Baseness is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
23 May 2017 12:22 AM
this is also called post farming

reported


Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:22 AM
i


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
23 May 2017 12:22 AM
how am i post farming i need help


R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity
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