How to make a double click function?
Yes I know I asked this yesterday but I didnt get a lot of people to help me. And Im kind of confused on where the ticks should go so may I get some help please? And if you get a kind of line I should put in my script can you tell which line number I should put it in? And which script should I put it in?
My script for attacking:
1 | script.Parent.DamagePart.Touched:Connect( function (p) |
2 | if script.Parent.CanDamage.Value = = true then |
3 | script.Parent.CanDamage.Value = false |
4 | p.Parent.Humanoid:TakeDamage( 10 ) |
6 | script.Parent.CanDamage.Value = true |
My LocalScript:
03 | script.Parent.Equipped:Connect( function () |
04 | local Idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle) |
05 | local Slash = script.Parent.Parent.Humanoid:LoadAnimation(script.Slash) |
10 | script.Parent.Activated:Connect( function () |
11 | local Idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle) |
12 | local Slash = script.Parent.Parent.Humanoid:LoadAnimation(script.Slash) |
14 | if CanAttack = = true then |
22 | script.Parent.CanDamage.Value = true |