Won't damage the opponent. :( What did I do wrong?

script.Parent.Handle.Blade.Touched:Connect(function(hit) if script.Parent.IsPaused.Value == false then if game.Players:GetPlayerFromCharacter(hit.Parent) then local humanoid = hit.Parent.Humanoid humanoid.Health:TakeDamage(script.Parent.Damage) script.Parent.IsPaused.Value = true wait(1) script.Parent.IsPaused.Value = false end end end)

3 comments

0

"script.Parent.Damage.Value"? is it like an interger value or a nimber value?

0

number

0

Do you have an animation in the sword?