local tool = script.Parent local Cooldown = script.Cooldown.Value local animation = script.swing
tool.Activated:Connect(function() local humanoid = tool.Parent:FindFirstChildWhichIsA('Humanoid')
if humanoid and Cooldown == false then
Cooldown = true
local playA = humanoid:LoadAnimation(animation)
playA:Play()
script.Parent.sharp.Damage.Disabled = false
wait(.30)
playA:Stop()
script.Parent.sharp.Damage.Disabled = true
wait(.2)
Cooldown = false
end
end)
local player = script.Parent.Parent.Parent local Pteam = player.Team
if Pteam == Red then
print("good")
end

1 comment
What are the errors/error