Does anyone know how to stop my Output from saying -Not a Valid Member?
Asked by
4 years ago Edited 4 years ago
Please encode Lua code in the Lua block code tag (look for the Lua icon in the editor).
So my Output is saying that "Humanoid is not a valid member of Workspace" and Humanoid is a valid member of my dummies and my dummies are in the Workspace. So whats up with that. Is Humanoid only a member in my dummies or what? I don't know? Anyways here is my script.
Normal Script for Damage:
1 | script.Parent.LinkedSwordModel.BladePart.DamagePart.Touched:Connect( function (p) |
2 | if script.Parent.CanDamage.Value = = true then |
3 | script.Parent.CanDamage.Value = false |
4 | p.Parent.Humanoid:TakeDamage( 20 ) |
Local Script for Animations:
03 | script.Parent.Equipped:Connect( function () |
04 | local Idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle) |
05 | local Slash = script.Parent.Parent.Humanoid:LoadAnimation(script.Slash) |
10 | script.Parent.Activated:Connect( function () |
11 | local Idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle) |
12 | local Slash = script.Parent.Parent.Humanoid:LoadAnimation(script.Slash) |
14 | if CanAttack = = true then |
22 | script.Parent.Value = true |