if StaminaValue.Value ~= 0 then
tool.Activated:connect(function()
if humanoid and humanoid.Health > 0 then
activated = true
if Swing1Play.Value ~= true then
Swing1Play.Value = true
playSwing1 = humanoid:LoadAnimation(swing1)
playSwing1:Play()
swooshSound:Play()
StaminaValue.Value = StaminaValue.Value - 5
wait(.7)
Swing2Play.Value = false
activated = false
tool.Activated:connect(function()
if humanoid and humanoid.Health > 0 then
activated = true
if Swing2Play.Value ~= true and playSwing1 then
Swing2Play.Value = true
playSwing2 = humanoid:LoadAnimation(swing2)
playSwing2:Play()
swooshSound:Play()
StaminaValue.Value = StaminaValue.Value - 5
wait(.7)
Swing3Play.Value = false
activated = false
tool.Activated:connect(function()
if humanoid and humanoid.Health > 0 then
if Swing3Play.Value ~= true and playSwing2 then
Swing3Play.Value = true
activated = true
playSwing3 = humanoid:LoadAnimation(swing3)
playSwing3:Play()
swooshSound:Play()
StaminaValue.Value = StaminaValue.Value - 5
wait(.7)
Swing4Play.Value = false
activated = false
tool.Activated:connect(function()
if humanoid and humanoid.Health > 0 then
if Swing4Play.Value ~= true and playSwing3 then
Swing4Play.Value = true
activated = true
playSwing4 = humanoid:LoadAnimation(swing4)
playSwing4:Play()
swooshSound:Play()
StaminaValue.Value = StaminaValue.Value - 5
wait(.7)
Swing1Play.Value = false
activated = false
end
end
end)
end
end
end)
any help is greatly appreciated

1 comment
'~=' means 'not equal to'. '==' means 'equal to'. http://wiki.roblox.com/index.php?title=Conditional_statement#Getting_started