|
| 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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 22 May 2017 11:59 PM |
what
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:00 AM |
come on :/
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:02 AM |
can't explain easier than what Goul said
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 23 May 2017 12:11 AM |
make what kind of variable
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 23 May 2017 12:19 AM |
a
R$0 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:20 AM |
b
R$0 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:20 AM |
c
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:20 AM |
d
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:21 AM |
e
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:21 AM |
f
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:21 AM |
g
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 23 May 2017 12:21 AM |
h
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:22 AM |
nobody is active on this forum
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
Baseness
|
  |
| Joined: 07 Oct 2015 |
| Total Posts: 1001 |
|
|
| 23 May 2017 12:22 AM |
this is also called post farming
reported
|
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:22 AM |
i
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|
|
| 23 May 2017 12:22 AM |
how am i post farming i need help
R$16,226 | aka CyanSparkleTime \ Evercyan \ Sparklexity |
|
|
| Report Abuse |
|
|