|
| 30 Dec 2014 04:38 PM |
if hit.Parent.Parent.Humanoid or hit.Parent.Humanoid and slash == true then
the game somehow thinks of workspace when i do this..
17:33:32.911 - Humanoid is not a valid member of Workspace
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 30 Dec 2014 05:15 PM |
| Because you need to get the humanoid of the player that you're hitting. Not the humanoid in the workspace. -_- |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2014 05:19 PM |
if hit.Parent.Parent.Humanoid or hit.Parent.Humanoid and slash == true then "hit" |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 30 Dec 2014 05:59 PM |
| I think it's because another part in workspace is touching the part that contains the onTouched event. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2014 08:08 PM |
| There are two if statements, one if it has a head, and one if it has a humanoid |
|
|
| Report Abuse |
|
|