Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Isn't My Sword Damaging The Opponent???

Asked by
s1muIate -35
5 years ago

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)

0
"script.Parent.Damage.Value"? is it like an interger value or a nimber value? Tizzel40 243 — 5y
0
number s1muIate -35 — 5y
0
Do you have an animation in the sword? spot6003 64 — 5y

Answer this question