joopi132
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 21 |
|
|
| 21 Oct 2017 02:42 PM |
Works in studio doesnt work ingame (localscript) local CanAttack = true
script.Parent.Activated:connect(function()
local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)
if CanAttack == true then
attack:Play()
CanAttack = false
wait(1)
attack:Stop()
CanAttack = true
script.Parent.CanDamage.Value = true
end
end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Oct 2017 02:47 PM |
| First, where do you have this localscript in your project? Under StarterPlayerScripts or elsewhere? |
|
|
| Report Abuse |
|
|
joopi132
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 21 |
|
|
| 21 Oct 2017 02:58 PM |
| Everything works fine its just it doesnt do damage anymore... |
|
|
| Report Abuse |
|
|